If you see
/dev/sdb1 / xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
when executing the command cat /proc/mounts | grep ' / '
, you can enable disk quota by following the steps below
Note that these operations need to be done under the root user
1. Modify the kernel configuration /etc/default/grub
Find the configuration starting with GRUB_CMDLINE_LINUX and make the following modifications
GRUB_CMDLINE_LINUX="xxxxx"
change to
GRUB_CMDLINE_LINUX="xxxxx rootflags=prjquota"
2. Updated grub conf
update-grub
3. Reboot your server
4. After reboot could see quota is enabled.
cat /proc/mounts | grep ' / '
/dev/sda1 / xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0