User`s guide

Reference 107
vzquota on and vzquota off
These commands are used to turn quota on and off. Their syntax is as follows:
vzquota [options] on vpsid [command-options]
vzquota [options] off vpsid [-f] [-c quota_file]
vzquota off turns the quota off for the file system tree specified in quota file given with an
optional –c switch. If this switch is omitted, the default /var/vzquota/quota.vpsid file
is used. This command exits with error if for some reason quota file cannot be accessed and
usage statistics could be lost. You can override this behavior by giving an optional –f switch.
vzquota on accepts the following options:
-s, --sub-quotas 1|0
Optional. If the value used is 1 then per user/group quota is
enabled in the Virtual Private Server. By default user/group
quotas are disabled.
-u, --ugid-limit num
Optional. Specifies the maximum number of user and group
IDs for which usage statistics will be counted in this VPS. If
this value is 0, user/group quota will not be accounted. The
default value is 0.
-p path
Required. Specifies the path to the Virtual Private Server
private area.
-f
This option forces recalculation of quota usage even if the
quota file does not have dirty flag set on.
-c quota_file
Optional. Specifies the file to write output of counted disk
space and inodes as well as limits. If omitted, the default
/var/vzquota/quota.vpsid file is used.
-b, --block-softlimit num
-B, --block-hardlimit num
-e, --block-exptime time
-i, --inode-softlimit num
-I, --inode-hardlimit num
-n, --inode-exptime time
These options are optional for the vzquota on command.
They are described in the
vzquota init subsection.
vzquota setlimit
This command updates limits for the running quota. It requires at least one limit to be specified.
It also updates the corresponding quota file with new settings. The syntax of this command is:
vzquota [options] setlimit vpsid [command-options]
Command options can be:
-u, --ugid-limit num
Optional. Specifies the maximum number of user and group
IDs for which usage statistics will be counted in this VPS. If
this value is 0, user/group quota will not be accounted.
Default value is 0.