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.
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.
The next step for the user is to run this following command in order to update the GRUB bootloader:
User needs to then run this following command in order to disable quotas, present on the server:
xfs_quota -x -c ‘off’ -c ‘remove’ /
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.
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)
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.
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.
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.
All information on the steps to disable filesystem quotas is outlined in this review.