Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: Noob on December 08, 2007, 06:17:43 AM

Title: How do I clean / free space used by disk or logs in linux server ?
Post by: Noob on December 08, 2007, 06:17:43 AM
Can anyone tell me which files are safe to delete in /var partition ?

I want to increase space as it seems it filled up by logs.
Title: Re: How do I clean / free space used by disk or logs in linux server ?
Post by: Ricky on December 14, 2007, 06:52:03 PM
usually biggest problem in logs are mysql logs if its a webserver.
You can find it at /var/lib/mysql , that is what I do most of the time. There are many other files but they are not much.. only matter of few MBS.. I never bothered myself to delete them but you can delete.
Title: Re: How do I clean / free space used by disk or logs in linux server ?
Post by: dragoncity99 on December 15, 2007, 02:06:10 AM
Did you create a rule in your syslog tool for that application server ? Also consider enable compression to your logs while using logrotate feature.

Consider backing up those old logrotate archives to your backup media.