Here are a few tips to clear out some space in /var
====================================
1. Restart the mysql service.
2. Log files in /var/log like exim_mainlog, mailmon.log, messages, mysqld.log, mysql_slow_queries.log can be deleted after taking backups of the required ones..
Note that there is no point in deleting these log files if the size is very small. Check whether deleting these would make any difference.
If you are deleting them then do re-create the files, or you can use the command ‘echo ” ” > logfile’ to empty the existing files.
3. Clear Mysql logs like server-name.err or any other present in /var/lib/mysql
4. Delete mysql-bin.000* file in /var/lib/mysql, if present.
5. There might be useless large .sql files in /var/lib/mysql . Delete them.
6. Remove unwanted emails from spool. You can use the following code to do that :
Code:
exim -bpc
exim -bpru | grep frozen | awk {’print $3′}|xargs exim -Mrm
exim -bpru | grep “<>” | awk {’print $3′}|xargs exim -Mrm
exim -bpru | grep “nobody” | awk {’print $3′}|xargs exim -Mrm
exim -bpru|awk {’print $3′}|xargs exim -Mrm
exiqgrep -o 86400 -i | xargs exim -Mrm
exim -bpc
7. There might be yum cache files inside the /var/cache folder which can take space. To remove them do:
Code:
# yum clear all
# yum list all
8. Search and remove any core files ( core dump ) like core.12* etc.
====================================
If you have already deleted the files and it is still showing up high usage then refer to Spiral's post at
http://forums.cpanel.net/f5/i-get-robbed-who-stole-my-disk-space-121197.html