I was trying implement disk user and group quotas at Google Compute Engine with Ubuntu 16.04 LTS, but till now i'm unsuccessful.
Quota allows you to specify limits on two aspects of disk storage: the number of inodes a user or a group of users may possess; and the number of disk blocks that may be allocated to a user or a group of users.
The idea behind quota is that users are forced to stay under their disk consumption limit, taking away their ability to consume unlimited disk space on a system.
sudo -s apt-get -y install quota quotatool nano /etc/fstab
then I used
LABEL=cloudimg-rootfs / ext4 defaults,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 0
then I tried activate quota:
mount -o remount / quotacheck -avugm quotaon -avug quotaon: using //quota.user on /dev/sda1 [/]: No such process quotaon: Quota format not supported in kernel
Quota module not in kernel, I create the user and group quota.
touch /aquota.user /aquota.group chmod 600 /aquota.* mount -o remount / quotacheck -avugm quotaon -avug quotaon: using //quota.user on /dev/sda1 [/]: No such process quotaon: Quota format not supported in kernel
I remembered a way used in AWS EC2:
apt-get -y install linux-image-extra-virtual echo quota_v1 >> /etc/modules echo quota_v2 >> /etc/modules reboot sudo -s cat /proc/modules | grep -i quota
Nothing, Didn't work either.
modprobe quota_v1 modprobe: FATAL: Module quota_v1 not found in directory /lib/modules/4.8.0-46-generic quotaon -pa group quota on / (/dev/sda1) is off user quota on / (/dev/sda1) is off
I made this work at EC2 but no luck with Google Compute Engine. Any idea what I can try more?