Page 1 of 1

du and df reporting incorrect details

Posted: Mon Sep 24, 2012 10:14 am
by a24uall
After deleting certain files I could see that du and df are reporting incorrect details. Tried restarting the different services but it wont show correct details.

Solution :
ls -ld /proc/*/fd/* 2>&1 | fgrep '(deleted)'
Delete the associated process ID and restart the service if required....that should fix the problem.

If you want to check the specific partition you can grep the value say like, if you need to check /var do
ls -ld /proc/*/fd/* 2>&1 | fgrep '(deleted)' | grep var
NOTE :
MOSTLY it will be the below one thats causing the problem
/usr/local/apache/logs/ssl_mutex