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: /dev/hda3 (/) is 82% full

Discussion in 'General Discussion' started by Brook, Jul 19, 2007.

  1. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    I'm getting an email saying my drive is 82% full:

    I've looked at the accounts on the server (via WHM) and they don't take up any more than a few GB.

    Is there a guide or steps I can take to delete stuff off the server?

    I ran: rpm -qa | grep kernel

    And it gave me:

    Should I delete any of those? Would they be taking up much room?
    Any other commands I can run to see what's going on/what I can delete safely?

    How can I find out how much space apache logs are taking up? /usr/local/apache/logs/ + /usr/local/apache/domlogs/ ? And is it safe to delete them?


    # ls -la /root gives me:


    There is no: /root/installd/ directory.

    du -h --max-depth=1 /

    Gives me:

    cd /var
    du -h --max-depth=1 /var


    Gives me:

    ls -laSh | more gives me:


    cd /home
    du -h --max-depth=1 /home


    Gives me:






    Thanks for any help.
     
    #1 Brook, Jul 19, 2007
    Last edited: Jul 19, 2007
  2. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    "31G /var"

    Is that right? Do you actually have 31 gigs of stuff in var ???

    and do you only have TWO mount points "/boot" and "/" ??
     
  3. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    By the looks of it there is 27G in /var/log :confused:

    Also yeah, must be 2 mount points "/boot" and "/". It's how the server came - is that bad? :confused:
     
  4. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    So just dig around the logs and blow out some of the old stuff and you should get back enough breathing room for a while. Be sure you are comfortable with killing logs and anything else in there before you do it.

    As to the mount points, you wont die from it layed out that way but its always best to have the system sliced up into points like :

    /
    /boot
    /tmp
    /usr
    /var
    /home
    /backup

    plus a decent swap.

    You could do more than that but it might be overkill.

    Also find time to check out your /home path, something might be wrong in there too looking at the output you provided.
     
  5. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Further investigation shows:

    du -h --max-depth=1 /var/log

    cd audit.d

    dir


    Continued....
     
  6. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    What are they? Are they safe to delete?
     
  7. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
  8. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    I couldn't use his commands, so googled and did this: (th ebit in bold)

    depmod -a, didn't work (command not found) so just did:

    cd audit.d

    rm -f save.*

    That's emptied them.. did I need to do depmod -a?

    Thanks for your help btw :)
     
  9. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Well don't go too far. Be sure your server doesnt need auditd before you kill it off completely. Sometimes people will recommend killing a service because THEY dont need it but you might.
     
  10. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    I've never had to use it myself in the whole year I've had the server. Does the server need it for it's own purposes?

    Would I just need to remove the line:
    alias char-major-10-224 off
    from:
    etc/modules.conf
    to re-activate it?
     
Loading...

Share This Page