Filesystem quota is a feature which permits an owner to limit the amount of disk space used by an account. This is seen as a fundamental part of managing the cPanel accounts by the hosting providers. But due to some unavoidable situations, user may decide to disable filesystem quotas for improving the performance of the server. This can be either disabled from the root XFS filesystem or from the non-root XFS filesystems.
Disable From The Root XFS Filesystem
Step 1: Remove The GRUB_CMDLINE_LINUX Entry
For this, user has to SSH in the server as the root user. Then he has to open the /etc/default/grub file using his preferred text editor. From the file, he has to remove the line: rootflags=uquota
To complete the step, user needs to save all the changes and close the file.
Step 2: Update GRUB
The next step for the user is to run this following command in order to update the GRUB bootloader:
Step 3: Disable Quotas On The Server
User needs to then run this following command in order to disable quotas, present on the server:
xfs_quota -x -c ‘off’ -c ‘remove’ /
Step 4: Reboot The Server
The next step is to reboot the server. In order to apply the changes made so far, user has to reboot the server with his preferred method.
Step 5: Confirm Your Changes
Finally, user has to run this following command to confirm all the changes that he made:
mount | grep ‘ / ‘
Here, the command’s output should resemble this following example:
/dev/vda1 on / type xfs (rw,relatime,attr2,inode64,noquota)
Disable From The Non-root XFS Filesystems
Step 1:Remove Entries In The /etc/fstab File
For this, user needs to SSH in to the server as the root user. Then he has to open the /etc/fstab file using his preferred text editor. Thirdly, user has to find out the line for the mount or filesystem. His next task would be to remove or delete the uquota entry from that line. User has to complete this first step by clicking on Save option and then close the file.
Step 2: Disable Quotas On The Server
For disabling the quotas on the server, user has to run this following command:
xfs_quota -x -c ‘off’ -c ‘remove’ path_to_mount
Here, path_to_mount refers to the absolute path to the user’s mount point.
Step 3: Remount The Filesystem
For remounting the filesystem, user needs to run this following command:
mount -o remount path_to_mount
Here, path_to_mount refers to the absolute path to your mount point.
It is to note that rebooting the server while disable quotas for non-root filesystems is not mandatory. Rebooting the server can be used as an alternative to this step.