du and df reporting incorrect details

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

du and df reporting incorrect details

Post 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
Arun
WebhostingDevelopment.com
Post Reply

Return to “Incorrect disk usage”