I’ve installed Web/Virtualmin from the GPL installer onto my VPS running OpenVZ and centos-5.8-x86 and I’m not having much luck enabling quotas.
[root@dark600 ~]# mount
/dev/simfs on / type simfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type tmpfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
Yeah, unfortunately, we do see quite a few problems with OpenVZ (lots and lots and lots of them
There are really some cases where quotas just won’t work on an OpenVZ-based system, due to the configuration of the host.
However, we can try a few things –
What happens if you go into Webmin -> System -> Disk Quotas, and you click “Enable Quotas” there?
Also, you may want to try copying /etc/mtab over top of your /etc/fstab file (you may want to make a backup of them first) – and after doing that, try enabling the quotas again using Webmin.
I’m not getting the option to enable quotas from Webmin -> System -> Disk Quotas;
…
No local filesystems can support quotas.
You can enable quotas for a filesystem in the Disk and Network Filesystems module.
…
In Webmin -> System -> Disk and Network File Systems -> Module Config
I’ve swapped around fstab and mtab, and tried copying mtab content across and vice versa… still not working unfortunately. I’ve been restarting the server each time when doing so.
I wouldn’t recommend restarting your server, as with OpenVZ, they may be replacing your config files on bootup.
What you may want to try is copying /etc/mtab over /etc/fstab – and after doing that, hop into Webmin’s
“Disk Quotas” module, and see if it allows you to enable quotas at that point.
If that doesn’t work, what error do you receive exactly – and what are the current contents of your /etc/fstab file?
After that, try rebooting (which is different than my suggestion above), and then once you’ve booted, run the “mount” command and make sure that it shows the “usrquota” and “grpquota” options as being set on “/”.
Once it is, try going back into the Disk Quotas module and see if that works better.
Strange… Now I can see the mount in Disk Quotas but when I click Enable Quotas for that mount, nothing happens. It’s status doesn’t change.
[root@dark600 ~]# mount
/dev/simfs on / type simfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type tmpfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
hi all I have the same problem.
there was no /etc/fstab file but i created one and add these option suggested usrquota,grpquota
I can see the mount in Disk Quotas too but when I click Enable Quotas for that mount, nothing happens.
is there a solution?