Problem
How to initialize vzquota.
Analysis
Prerequisite: container must be stopped!
Solution
Initializing vzquota example [1]:
# /usr/sbin/vzquota init 100 -b 20485860 -B 20485860 -i 200100 -I 220100 -p /vz/private/100 -e 0 -n 0 -s 1 -u 200
CAUTION: There is a “Failed Quota” problem: Change anything about quota (turning on/off second level quota) only when the container is stopped!!! Otherwise it gets messed up. [2]
Other
I found a tool called VZagent – a way to manage OpenVZ through XML messages [3].
Resources
- http://forum.openvz.org/index.php?t=msg&goto=25223&
- http://forum.openvz.org/index.php?t=msg&goto=570&
- http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/VZAgent_ProgGuide.pdf
- http://ftp.openvz.org/doc/OpenVZ-Users-Guide.pdf
OpenVZ – Quota (vzquota)