Hello all… I need to set a disk quota for the users in a server managed with virtualmin. I’ve set a disk quota with webmin and this only works for users created with webmin, not when they are created from virtualmin module. I’ve read several posts about that and I’m not sure If I can do that…
New users have their home directory at ‘/home/newuser’.
At ‘/home’ there is a empty file named ‘aquota.user’.
#mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda5 on /usr type xfs (rw)
/dev/sda6 on /var type xfs (rw)
/dev/sda7 on /home type xfs (rw,grpquota,usrquota)
none on /tmp type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
I’m not sure if this is the problem you’re running into or not… but Virtualmin does in many cases attempt to apply quotas to databases, which would be on /var.
I’m curious if you continue to see the problems you’re having now if quotas were enabled on your /var partition.
Well, I’m not really familiar with getting quotas working on XFS… so you may need to do some tinkering on your own here if you’d like to use that filesystem
Here’s a couple of thoughts though –
It’s possible you’d have luck by going into Webmin -> System -> Disk Quotas, and enabling them from there.
Second, if that doesn’t help – I see a few hits for the error you’re seeing on Google… they’re a bit on the older side, but here’s an example: