Fix cPanel Quotas When adding account from Packages

Fix cPanel Quota for Packages that always showing unlimited

The case of the Quotas from cPanel Packages

If you already created cPanel package and you are trying to add new account from the packages and when you check the account resources , WHM showing unlimited for the quotas and not updating the Disk Used of the account. the most reason of this unexpected behavior is by Configure Backup Directory option Backup of cPanel/WHM that is sharing drive with cPanel , to avoid that you have to change the Default Backup Directory path of the backup to different drive . 

To do so:

  1. Login to cPanel/WHM control panel.
  2. Navigate to Home »Backup »Backup Configuration.
  3. From Configure Backup Directory change the location of Default Backup Directory to different drive and enable Mount Backup Drive as Needed
  4. Save the changes.
  5. you will see the warning NOTE: Filesystem quotas are enabled. To prevent performance degradation, the system automatically disables quotas on non-root filesystems that contain a backup destination. so you have to be sure that you are using different drive for backup.

How to Fix cPanel Quota for existing account resources and usages statistics in WHM cPanel

Login to your server using SSH connection and run the command
				
					/scripts/fixquotas
				
			
and the result will be like
				
					Quotas have been enabled and updated.
Reading package yourpackage
Resetting quota for exampleaccount to 5120 M
Resetting quota for testaccount to 51200 M

				
			

To check and verify that resources has been updated go to Home »Account Information »List Accounts and you will be able to see the Quota and Disk Used fields with updated values.

Ensure quotas report on the system

Run the following command to confirm that you successfully enabled quotas on the device:

The command prints all of the file systems that exist in the /etc/mtab file with read and write privileges and quota options enabled.

				
					repquota -a
				
			

If you Still experience further problems, perform one of the following actions:

  • Disable the Cache disk quota information setting in the System section of WHM’s Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).
  • Set the disablequotacache parameter to 0 in the /var/cpanel/cpanel.config file.
Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Related Posts