Sunday 9 June 2013

/scripts/fixquotas issue in cpanel server

Problem: The quota alloted for each account seems unlimited when you check Main >> Account Information >> List Accounts from WHM. 

When run /scripts/fixquotas to correct the quotas for each website, You may get the following error.

#/scripts/fixquotas

Installing Default Quota Databases......Done
Quota Mode: Linux
journaled quota support: not available with vzaquota (disabled)
Quotas have been enabled, however they may not be up to date as quotacheck has been skipped.
Reading package *****
No filesystems with quota detected.
Resetting quota for ***** to 1024 M
Reading package *****
No filesystems with quota detected.
Resetting quota for ***** to 2048 M
Reading package *****
No filesystems with quota detected.
Resetting quota for ***** to 512 M


SOLUTION:

If it is an openvz container and you have node access you can fix it simply by doing the below steps.

1. Login to the Hardware Node containing the particular container/vps

2. Shutting down the container/vps
# vzctl stop CT_ID

3. Adding the quotaugidlimit for the VPS using the command
# vzctl set 101 --quotaugidlimit 80 --save
 Forexample here CT_ID is 101 and Disk Space for VPS is 80GB.

4. starting/mounting the container/vps
#  vzctl start CT_ID

5.  running /scripts/fixquotas
#  /scripts/fixquotas

Thats it. Please check again Main >> Account Information >> List Accounts from WHM and verify the result.


No comments:

Post a Comment