Greetings:
When I run –
# mount | grep ' / '
the output suggests quotas are installed and enabled:
/dev/sda on / type ext4 (rw,noatime,quota,usrquota,grpquota,errors=remount-ro,data=ordered)
Notice that the file system is ext4 and not the default XPS.
These 3 commands will get quotas cranking:
# ln -s /dev/sda /dev/root
# quotacheck -cugvmf -F vfsv0 /
# quotaon /
I may or may not restart the iworx service since it doesn’t seem to matter.
At which point quotas go from pink/disabled to green/enabled on the System Health page in Nodeworx. To disable quotas again all that’s needed is a reboot which loses the symlink for /dev/root and quotas can’t enable.
So my first question is what would be best practice for making this symlink permanent?
The legacy method in CentOS 6.x is to place the symlink in this file:
/etc/rc.d/rc.local
With newer distros the answer seems to be creating a systemd unit file in directory –
/etc/systemd/system/
I’ve been referring to articles like these that discuss it:
https://www.centos.org/forums/viewtopic.php?t=48140
Interworx has a guide for quotas and CentOS 7 that involves GRUB that isn’t working for me:
http://www.interworx.com/support/faq/enabling-quotas-centos7/
From what I’ve read here in the forums the GRUB method hasn’t worked for some people. In my case GRUB entries also don’t look anything like the instructions, so I’m lost. The systemd method loses me also. Oddly enough, the legacy method for CentOS 6 seems to be loading the symlink every boot so far.