Quota Modification
Valid for versions 94 through the latest version
Version:
82
94
Overview
This interface allows you to change an account’s disk space quota. This quota specifies the maximum amount of disk space that an account can use on your server.
- We enable quotas by default on new installations.
- If you disable and then reenable quotas, servers that use the XFS® filesystem and run AlmaLinux 8, CentOS 7 and 8, CloudLinux™ 7 and 8, or Red Hat® Enterprise Linux® (RHEL) 7 require additional actions for quotas to function properly:
- WHM Interface — Use WHM’s Initial Quota Setup interface (WHM >> Home >> Server Configuration >> Initial Quota Setup) to configure quotas.
- Command Line — Run the
/usr/local/cpanel/scripts/fixquotasscript and then remount the file system. - Manually via the Command Line — For instructions on how to perform the
/usr/local/cpanel/scripts/fixquotasscript’s actions manually, read the Red Hat XFS and XFS Quota Management documentation.
- If you have enabled Quota System Administration notifications, the system sends notifications when it is ready to reboot and when the quota scan finishes and quotas are functional.
- CloudLinux 7 and 8 updates may break quotas. For this reason, after each CloudLinux 7 and 8 update, you must run the
/usr/local/cpanel/scripts/fixquotasscript and then remount the file system.
Set appropriate quotas for each account on your server. For example, users who wish to host video content need more disk space than a user who only hosts a blog.
-
Quotas do not limit changes to MySQL® or PostgreSQL® databases.
-
Quotas that include database space only affect cPanel-related functions.
-
Processes that the system runs, such as PHP scripts that create files, can create user-owned files until the number of files reaches the quota. This situation occurs because the kernel-enforced quota does not access cPanel settings.
-
The backup process for an account near or over its quota may fail because the system cannot write necessary files, such as a database lock file.
-
If a discrepancy exists between quotas and the results of the
du -sh /home/usernamecommand, the user’s UID may own other files on the system. To find the locations of the user’s files, run thefind / -user username -lscommand, whereusernameis the username.
Change quotas
To assign a new quota, perform the following steps:
-
Choose one of the following options. The bandwidth information for the selected account or accounts will display.
- To change a single quota, select the desired account and click Modify.
- To view all of your users’ quotas, click Show all Accounts at the bottom of the interface.
- To view only a specific reseller’s accounts, click Show Only this Reseller’s Accounts.
-
Enter the new quota for each account in the appropriate text box, in megabytes (MB), or select Unlimited to grant the user unlimited disk space.
- If you chose to view all of your accounts, click Show Only this Reseller’s Accounts under a reseller’s username to view only that reseller’s accounts.
-
Click Save.
If all of your accounts’ quotas incorrectly display as 0, rebuild your system’s quota files. Click the click here link, or, if the interface does not display a link, use WHM’s Initial Quota Setup interface (WHM >> Home >> Server Configuration >> Initial Quota Setup).