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

  1. http://forum.openvz.org/index.php?t=msg&goto=25223&
  2. http://forum.openvz.org/index.php?t=msg&goto=570&
  3. http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/VZAgent_ProgGuide.pdf
  4. http://ftp.openvz.org/doc/OpenVZ-Users-Guide.pdf
OpenVZ – Quota (vzquota)

Leave a Reply

Your email address will not be published. Required fields are marked *