Monday, January 18, 2010

If df -h shows wrong space.

If you see df -h shows wrong output after you deleted some files. Use following command

ls -ld /proc/*/fd/* 2>&1 fgrep '(deleted)'

to see which links are not removed after removing files and remove them manually.
This will happen usually when you try to remove running logs like apache logs.

No comments:

Post a Comment