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: /hda2 (/usr) is 81% full

Discussion in 'General Discussion' started by mmkassem, May 28, 2003.

  1. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    Hello

    I just got my new server with Cpanel installed and I got this warning :( :
    Drive Warning: /hda2 (/usr) is 81% full

    /dev/hda2 4.8G 3.8G 910M 81% /usr

    Can you please help me?

    cPanel.net Support Ticket Number:
     
  2. alterahosting

    alterahosting Member

    Joined:
    Oct 19, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    try this:

    cd /usr/local/apache
    ls
    if you see a bunch of core.xxx, delete them all by:
    rm core.*

    cPanel.net Support Ticket Number:
     
  3. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    ./ bin/ conf/ etc@ icons/ libexec/ man/
    ../ cgi-bin/ domlogs/ htdocs/ include/ logs/ proxy/
    these are all the available.

    cPanel.net Support Ticket Number:
     
  4. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    Heres a nice command, run it in the dirs to see how much space is being tooken up in subdirs and files. 'du -h --max-depth=1'

    Also check out /usr/local/apache/domlogs/ thats where all domain logs files are kept and that can get large. Also check out /usr/local/apache/logs/

    ls -lhS /usr/local/apache/domlogs/ |head
    ls -lh /usr/local/apache/logs/

    cPanel.net Support Ticket Number:
     
  5. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    Thanks for your support.

    shaun, I found the logs to be small (as I stated before it is just a new server)

    Below are the sizes of the folders inside /usr

    4.0k ./lost+found
    271M ./bin
    1.1G ./lib
    58M ./libexec
    55M ./sbin
    1.3G ./share
    154M ./X11R6
    4.0k ./dict
    4.0k ./etc
    3.9M ./games
    83M ./include
    225M ./local
    431M ./src
    4.8M ./kerberos
    12M ./i386-glibc21-linux
    80M ./java
    14M ./man
    340k ./doc
    3.7G .

    cPanel.net Support Ticket Number:
     
  6. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    You got some dirs that are very large... Not sure why they are that large..

    Here's a example from one of my servers of /usr

    16k ./lost+found
    92M ./bin
    289M ./lib
    320k ./libexec
    14M ./sbin
    413M ./share
    33M ./X11R6
    4.0k ./dict
    4.0k ./etc
    8.0k ./games
    23M ./include
    730M ./local
    52k ./src
    3.2M ./kerberos
    80M ./java
    15M ./man
    152k ./doc
    1.7G .


    As you can see things like lib, libexec, share are alot smaller.

    Are you sure you or your datacenter didnt install everything that comes with redhat :p


    do a du -h --max-depth=1 inside each of those dirs that are larger to see whats inside them, just keep going deeper and deeper until you find it. My guess is in /usr/share the thing thats going to take up most of the space is man pages.


    paste a rpm -qa here too....

    cPanel.net Support Ticket Number:
     
  7. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    I will check what you have told me and return back to you. I can see that I have the share and lib folders larger than yours.

    My host told me they installed most modules.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page