Enable XFS quota on Rocky Linux 9

First check the quotas are not enabled by command.

# mount | grep xfs

You should see “noquota” in the output

Also check with following command, it will give empty result means that quota is disabled.

# xfs_quota -x -c state

Please add rootflags=uquota in “GRUB_CMDLINE_LINUX” in /etc/sysconfig/grub:

GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet rootflags=uquota"

Then generate grub.cfg in /boot:

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

Final step update all current kernels:

# grubby --args="rootflags=uquota" --update-kernel=ALL

Check if the quota option is used in /etc/fstab:

UUID=df5462ce-cd8a-417d-a454-7688139cf2228 / xfs defaults,uquota 0 0

Finally reboot your machine. Afterward your mount command should show usrquota.

Source: https://webuzo.com/docs/admin/enable-xfs-quotas/

Leave a Reply

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

Blue Captcha Image Refresh

*