fbpx

Quotas not working on new Virtualmin hosted server

Background

You’ve just deployed a new Ubuntu 18.04 server, but Virtualmin Quotas are reported as not active.

On some hosted Ubuntu servers you have to install the kernel sources, and reboot, before quotas will work.

apt-get -y install linux-image-generic
apt-get -y install linux-headers-generic

Additionally try this:

apt-get -y install linux-image-extra-uname -r

Getting Quotas working on XFS

To get quotas working with Virtualmin and XFS, two items needs to be present:

> cat /etc/fstab

/dev/mapper/centos-root / xfs quota,attr2,grpquota,usrquota,inode64,relatime,rw 0 0

> cat /etc/default/grub

GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet rootflags=uquota,gquota"

To activate the GRUB changes, do this:

grub2-mkconfig -o /boot/grub2/grub.cfg

References

Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top