Quota configuration failing

northtones

Verified User
Joined
May 2, 2013
Messages
25
I just brought a new server online and quotas were not setup. I am trying to get them setup now but am having issues, and I'm not sure why it's not working.

The server is running CentOS 8 and is using XFS. I followed the directions here: https://help.directadmin.com/item.php?id=557 twice without success.

My partitions are setup as such:

[root@plum bbadmin]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 16G 25M 16G 1% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md3 468G 141G 327G 31% /
/dev/md2 1020M 295M 725M 29% /boot
/dev/nvme0n1p1 510M 1.9M 509M 1% /boot/efi
tmpfs 3.2G 0 3.2G 0% /run/user/1004

Once going through all the steps:

[root@es7-64 ~]# mount | grep ' / '
/dev/mapper/centos-root on / type xfs (rw,relatime,attr2,inode64,noquota)
[root@es7-64 ~]#

Should be replaced with:

[root@es7-64 ~]# mount | grep ' / '
/dev/mapper/centos-root on / type xfs (rw,relatime,attr2,inode64,usrquota,prjquota)
[root@es7-64 ~]#


But nothing changes. Not sure what I could be doing wrong, and there isn't any further information to troubleshoot the problem.

Any assistance would be apprisiated.
 
I'm fixing the quotas as followed:

grep -q "^GRUB_CMDLINE_LINUX=.*rootflags=uquota,pquota" /etc/default/grub
ec=$?
if [[ $ec > 0 ]]; then
sed -i "s|^GRUB_CMDLINE_LINUX=\(.*\) rhgb quiet\"|GRUB_CMDLINE_LINUX=\1 rhgb quiet rootflags=uquota,pquota\"|g" /etc/default/grub
fi
grub2-mkconfig -o /boot/grub2/grub.cfg

Reboot the server and recheck the quotas
mount | grep ' / '
 
Back
Top