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.

/usr 100% full

Discussion in 'General Discussion' started by yawsh, Jan 31, 2007.

  1. yawsh

    yawsh Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I have new server but /usr partition is full

    any reason? or how to fix that?

    I think the installed lots of lib for me :rolleyes:

    Thanks in advance.

    Hesham
     
  2. WindyT

    WindyT Active Member

    Joined:
    Nov 30, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    I'm not the person to be giving advice, but when I had that very issue, it turns out I had a bunch of core dumps (core.12345, core.11111, etc) that were taking up space. Search the forums here to learn more on that. Core dumps are key for diagnosing what was wrong but mine were old, dating back to when I had memory issues on the server. Deleting those old core dumps did part of the trick. The other part was finding and dealing with the cpbackup folders, which I had turned off, but apparently some were there anyway. Those backup folders can take up some serious space and may be there long after you've turned off that setting in Tweak Settings - if you did so.

    There's also a post by Chirpy talking about moving your
    /usr/local/apache/domlogs
    and linking back to them.
    I didn't need to do that log moving/syncing because I freed up enough space doing the first two-- finding the obsolete core dumps and cpbackups and deleting them.
     
  3. yawsh

    yawsh Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Thanks WindyT for your reply.

    I can't find any core.* files
    It is also a new server and apache logs are too small to take the space.


    Any other idea guys? :)
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Use
    du --max-depth=1
    in the /usr directory to find out which subdirectory is using the most space, then do that from that directory and so on to find out where the space is being used.
     
  5. yawsh

    yawsh Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Mike

    it appears that /usr/lib has lots of files

    hmmm is it healthy if I remove some?
    and how to get them back when needed?


    Thanks.
    Hesham
     
  6. yawsh

    yawsh Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Anybody there? :confused:
     
  7. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    The /usr/lib directory is used for program running files. There's probably not a lot there to remove. What about the log files?
    /usr/local/apache/logs
    /usr/local/apache/domlogs
    /usr/local/cpanel/logs

    That tends to be the cause of low space there a lot.
     
  8. yawsh

    yawsh Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Files Sizes in: /usr/local/apache/logs
    File Sizes in : /usr/local/apache/domlogs
    File Sizes in : /usr/local/cpanel/logs
    IT appears that logs are not the problem :confused:
     
  9. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    If you are running mailman service, take a look in

    /usr/local/cpanel/3rdparty/mailman/logs

    and

    /usr/local/cpanel/3rdparty/mailman/archives
     
  10. yawsh

    yawsh Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    /usr/local/cpanel/3rdparty/mailman/logs

    /usr/local/cpanel/3rdparty/mailman/archives
    still there is some thing strange :confused:
     
  11. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    how much space have you allocated for /usr ?
     
  12. yawsh

    yawsh Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    8 giba byte


     
  13. yawsh

    yawsh Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Is there any chance to re-size it?
     
  14. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    What OS are you running on your new server? You didn't say. For example, Centos 4.4 uses about 3Gb in /usr, so 9Gb seems like ample to me.

    Another command you could run is:
    Code:
    find /usr -size +4000 -mtime -10 | xargs ls -ld
    That will run ls -l on any large files (> 2mb) created in the last 10 days which may help you track down a runaway log or other file.

    The next step might be something like this:
    Code:
    cd /usr
    du -sk *| sort -nr
    which will display a list of directory sizes. For each bigger sized directory, cd into that directory and rerun the "du -sk *" to see what the bigger culprits are. However - BE WARNED - if you don't know what the files are, you'd be insane to delete them, you could end up with a badly broken system. There's no other way to say this - administering a Linux system is a skilled process, and you're going to need occasional help.
     
  15. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Just another thought - perhaps whoever you got the server from couold be persuaded to fix it. After all, they provided it to you in a broken state, and it should have been provided in a working state.
     
  16. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    I know no one can answer fast enough when someone is looking for a solution but could you post a follow up as to the trouble your data center found? It would be greatly appreciated and perhaps give us some insight for future situations like this while helping blindly.
     
Loading...

Share This Page