Quota won’t change on cPanel server

Reading time: 3m

The Problem

You login to WebHost Manager, and change a customer’s package to upgrade their disk quota, and it appears to set, but does not save the new value for the account upon visiting List Accounts, and looking at the Quota column.

In SSH, if you do the following as root, and you get no output, then it’s likely quota support is disabled:

quota -svu cPanelUsername

The problem here in most cases, is that the quota file is corrupted, or the partition doesn’t have it enabled.  Also, if use a partition that already has support for it for cPanel backups, then cPanel will disable support for it automatically.  You can easily remedy that by purchasing a separate drive for backups that has it’s own partition without quota support.  This way, it also doesn’t cause I/O issues for the primary partition while backups are running.

How to fix the quota

cPanel includes a great script to fix this, but needs to be run in SSH.  Login as root, and run the following:

/scripts/fixquotas

Then verify your partitions are mounted with usrjquota:

root@server ~ # grep usrj /proc/mounts 
/dev/vda1 / ext4 rw,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0

The output from your server should look similar to the above if everything has been fixed.  Try to change the user’s package (that has the desired disk space), or just manually adjust it through Modify Account as well, and it should go through.

Leave a Reply

Your email address will not be published.