Hi,
I'm trying to initialize Quotas on a newly installed LXC-container with quota selected while setup.
When using centos7 (template) I get the following error while using quotacheck and also trying to read the root filesystem using the device directly. It worked with Debian 9 (template).
Example:
quotacheck -ugcm /
quotacheck: error (1) while opening /dev/mapper/pve-vm--102--disk--1
Anyway, this used to work before (like last year?) but I haven't checked it for a long time.
The installation documentation for Prox is:
Using Quotas Inside Containers
Quotas allow to set limits inside a container for the amount of disk space that each user can use. This only works on ext4 image based storage types and currently does not work with unprivileged containers.
Activating the quota option causes the following mount options to be used for a mount point: usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
This allows quotas to be used like you would on any other system. You can initialize the /aquota.user and /aquota.group files by running
quotacheck -cmug /
quotaon /
and edit the quotas via the edquota command. Refer to the documentation of the distribution running inside the container for details.
You need to run the above commands for every mount point by passing the mount point’s path instead of just /.
I hope someone else can confirm that I'm not alone and maybe have a solution as I need quota working.
Thanks in advance,
Rickard
I'm trying to initialize Quotas on a newly installed LXC-container with quota selected while setup.
When using centos7 (template) I get the following error while using quotacheck and also trying to read the root filesystem using the device directly. It worked with Debian 9 (template).
Example:
quotacheck -ugcm /
quotacheck: error (1) while opening /dev/mapper/pve-vm--102--disk--1
Anyway, this used to work before (like last year?) but I haven't checked it for a long time.
The installation documentation for Prox is:
Using Quotas Inside Containers
Quotas allow to set limits inside a container for the amount of disk space that each user can use. This only works on ext4 image based storage types and currently does not work with unprivileged containers.
Activating the quota option causes the following mount options to be used for a mount point: usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
This allows quotas to be used like you would on any other system. You can initialize the /aquota.user and /aquota.group files by running
quotacheck -cmug /
quotaon /
and edit the quotas via the edquota command. Refer to the documentation of the distribution running inside the container for details.
You need to run the above commands for every mount point by passing the mount point’s path instead of just /.
I hope someone else can confirm that I'm not alone and maybe have a solution as I need quota working.
Thanks in advance,
Rickard