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 fills up all the time

Discussion in 'General Discussion' started by Snowman30, Apr 7, 2005.

  1. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Im getting a lot of problems on one server wiht the /var partition filling up all the time but im having troubles tracking down the cause of it.

    ive cleared out the ususal suspects like /var/tmp and /var log but im not getitng anywhere

    im wondering if there is a way to recursively search all the folders of /var to identify large files?

    I know ls -ltr will display the details of one folder but how do i search all at once?

    can anyone shed some light on this for me

    TIA
     
  2. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    check your mail logs

    /var/log/exim
     
  3. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Thanks but as ive said ive already cleared out /var/log

    and my mail logs are only a combined 48Mb currently
     
  4. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    you can see which directory that are using the most by running

    du -h -s /var/*
     
  5. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    ah yes thats what i was looking for thanks :)

    and culprit found... 5Gb in /var/lib/mysql
     
Loading...

Share This Page