Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel2
stylenone

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.

  • In cPanel & WHM version 74 and earlier, when you log in to WHM for the first time, the Initial Setup Assistant interface appears. The Set Up Quotas section of this interface (Step 6) allows you to enable or disable quotas. We removed the Initial Setup Assistant interface in cPanel & WHM version 76.
  • In cPanel & WHM version 76 and later, the installation process enables quotas by default. You must wait until after installation to disable quotas.
  • You can enable quotas in WHM’s Initial Quota Setup interface (WHM >> Home >> Server Configuration >> Initial Quota Setup) or via the /usr/local/cpanel/scripts/fixquotas script.

Disable filesystem quotas

Localtab Group


Localtab
titleDisable from the root XFS filesystem


Section


Column
width72px


Column

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:


    Code Block
    languagebash
    rootflags=uquota


  4. Save and close the file.


 


 

Section


Column
width72px


Column

Update GRUB.

To update the GRUB bootloader, run the following command:

Code Block
languagebash
grub2-mkconfig --output=/boot/grub2/grub.cfg



 


 

Section


Column
width72px


Column

Disable quotas on the server.

To disable quotas, run the following command:

Code Block
languagebash
xfs_quota -x -c 'off' -c 'remove' /



 



Section


Column
width72px


Column

Reboot the server.

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





Section


Column
width72px


Column

Confirm your changes.

To confirm your changes, run the following command:

Code Block
languagebash
mount | grep ' / '

The command's output will resemble the following example:

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





Localtab
titleDisable from non-root XFS filesystems


Section


Column
width72px


Column

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.


 


 

Section


Column
width72px


Column

Disable quotas on the server.

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

Code Block
languagebash
xfs_quota -x -c 'off' -c 'remove' path_to_mount



 


 

Section


Column
width72px


Column

Remount the filesystem.

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

Code Block
languagebash
mount -o remount path_to_mount


Note
titleNote:

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

Localtab Group


Localtab
activetrue
titleSuggested documentation

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("quotas") and label = "whm" and space = currentSpace()


Localtab
titleFor cPanel users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("quotas") and label = "cpanel" and space in ("DOC",currentSpace())


Localtab
titleFor WHM users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("quotas") and label = "whm" and space in (currentSpace(),"DOC")


Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("quotas") and space = "DD"