I’ve got virtualmin up and running and things are good. However, I’m having trouble getting quotas to work (I would like to be able to enforce disk quotas for email accounts).
I am using Ubuntu Server 12.04 on an Amazon AWS EC2 instance. It’s the default Ubuntu AMI (aside from virtualmin) - I haven’t modified anything.
When I try to enable quotas via Webmin -> System -> Disk Quotas, I get the error:
quotaon: using //aquota.user on /dev/disk/by-label/cloudimg-rootfs [/]: No such process quotaon: Quota format not supported in kernel.
I’ve done some Googling but can’t figure out what the issue is and I don’t want to modify configs at the OS level for fear of interfering with or breaking Virtualmin / Webmin.
fstab already has quotas enabled (I did not change this):
LABEL=cloudimg-rootfs / ext4 grpquota,usrquota,rw 0 0
Kernel is: Linux [FQDN] 3.2.0-24-virtual #39-Ubuntu SMP Mon May 21 18:44:18 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
The “mount” command returns:
/dev/xvda1 on / type ext4 (rw,grpquota,usrquota)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/xvda1 is the same as /dev/disk/by-label/cloudimg-rootfs (which webmin was referencing)
aptitude install linux-image-extra-virtual
find /lib/modules | grep quota # not strictly necessary, but will show which libraries are needed: see http://pastebin.com/GDS6dVi1
depmod -a
modprobe quota_v1
modprobe quota_v2
/etc/init.d/quota start
Then add these to the /etc/modules file:
quota_v1
quota_v2
All the credit goes to andreychek. I’m just putting this here to round out the discussion.