Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

1 Answer 1

up vote 7 down vote accepted

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)

share|improve this answer
    
Thanks, I think you are right, Reserved block count: 6553600. –  cpt.Buggy Oct 4 '12 at 13:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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