Saturday, November 10, 2018

Inconsistency between "du -sh" and "df -h"








I am running a server with Debian stable.



If I call:



df -h


this is the result I get:




Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/my-var 2.8G 2.3G 358M 87% /var


While if I call:



du -sh /var



This is the result I get:



832M    /var


How can this happen? Which one is correct? Thank you!

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...