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/ full

Discussion in 'General Discussion' started by jimcarter, Mar 7, 2003.

  1. jimcarter

    jimcarter Well-Known Member

    Joined:
    Jun 30, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    /usr/ full & Apache Core Files (please read)

    Hi,
    My /usr/ partition is now at 96%. I have removed apache logs but I don't know what is taking up all of the space.
    Can someone give me some ideas on some files I can remove to create some space?
    Thanks,
    Jim
     
  2. portman

    portman Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Don't forget the the /usr/local/apache/logs directory as well.

    You should also run du -sm at various levels to see usage.
     
  3. FWC

    FWC Well-Known Member

    Joined:
    May 13, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ontario, Canada
    Have you looked in /usr/local/apache/domlogs? If you haven't moved and symlinked your domlogs or changed Tweak Settings to rotate them after every stats run, that directory usually gets very full...
     
  4. Gade Terbob

    Gade Terbob Member

    Joined:
    Oct 24, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    West Texas, USA
    Portman,
    Please give more info about this:
    Thanks
     
  5. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    Look at /usr/local/apache and see if there are tons of core.1102 whatever numbers in there.

    If you recently did an easyapache compile sometimes it leaves all the temp core files in there and fills the /usr up.

    Do a rm -Rf core.* while in that directory to clear them out.
     
  6. Curt

    Curt Well-Known Member

    Joined:
    Oct 16, 2001
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Out of 6 boxes we had 2 of them dropped tons of these 6.5 meg "core." files.

    Does anyone know why it does this and why only some boxes? Two of mine were identical, one was fine the other crashed on the easyapache upgrade because /usr went 100% with core. files.
     
  7. Tom Pyles

    Tom Pyles Well-Known Member

    Joined:
    Apr 26, 2002
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    This same thing happened to us on only a few servers...and it resolved the /usr problem. Your right, it is strange it only happens on some servers and not others ;)
     
  8. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    I have no idea why it does that but out of 20 servers I upgraded using easyapche the last couple of days, it did on two of them. This is not the first time either I first found this about 6 months ago when I brought a new server online and after the recompile of apache I saw that /usr was at 98% with no sites on the box yet. A little digging and I found the core files.

    Strange stuff
     
  9. Tom Pyles

    Tom Pyles Well-Known Member

    Joined:
    Apr 26, 2002
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Interesting...after clearing out the dump files, my /usr has gone back up to 94%. I've pulled our apache logs...no core dump files in there...what else is there to delete?
     
  10. Curious Too

    Curious Too Well-Known Member

    Joined:
    Aug 31, 2001
    Messages:
    427
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Check /usr/local/cpanel/logs -- the stats_log gets pretty large - I deleted one this morning that was 700MB
     
  11. Tom Pyles

    Tom Pyles Well-Known Member

    Joined:
    Apr 26, 2002
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the tip. I have /usr/local/cpanel/stats_log that is 2gigs in size :eek: Is it safe to delete this without screwing up stats ,etc.
     
  12. Curious Too

    Curious Too Well-Known Member

    Joined:
    Aug 31, 2001
    Messages:
    427
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I don't know, but I had no choice as /usr was 100% full -- what I did:

    killall -9 cpanellogd
    rm rf stats_log
    /scripts/runlogsnow

    Has not caused any problems that I'm aware of.
     
  13. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Instead of rm -rf stats_log, should probably do cp /dev/null stats_log.

    I have this same problem myself, anyone let nick know about this?
     
  14. MarlboroMan

    MarlboroMan Well-Known Member

    Joined:
    Dec 7, 2001
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Also - check your Mailman archives in /usr/local/cpanel/3rdparty/Mailman/ -- those can pile up too sometimes. If you're NOT running suexec on your Apache server, you can symlink that off to another partiton to save space. Otherwise - you'll just have to start trimming down the archives. (Instructions on doing this can normally be found at www.list.org, when it's not down)
     
  15. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    GREAT!! this just fixed (and saved a LOT of my hair) my problem.. was going nuts wondering how /usr could fill up so fast.. didn't even think to look for leftover files...
    Thanks again!
     
    #15 PPNSteve, Mar 16, 2003
    Last edited: Mar 16, 2003
  16. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    If you are getting a lot of core files, it means there is a bug in apache, or you generally have a library/hardware problem on the server.

    Please open a ticket and provide the location to the core files so we can attempt to back trace where apache has crashed.
     
  17. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    I had a strange thing this weekend, on friday I looked at my /usr and /var they were both about 30%-50%, on saturday I got an e-mail that /usr was 100%!

    As a result of that cpanel didn't work anymore etc.etc.

    I fixed that all, but I am just wondering how it could grow so fast, normally it grows just some percents a day.

    Any ideas?
     
  18. MN-Robert

    MN-Robert Well-Known Member

    Joined:
    Feb 19, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    /usr/ keeps filling up on our machines due to cpanellogd it never stops running and uses 20% cpu usage any ideas? When we stop it diskspace usage goes back to 20%
     
  19. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    With disk space usage you mean /usr ?
     
  20. MN-Robert

    MN-Robert Well-Known Member

    Joined:
    Feb 19, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    Thats correct
     
Loading...

Share This Page