The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/var filling up?

Discussion in 'General Discussion' started by flashhosts, Oct 20, 2002.

  1. flashhosts

    flashhosts Active Member

    Joined:
    Sep 1, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    What exactly is placed in the /var mount?

    Disk hda7 (/var) 82%

    Nothing should be placed there should it?

    Robert
     
  2. mbarb

    mbarb Member

    Joined:
    Aug 14, 2001
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    MySql DB's are in /var/lib/mysql
     
  3. flashhosts

    flashhosts Active Member

    Joined:
    Sep 1, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    whats the best way to tell what is actually filling /var/ up?

    Robert
     
  4. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    See here for some suggestions:
    http://groups.google.com/groups?th=c549a7fe9704e04d
     
  5. flashhosts

    flashhosts Active Member

    Joined:
    Sep 1, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  6. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  7. flashhosts

    flashhosts Active Member

    Joined:
    Sep 1, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  8. Tom Pyles

    Tom Pyles Well-Known Member

    Joined:
    Apr 26, 2002
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    /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
     
Loading...

Share This Page