4

I have KVM vps with strange disk usage:

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb              493G  1.2G  466G   1% /
tmpfs                 4.0G     0  4.0G   0% /dev/shm
/dev/sda1              96M   41M   51M  45% /boot
# du -sh /
du: cannot access `/proc/1633/task/1633/fd/4': No such file or directory
du: cannot access `/proc/1633/task/1633/fdinfo/4': No such file or directory
du: cannot access `/proc/1633/fd/4': No such file or directory
du: cannot access `/proc/1633/fdinfo/4': No such file or directory
1021M   /

How could it be? Where are ~20G of free space?

  • Could you please modify your output for the same units of measure? – Aaron Copley Oct 4 '12 at 12:38
  • Run du with -x switch, this way it won't go into other file systems – Hubert Kario Oct 6 '12 at 14:29
8

I guess you talk about the discrepancy between 493GB total space, 1.2G used and 466GB free. This is likely the result of the usual 5% of disk space that is reserved for root and not generally available.

To check for this, please add the output of at least the Reserved block count from

tune2fs -l /dev/sdb 

to your question (provided you use ext3 or ext4 as a filesystem)

  • Thanks, I think you are right, Reserved block count: 6553600. – cpt.Buggy Oct 4 '12 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.