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.

Drive Warning: /hda5 (/var) is 81% full

Discussion in 'General Discussion' started by flashweb, Nov 15, 2003.

  1. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    I got message Drive Warning: /hda5 (/var) is 81% full

    ============================================
    root@server2 [/var]# du -h --max-depth=1
    16k ./lost+found
    383M ./lib
    284M ./log
    1.6M ./cache
    4.0k ./db
    4.0k ./local
    8.0k ./lock
    4.0k ./nis
    4.0k ./opt
    4.0k ./preserve
    92k ./run
    du: `./spool/exim/input/1AKpgL-0001TO-3r-J': No such file or directory
    1.2G ./spool
    4.0k ./tmp
    28k ./yp
    4.5M ./named
    76k ./arpwatch
    20k ./portsentry
    782M ./cpanel
    16k ./proftpd
    2.6G .
    ============================================
    Found
    /var/spool 1.2 GB
    /var/cpanel 782 MB
    ============================================
    root@server2 [/var/spool/exim]# du -h --max-depth=1
    748M ./input
    389M ./msglog
    1020k ./db
    1.2G .
    ============================================
    root@server2 [/var/cpanel]# du -h --max-depth=1
    4.0k ./stunnel
    19M ./neomail
    4.0k ./newaccts
    228k ./Counters
    4.1M ./users
    759M ./bandwidth
    8.0k ./version
    4.0k ./bwlimited
    172k ./objcache
    392k ./packages
    88k ./news
    8.0k ./suspended
    8.0k ./features
    8.0k ./dips
    12k ./mainips
    12k ./acllists
    782M .
    ============================================
    /var/cpanel/bandwidth is 759 MB.

    Which files i can safely remove ?

    Regards,

    Yujin
     
  2. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    If you don't need older logs, then go to /var/log and delete the ones that end in '.#', where '#' is a number (typically 1-4). Those are older rolled logs that can be safely deleted if you don't need them.
     
  3. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I already deleted the OLD logs, It was some 600 MB before, now its only 284M.

    #rm *.?

    Any other files i can remove from

    /var/spool

    OR

    /var/cpanel

    Regards,

    Yujin
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You can remove the files in /var/spool/exim/msglog and the files in /var/spool/exim/input is your mail queue which is quite big. If your desperate for space, you can delete all files in there. That will clear your mail queue, although being that big it will probably grow again in the next few days.
     
  5. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    I would also agree with squirrel, on being able to safely remove the files mentioned.

    I would also wonder about two things:

    /var/cpanel/bandwidth is 759 MB

    Why is that so large? Is this Server a few years old? If so, you may want to gzip and remove files over 1 or 2 years old.

    It seems your 'var' dir. is small to begin with -- less than 5 GB of available space. You will need to keep a close eye on it, as you will be running into the same situation on a somewhat, regular basis.
     
  6. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks for the reply.

    I have removed content of

    /var/spool/exim/msglog/
    /var/spool/exim/input/

    Folder

    Can i remove the content of

    /var/cpanel/bandwidth

    Folder ? Its anything critical ?

    Server is only 6 months old.

    /var is only 3.8 GB.

    Now the usage is

    root@server2 [/var]# du -h --max-depth=1
    16k ./lost+found
    388M ./lib
    198M ./log
    1.6M ./cache
    4.0k ./db
    4.0k ./local
    8.0k ./lock
    4.0k ./nis
    4.0k ./opt
    4.0k ./preserve
    92k ./run
    5.9M ./spool
    4.0k ./tmp
    28k ./yp
    4.6M ./named
    76k ./arpwatch
    20k ./portsentry
    785M ./cpanel
    16k ./proftpd
    1.4G .

    Regards,

    Yujin
     
Loading...

Share This Page