flashhosts

Active Member
Sep 1, 2002
32
0
156
What exactly is placed in the /var mount?

Disk hda7 (/var) 82%

Nothing should be placed there should it?

Robert
 

flashhosts

Active Member
Sep 1, 2002
32
0
156
it only sorts them by size, but doesnt tell the size unless the numbers at the side is the size:

14446 .
2664 ./hostchat_forums
1768 ./gamesrus_forum
1248 ./kazi_4nnukeware
827 ./gamesrus_forum/ibf_posts.MYD
723 ./umbrella_forums
685 ./hostchat_forums/template.MYD
666 ./blinkiz_forum

there is more, but it doesnt explain why /var is filling up when according to this, the mysql directory is only 14446 (I take it thats kb's)

Robert
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
Your logs will also be in /var/log, rotating from 0-4 (maillog.1-.4, for instance). If you don't need your old mail logs, exim logs, etc., remove them.
 

flashhosts

Active Member
Sep 1, 2002
32
0
156
I removed some log files and got it down to 28%

Not 100% sure which log files I can delete so anyhelp would be appreciated.

Robert
 

Tom Pyles

Well-Known Member
Apr 26, 2002
254
0
316
/var/log
This directory contains important logs such as exim_mainlog, messages, and chkservd.log. While these logs are rotated regularly, archived logs are not deleted. You can safely delete any log that has a .1, .2, .3, or .4 extension, as these are the old archived logs

/var/spool/exim/input/ & /var/spool/exim/msglog/
These files are generated by Exim (the mail server) from bounced emails, or emails waiting to be delivered and are in the message queue. If you notice your /var partition filling up and you have removed your archived logs from section 2.3, then you most likely have a lot of entries in these directories. You should verify the size of this directory to see if it is a problem:

du -h /var/spool/exim/input

du -h /var/spool/exim/msglog

If any of these directories is very large chances are they are the culprit.


You might not notice an immediate difference in disk space used after deleting these logs, but after a few minutes your partition information should be updated which you can view using the command:

df