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 disk space ebbing away - reboot to fix

Discussion in 'General Discussion' started by BigLebowski, Jun 26, 2008.

  1. BigLebowski

    BigLebowski Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    hi there

    Every three weeks all disk space in /usr is used up. Having rebooted, it goes back up to 4GB. There is a massive difference between df and du. Does anyone have any ideas how to stop this for good please without having to reboot every few weeks?

    Thanks
    Dude
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That usually happens if a file has been manually deleted but a running process still has it open, so the space is still allocated eventhough you cannot see it in the filesystem. This typically happens on /usr if you manually delete apache log files in /usr/local/apache/logs/ and/or /usr/local/apache/domlogs/. If this is the case, make sure you restart httpd after deleting any of the logs.

    You can probably check for such deleted but open files using lsof:

    lsof | grep /usr | grep deleted
     
Loading...

Share This Page