How do I accomplish setting up project quota for my live root folder being ext4 on Ubuntu 18.04?
Documentation specific to project quota on the ext4 filesystem is basically non-existent and I tried this:
- Installed Quota with
apt install quota -y
- Put
prjquota
into/etc/fstab
for the root / and rebooted, filesystem got booted as read-only, no project quota (from here only with prjquota instead of the user and group quotas) - Also
find /lib/modules/`uname -r` -type f -name '*quota_v*.ko*'
was run and both kernel modules/lib/modules/4.15.0-96-generic/kernel/fs/quota/quota_v2.ko
and/lib/modules/4.15.0-96-generic/kernel/fs/quota/quota_v1.ko
were found (from this tutorial) - Put
GRUB_CMDLINE_LINUX_DEFAULT="rootflags=prjquota"
into/etc/default/grub
, ranupdate-grub
and rebooted, machine does not come up anymore. - Putting
rootflags=quota
intoGRUB_CMDLINE_LINUX="... rootflags=quota"
runningupdate-grub
and restarting did showquota
andusrquota
being enabled on root, but it does not work withprjquota
orpquota
orproject
being set as an rootflag
I need this for the DIR storage backend of LXD to be able to limit container storage size. What else can I try?