[Lxc-users] LVM and XFS quota

Gary Ballantyne gary.ballantyne at haulashore.com
Thu Sep 19 03:52:14 UTC 2013


On 18/09/13 16:43, Gary Ballantyne wrote:

> I am pretty sure that XFS needs to be *initially* mounted with the quota
> option --- but after rebooting I have lost the uquota.

Update:

If I create an ordinary (not lvm backed) container, then shuffle things 
around so that /var/lib/lxc/vm0/rootfs is mounted on a XFS logical 
volume (with uquota option), I can get quotas working in the container. 
*But*, only if I mirror user accounts between the container and host.

I also tried bind mounting the container to a XFS mount point via 
lxc.mount.entry. It seemed to work --- "mount" yields:

/dev/mapper/vg_rootfs-lv_temp on /mnt type xfs 
(rw,relatime,attr2,inode64,usrquota)

But, no joy using xfs_quota within the container.





More information about the lxc-users mailing list