Servers that use the XFS® filesystem and run CentOS 7, CloudLinux™ 7, or Red Hat® Enterprise Linux (RHEL) 7 require additional actions for quotas to function properly. cPanel & WHM versions 76 and later enable quotas by default on new installations.
But if you are using older cPanel version, then:
- WHM Interface — After you enable quotas in WHM's Initial Setup Assistant interface and the system performs the necessary configuration changes, a button appears in the top right corner of the WHM interface. You must click this button to reboot the system. After the system reboots, a quota scan runs in the background to complete the process.
- Command Line — Run the /scripts/fixquotas script and then reboot the server.
- Manually via the Command Line — For instructions on how to perform the /scripts/fixquotas script's actions manually, the Red Hat XFS and XFS Quota Management documentation.
If Quota System Administration notifications are enabled, the system sends notifications when it is ready to reboot and when the quota scan finishes and quotas are functional.
Run the mount command:
Run the mount command to obtain basic information about currently-mounted file systems. You can see all the most available file systems at http://en.wikipedia.org/wiki/File_systems
For more information about the mount command, visit the mount command documentation: http://linux.die.net/man/8/mount
When you run this command without any arguments, the system displays information for all of its mounted file systems.
Examine the fstab file contents:
The file system table (fstab) file maps devices to their respective mount points within a system.
sudo cat /etc/fstab
The contents of the fstab file will resemble the following example:
/dev/sda5 /backup ext3 defaults,noexec 0 0
LABEL=/boot /boot ext3 defaults,usrquota 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda5 /swap swap defaults 0 0
/usr/tmpDSK /tmp ext3 defaults,noauto 0 0
Remember entries that contain the usrquota variable are quota-enabled. For more information about the fstab file, visit the fstab command documentation: http://linux.die.net/man/5/fstab
After you verify which devices do not use quotas, perform the following steps to enable quotas for the desired devices.
Specify quotas in the fstab file
To enable quotas on a device, open the /etc/fstab file with a text editor and add the usrquota string to the Options column.
Use spaces and tabs to create blank spaces between entries, for example:
LABEL=/boot /boot ext3 defaults,usrquota 1 2
After you edit the fstab file, run the mount and remount commands to remount the file system.
For example, to remount the /dev/mapper/VolGroup00-LogVol00 device, run the following command:
mount -o remount /boot
Verify that you enabled quota files:
ls -l /*.user
Ensure quotas report on the system:
repquota -a
If you experience further problems, perform one of the following actions:
- disable the Cache disk quota information option in the System section of WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).
- set the disablequotacache parameter to 0 in the /var/cpanel/cpanel.config file.