OpenVZ Forum


Home » General » Support » *SOLVED* df and disk space used from du don't quite match
*SOLVED* df and disk space used from du don't quite match [message #11470] Sat, 24 March 2007 20:49 Go to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
I ran out of disk (soft disk) in a VE the other day. I was generating oddles of cores when a processes started crapping out.
I did manage to remove all the extra processes, however df still reports the disk is almost full:

[root@imageserver /]# ls
bin dev home lib mnt proc sbin srv tmp var
boot etc initrd media opt root selinux sys usr
[root@imageserver /]# du -sh
582M .
[root@imageserver /]# df
Filesystem 1K-blocks Used Available Use% Mounted on
simfs 6889612 6356860 532752 93% /
[root@imageserver /]# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 6.6G 6.1G 521M 93% /

But du sure doesn't think so. I think du is right, so how do I rectify this problem?

Thanks,
Jim.

[Updated on: Mon, 26 March 2007 08:30] by Moderator

Report message to a moderator

Re: df and disk space used from du don't quite match [message #11479 is a reply to message #11470] Sun, 25 March 2007 07:12 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

There are at least 2 options:

1. Most likely you run out of disk space in host system (i.e. on /vz). In this case `df -h` inside VE reports how much disk space is *really* available, independant of the fact that VE didn't used it.
It is required for critical applications which use this statistics before doing something (e.g. rpm on package install/update).

2. you can try to remove /var/vzquota/quota.<VEID> file
and restart VE. It will cause quota reinitialization.



http://static.openvz.org/userbars/openvz-developer.png
Re: df and disk space used from du don't quite match [message #11485 is a reply to message #11470] Sun, 25 March 2007 13:21 Go to previous message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
Thanks.

It is highly unlikely that I ran out of host disk space:

df -h
/dev/mapper/VolGroup01-sata
357G 71G 269G 21% /bigdata
[root@50dom0 log]# ls -l /vz
lrwxrwxrwx 1 root root 12 Feb 4 07:16 /vz -> /bigdata/vz/

But I didn't look before I removed the core files so it's possible.

After installing the latest kernel and rebooting, it seems to have cleared itself. Rebooting alone did not, however.

Thanks,
Jim.
Previous Topic: OpenVZ and (gr)security
Next Topic: *CLOSED* Good way to isolate VE networks.
Goto Forum:
  


Current Time: Sat Apr 27 12:30:28 GMT 2024

Total time taken to generate the page: 0.04216 seconds