LXC container quotacheck error

snade

New Member
Nov 17, 2021
2
0
1
34
Hi everyone,

I have been trying to get quotas to work on LXC containers today but with no luck, it is my understanding that it should be enough to have a privileged container with the quota option enabled on the storage (local storage in my case, default installation) to get it working.

But then when I start the container and try the commands detailed in the documentation I get an error, I read most posts detailing the same issue but could not find anything to help me past this. I tried on all versions of Ubuntu and Debian and they all output the same error.

root@quota-2104:~# quotacheck -vmug /
quotacheck: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
quotacheck: Scanning /dev/mapper/pve-vm--128--disk--0 [/] quotacheck: error (1) while opening /dev/mapper/pve-vm--128--disk--0

Is there any way to fix this, or am I missing something? Any help appreciated.

Edit: This is on Proxmox 7.0

Thank you!
 
Last edited:
hi,

see also the warning in the docs:
This currently requires the use of legacy cgroups.

you should take a look here [0]. since PVE7 we're using cgroupv2, if you want quota working you'll need to switch the host to use the unified cgroup hierarchy (link has more information about this).

hope this helps

[0]: https://pve.proxmox.com/pve-docs/chapter-pct.html#pct_cgroup
 
Thanks! I tried the kernel command line param described in the article but it did not seem to work so far.. I will try again later.

Will cgroupv2 be compatible with the quota functionality on a future version of PVE7 still?
 

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!