Cpanel - Disk Quota Does not working

Here one can find interesting information about OpenVZ management and maintenance. OpenVZ control panels information also goes here

Cpanel - Disk Quota Does not working

Postby lik » Sat Aug 15, 2009 12:38 am

There a two "quota systems" used by OpenVZ:

1 Level Quota:

Space Hostnode to Container:
Is set by --diskspace barrier:limit (/--diskinode barrier:limit) config how much a container can use the diskspace/indodes on the hardwarenode

2 Level Quota:

Is how many User/Group in this container can use the space above, set by --quotaugidlimit num (= limit of quota u(ser) g(roup)id) set how many User/Groups ID are accounted).
Add line:
/etc/sysconfig/vz-scripts/{VEID}.conf
QUOTAUGIDLIMIT="5000"

Reboot the VM:
Code: Select all
vzctl restart {VEID}

Execute following commands inside VM container :
Code: Select all
quotaoff -av
quotaon -av
/scripts/fixquotas

It should solve the issue.
Note: Quota support should be also reflected in the "/etc/fstab".
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to OpenVZ related

 


  • Related topics
    Replies
    Views
    Last post