UnixServerAdmin

Server Administration & Management

How to fix Quotas in cPanel

If you go into WHM –> List Accounts and all your accounts are showing an unlimited quota and 0 MB disk space usage, Its probably have a quota problem.So please use following commands :-

#/scripts/fixquotas

This’ll take sometime to analysis server current disk usage, will usually fix the problem. If it doesn’t, make sure that quotas are on for your filesystem.  Check the file /etc/fstab, and in the fourth column (the options column), make sure that ‘usrquota’ is specified for the file system that contains your user home folders.  For example, this is how looks:

LABEL=/var      /var          ext3    defaults,noatime,usrquota 0  0
LABEL=/home    /home          ext3    defaults,noatime,usrquota 0  0

If /home is part of the / partition, then the quotas need to be applied to / .

Now, remount the partitions with new options.  For the root ( / ) partition for example, you’d run the following command:

#mount -o remount /

Then run the following command to update quotas:

#/scripts/initquotas

If the problem indicates a problem writing to /aquota.user or similar, make sure the file isn’t set to immutable:

#chattr -ia /aquota.user

Advertisements

January 6, 2011 Posted by | cPanel | , , | 1 Comment