Knowledgebase

Wrong disk usage

Posted by sh4ka, 05-12-2011, 09:59 AM
Hi everybody, I have a strange problem regarding disk usage on a CentOS plain box. df command shows 75GBs used.. But du command shows only 23 GBs: Other disk info that may help: What is wrong here? Am I missing something? What's the real usage for / ? 23 or 75 gb? Thanks!

Posted by Jeremy, 05-12-2011, 12:13 PM
I think they are calculating different numbers Server I use for a poor mans VPN shows a diff of 2gb between your commands. I run df -h for mounting points and to show usage and du -sh * to track down folders or files that are big.

Posted by CI-Andrew, 05-12-2011, 12:58 PM
Now and again you can get inconsistencies in disk usage reporting which can be solved by doing an fsck on the drive.

Posted by stardust_x7, 05-12-2011, 02:27 PM
You must run FSCK on the node. Then, Run Following command now Now run

Posted by sh4ka, 05-13-2011, 06:36 AM
After rebooting the server, the disk usage went normal and shows the same as du -sh Thanks a lot for all the suggestions!



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Link to MS Exchange (Views: 576)
Is LiquidWeb down? (Views: 643)


Language:

Client Login

Email

Password

Remember Me

Search