Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/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:
    316
    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:
    166
    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:
    316
    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:
    166
    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:
    316
    cPanel Access Level:
    DataCenter Provider
    ah yes thats what i was looking for thanks :)

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice