df -h overreports disk space on VPS

Posted by Rincewind42 on Server Fault See other posts from Server Fault or by Rincewind42
Published on 2012-09-22T05:07:28Z Indexed on 2012/09/22 15:39 UTC
Read the original article Hit count: 186

Filed under:
|
|
|
|

When I run the command df -h on my new Ubuntu linux vServer I get the following:

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdv1             466G   33G  434G   7% /
none                   16M     0   16M   0% /tmp

Running du -sh gives

# du -sh 
du: cannot access `./proc/13624/task/13624/fd/4': No such file or directory
du: cannot access `./proc/13624/task/13624/fdinfo/4': No such file or directory
du: cannot access `./proc/13624/fd/4': No such file or directory
du: cannot access `./proc/13624/fdinfo/4': No such file or directory
952M    .

The VPS should only have 5Gb of disk space but df reports 466Gb. How can I view the correct amount of disk space?

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu