tinky

Registered
Jun 13, 2009
2
0
51
Hi everyone,

I am very new to all of this and am wondering if someone can help me.

When I go to service status this is what comes up..




What do I need to do to fix the problem please
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
The partition holding "/var" on your server is almost full or you
recently deleted large files that haven't been released yet.
 

tinky

Registered
Jun 13, 2009
2
0
51
Thanks for your answer

I need to release files cause I deleted a lot of stuff just recently.

How do I go about this?

Thanks
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
I actually just posted on this very same topic just a couple days ago
so you could just look at my posts and pull the details from that,
you'll have all you need or just private message me and I'll tell
you the command you need to run but that avoids redundancy.
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator
Usually clearing the mail queue and system logs helps reduce /var but if you are not sure how to do this please do not arbitrarily runs commands. Ask your host to do it for you because deleting a wrong file can do some serious damage.
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Usually clearing the mail queue and system logs helps reduce /var but if you are not sure how to do this please do not arbitrarily runs commands. Ask your host to do it for you because deleting a wrong file can do some serious damage.
You mean like "rm -Rf /"? :D

(To everyone else reading this -- that was a joke! Don't actually run that command !!!!)
 
Last edited:

InstaCarma_Tech

Well-Known Member
Apr 22, 2009
227
1
68
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