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 is over %80

Discussion in 'General Discussion' started by K-G, Jul 11, 2005.

  1. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    Hi All;

    I am newbie and dont know what to do.
    I am getting warnings about disc over usage

    "Drive Warning: /hda3 (/var) is 81% full"

    as far as i know, account files are in the /homes drive
    but what is this "/var" and what should i do?
     
  2. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    506
    Likes Received:
    4
    Trophy Points:
    168
    this could be a lot of things.

    Take a look at your exim_incoming/msglog

    If it us huge then:
    rm -rf /var/spool/exim_incoming/msglog/*
    rm -rf /var/spool/exim/msglog/*

    Have you checked to see if your logrotate to see if it is running,
    This from chirpy:
    Run logrotate like this and work through it until you find the errors:

    /usr/sbin/logrotate -vf /etc/logrotate.conf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    Hi Albert, thank You

    i applied this command
    "/usr/sbin/logrotate -vf /etc/logrotate.conf"

    but still same;
    "/dev/hda3 6.9G 5.3G 1.3G 81% /var"

    (i dont know it is huge or not, or logrotate is running or not, just applied your command and it is same - :eek: i feel that i am testing my machine )
     
  4. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    here is the output (when i applied your command)

     
  5. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    Do u have service audit.d enabled?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    nope, only these ones in left navi;
     
  7. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,191
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    Root Administrator
    cd /var/log

    rm -rf *.gz *.1 *.2 *.3 *.4

    this will help you make more space at /var
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    it doesnt helped i think...
    how can i find overweighted log files?
    should i delete them?
    only which ones?

    i am searching with du .* commands, so which files are not necessary so that i can delete?
    (BTW, how may i paginate the results? )

    And,

    is this mean -> spool directory's file size is 43.260kb (43MB) ?


    God.... this is a nightmare for me. which files are unnecessary, which folders should i research to delete some files...?
     
    #8 K-G, Jul 12, 2005
    Last edited: Jul 12, 2005
  9. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    168
    Firstly, how large is the /var partition? 81% full of what?

    The % means little to nothing when reporting space used, unless you know how much is left :)

    Also, how many emails are in the mail queue?

    It may be that you just have a small /var partition or lots of mail etc etc.
     
  10. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    is it my problem?
    as i understand, the file size is 5.228.516kb (5.2GB) ?
    or it is byte ? 5.2MB?
     
  11. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    168

    Try

    # du -h .........

    # man du
     
  12. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    There are currently 10 messages in the mail queue.

    is make a sense? :confused:
     
  13. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    168
    So how large is the /var partition in total?

    EG.
    81% of 100GB for /var - still leaves 19GB of space left .. not a cause for concern in that extreme scenario. You need to find out how big the partition is to begin with.

    # df -h
     
  14. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    5.0G ./audit.d


    so as i understand as unix N00b, this folder contains files that must be delete :D
    is it true?

    /var/log/audit.d/
    bin.0, bin.1, bin.2, bin.3, save.0, save.1 ....... -> save.250

    should i delete some of them?
    what are these files? their functions?
     
  15. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    total 6.9
    used 5.3
    free 1.4
     
  16. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    I asked about the same in my previous post. You can safely delete all the save.* files.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    Thanks Nickb, for a last question, what are these files? what are their functions?
     
  18. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. K-G

    K-G Member

    Joined:
    Feb 16, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    OK, thanks Nickb.
    i deleted that files and i personally updated my title to "beginner" from "n00b" ;)
     
  20. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You should really remove audit from your server as it only creates a crash risk and consumes resources (it's rarely used by anyone). You can do this with:

    rpm -ev laus
    echo alias "char-major-10-224 off" >> /etc/modules.conf
    service crond stop
    rmmod audit
    service crond start
    rm -Rfv /var/log/audit.d/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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