Overview

Filesystem quotas allow server owners to limit the amount of disk space that an account uses. For most hosting providers, this is an integral part of how they manage cPanel accounts. However, in some circumstances, you may wish to disable filesystem quotas in order to improve your server's performance.

Disable filesystem quotas





Remove the GRUB_CMDLINE_LINUX entry.

To remove the GRUB_CMDLINE_LINUX entry, perform the following steps:

  1. SSH in to your server as the root user.
  2. Use your preferred text editor to open the /etc/default/grub file.
  3. Remove the following line from the file:


    rootflags=uquota


  4. Save and close the file.


 


 



Update GRUB.

To update the GRUB bootloader, run the following command:

grub2-mkconfig --output=/boot/grub2/grub.cfg



 


 



Disable quotas on the server.

To disable quotas, run the following command:

xfs_quota -x -c 'off' -c 'remove' /



 





Reboot the server.

To apply your changes, use your preferred method to reboot your server.







Confirm your changes.

To confirm your changes, run the following command:

mount | grep ' / '

The command's output will resemble the following example:

/dev/vda1 on / type xfs (rw,relatime,attr2,inode64,noquota)








Remove entries in the /etc/fstab file.

To remove the quota-related entry, perform the following steps:

  1. SSH in to your server as the root user.
  2. Use your preferred text editor to open the /etc/fstab file.
  3. Find the line for your mount or filesystem.
  4. Remove the uquota entry from that line.
  5. Save and close the file.


 


 



Disable quotas on the server.

To disable quotas, run the following command, where path_to_mount represents the absolute path to your mount point:

xfs_quota -x -c 'off' -c 'remove' path_to_mount



 


 



Remount the filesystem.

To remount the filesystem, run the following command, where path_to_mount represents the absolute path to your mount point:

mount -o remount path_to_mount


It is not necessary to reboot the server when you disable quotas for non-root filesystems. However, you can reboot the server as an alternative to this step.





Additional documentation