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
Any ideas on how I can fix this?
Hmm, that's an odd one! What output do you receive if you run the command "mount"?
Also, what kernel are you using? You can determine that by running "uname -a".
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)
ls -la /dev/disk/by-label/cloudimg-rootfs
lrwxrwxrwx 1 root root 11 Sep 30 06:09 /dev/disk/by-label/cloudimg-rootfs -> ../../xvda1
Thanks for your help!
I just hit this same issue.
Turns out that quota support was removed from the "-virtual" kernels in recent versions of Ubuntu.
The solution here worked for me: http://askubuntu.com/a/165298
Thanks, this worked perfectly. :-)
(not sure why they would remove such a useful feature from the standard kernels, but there we go...)
(double posted by mistake - carry on)
Thanks for letting us know about that issue, and how you fixed it!
The tip at http://askubuntu.com/a/165298 didn't work for me, but andrechek helped me on in #virtualmin
These commands did the trick:
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
Then add these to the /etc/modules file:
All the credit goes to andreychek. I'm just putting this here to round out the discussion.
Heres still this problem in 16.04 Ubuntu https://www.virtualmin.com/node/44795