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 full

Discussion in 'General Discussion' started by mind-field, Feb 7, 2004.

  1. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    My /var dir keeps filling up and I cannot lower it. I try it goes down and 2 days later back up to 86%

    Any assistance would be greatful!

    Thanks and God Bless!
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    what's it filling with? Logs? Also, how big is it?
     
  3. mr.wonderful

    mr.wonderful BANNED

    Joined:
    Feb 1, 2004
    Messages:
    345
    Likes Received:
    0
    Trophy Points:
    0
    Lol! Now thats a personal question!
     
  4. McRox

    McRox Member

    Joined:
    Nov 20, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NL
    Do the following:

    # cd /var;du -sh *

    You should see a list of dirs with the size behind each..

    The "log" map is usually eating up lots of space.

    If your var partition isn't big, I recommend creating a new map on the /backup or /home or any other partition with alot free space and create a symlink, chown the folder and touch the required files :)
     
  5. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Here it is:

    76k arpwatch
    1.6M cache
    386M cpanel
    4.0k db
    509M lib
    4.0k local
    8.0k lock
    192M log
    16k lost+found
    0 mail
    6.1M named
    2.8M named-bak
    4.0k nis
    4.0k opt
    32k portsentry
    4.0k preserve
    12k proftpd
    4.0k proftpd.pid
    0 quota.user
    100k run
    3.4G spool
    76k tempnamed
    4.0k tmp
    28k yp
    8.0k zonefix.php

    What can I do?

    Thanks and God Bless!
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Looks like your exim mail queue and message log is what's taking up all the space.
    /var/spool/exim/msglog/
    and
    /var/spool/exim/input/


    You can safely delete any files in those directories older than 3 days.

    Check the size of those 2 folders and see how old the files in them go back to.
     
  7. McRox

    McRox Member

    Joined:
    Nov 20, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NL
    Those are the ones that usually grown. It looks like your box is really affected by the worms that are abusing mailservers.

    If you have a 2nd harddrive or another partition with lots of space, you could create a new "spool" map, chown it with the right users and create a symlink on the /var partition.

    This does not solve your problem, but gives the spoolmap more room in case it needs to grow.

    I recommend cleaning up the spool every now and then OR add a cron job for a daily clean up :)
     
Loading...

Share This Page