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
prjquotainto/etc/fstabfor 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.koand/lib/modules/4.15.0-96-generic/kernel/fs/quota/quota_v1.kowere found (from this tutorial) - Put
GRUB_CMDLINE_LINUX_DEFAULT="rootflags=prjquota"into/etc/default/grub, ranupdate-gruband rebooted, machine does not come up anymore. - Putting
rootflags=quotaintoGRUB_CMDLINE_LINUX="... rootflags=quota"runningupdate-gruband restarting did showquotaandusrquotabeing enabled on root, but it does not work withprjquotaorpquotaorprojectbeing 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?