Solved: Wrong used/free space on VZ container

tin

Renowned Member
Aug 14, 2010
108
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!