Wednesday, November 10, 2010

Cpanel quota issues

On VPS based system
/proc/vz/vzaquota/00000073/aquota.group and /proc/vz/vzaquota/00000073/aquota.user are the files which managing the VPS quota

For some cases customer can not create users because of the quota issue. This may likely because of the damage of their quota file.

Solution
On you VE please run the following commands.

rm -rf /aquota.user 2>/dev/null
rm -rf /aquota.group 2>/dev/null
unlink /aquota.user 2>/dev/null
unlink /aquota.group 2>/dev/null
for x in `find /proc/vz/vzaquota/ | tail -2 `; do ln -s $x / ; done

=============================
2. WHM and server showing different quota size
# /scripts/initquotas
# /scripts/fixquotas
# /scripts/resetquotas
screen -S ea quotacheck
sh-3.00# quotacheck -avfumg

now compare whm and server to verify your disk quota is similar

If it is not perfect we need to take vm offline for 10 minutes to recalculate the disk space usage

On your HN(Harware Node)
# screen -S quotarebuild
# vzctl stop
# vzquota drop
# vzctl start

No comments:

Post a Comment