How to fix Disk Quota on cPanel
After moving an account from one server to another or migrating a new user you might see inconsistency in disk space occupied or a Disk Quota problem.
If that’s the question then you can investigate this further by firing the following command and get a list of every file on the server that is owned by that account.
find / -user 'username' | du -sh
Once it displays the output, you can go through it to see if they have files located somewhere other then their home directory that is using up their space.
If you have determined that everything is accounted for, but does not add up to the space reported in cPanel, then you can run the following commands to correct their quotas.
/scripts/generate_maildirsize --verbose --allaccounts --force --confirm /scripts/fixquotas find /home/username/mail/ -name maildirsize | xargs rm -f
Once these 3 commands have been run, their cPanel should report the proper disk quotas again.
Leave a Reply