Quotas in CT on external drive

mproxk

Active Member
Jun 2, 2019
21
2
43
41
I have an external drive attached to the Proxmox node

/dev/sdb1 on /mnt/timemachine type ext4 (rw,noatime,quota,usrquota,grpquota,stripe=8191,data=ordered)

quotes work directly on the host (repquota, edquota etc)

This partition is mounted in a CT with:

mp0: /mnt/timemachine,mp=/home,quota=1

inside the CT mount reports this

/dev/sdb1 on /home type ext4 (rw,noatime,quota,usrquota,grpquota,stripe=8191,data=ordered)

Inside the CT quotes are not working:

$ quotacheck -cug /home
quotacheck: Cannot stat() mounted device /dev/sdb1: No such file or directory
quotacheck: Mountpoint (or device) /home not found or has no quota enabled.
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.



Reading the manual it looks like this might not be possible to work. (https://pve.proxmox.com/wiki/Linux_Container#pct_settings)

What are the steps to make it available with "Device Mount Points"

How to change the mount config?
 
Last edited:
Hi,
yes, using a device mount point might work. All you need to do is use
Code:
pct set <ID> -mp0 /dev/sdb1,mp=/home,quota=1
i.e. specify the device/partition directly instead of where its filesystem is mounted on the host.
 
is it possible to use UUID? It will be better that way, I can reattach the external disk to another node and migrate container without issues
 
is it possible to use UUID? It will be better that way, I can reattach the external disk to another node and migrate container without issues
Yes, for persistent setups, using /dev/disk/by-uuid/<UUID> is better.