/usr disk space ebbing away - reboot to fix

BigLebowski

Well-Known Member
Dec 24, 2007
75
0
56
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
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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