100% Disk space on OpenVZ

SamTzu

Renowned Member
Mar 27, 2009
527
17
83
Helsinki, Finland
sami.mattila.eu
I did something stupid. (Ones again :()
I deleted a big file within OpenVZ client straight from the Proxmox host.
Now the Disk Space keeps showing 100% Disk Usage even though there is no sign of the two 16Gb files I deleted inside the Client.

Any clues how to update the Disk Space data on the Host?

Here is what the client shows...
server:/var/www/testi1.mattila.local/web# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 50G 33G 18G 65% /
tmpfs 1.3G 0 1.3G 0% /lib/init/rw
tmpfs 1.3G 0 1.3G 0% /dev/shm
server:/var/www/testi1.mattila.local/web# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/simfs 10000000 27202 9972798 1% /
tmpfs 323072 4 323068 1% /lib/init/rw
tmpfs 323072 1 323071 1% /dev/shm
 
Any clues how to update the Disk Space data on the Host?

Attach an empty disk, and copy everything to that new disk. Then use that new (smaller) disk instead of the old one.

EDIT: Oh, sorry - that is for KVM - ignore that.

What kernel version do you use?
 
maybe you need to re-init the quota system:

# vzctl stop <vmid>
# vzquota drop <vmid>
# vzctl start <vmid>

Does that help?
 
I had the same problem in Proxmox 3.2-4 (I manually deleted some files from the private folder on the host) and running the following commands fixed the problem (thanks dietmar):
# vzctl stop <vmid>
# vzquota drop <vmid>
# vzctl start <vmid>