df -h overreports disk space on VPS
- by Rincewind42
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?