Solved: Wrong used/free space on VZ container

tin

Renowned Member
Aug 14, 2010
109
2
83
Northwest NSW, Australia
Just making a note here in case someone else has this happen... Couldn't see any existing threads that mentioned this little issue and fix.

So I've got a VZ container that has a few hundred GB of data stored on it. I just noticed the free space and used space was being misreported while cleaning up some files... It said I had 2GB used (I know there was over 250GB on it) and the free space matched the space on /var/lib/vz

It turned out the quota for this container was messed up. To fix it I just turned it off and back on (like all things in IT):

vzquota off <vmid>
vzquota on <vmid> -f

I'm not sure if the "-f" is required or not.