Previous page

Next page

Locate page in Contents

Print this page

vzquota

This command is used to configure and see disk quota statistics for Containers. vzquota is also used to turn on the possibility of using per-user/group quotas inside the Container. It allows you to configure per-user or per-group quota inside the Container as well. vzctl uses vzquota internally to configure quotas and you usually do not have to use vzquota except for checking the current quota statistics. The syntax of vzquota command is as follows:

vzquota [options] command <CT_ID> [command-options]

General options available to all vzquota commands are:

-v

Verbose mode. Causes vzquota to print debugging messages about its progress. You can give up to two v switches to increase verbosity.

-q

Quiet mode. Causes all warning and diagnostic messages to be suppressed. Only fatal errors are displayed.

Virtuozzo quota works on a file system sub-tree or area. If this area has additional file systems mounted to its subdirectories, the quota will not follow these mount points. When you initialize quota, you specify the file system sub-tree starting point for the quota. Quota keeps its current usage and settings for a Container in the /var/vzquota/quota.<CT_ID> file.

Any quota file has a special flag, which indicates whether the file is "dirty". The file is dirty when its content can be inconsistent with that of real quota usage. On the Container startup, quota will be re-initialized if the Hardware Node was incorrectly brought down (for example power switch was hit). This operation may noticeably increase the Hardware Node startup time.

For both the disk and inodes usage, Virtuozzo allows you to set soft and hard limits as well as an expiration time. Upon reaching a soft limit, Virtuozzo starts the expiration time counter. When the time is expired, the quota will block the subsequent disk space or inode allocation requests. The hard limit cannot be exceeded.

vzquota understands the following commands:

init

Before you can use quota, the current disk space and inode usage should be counted. For the init command, you must specify all the limits as well as the file tree where you want to initialize the quota.

drop

Removes the quota file.

on

Turns on quota accounting on the specified quota ID.

off

Turns off quota accounting on the specified quota ID.

setlimit

Allows you to change quota limits for the running quota.

setlimit2

Set the second-level quota parameters.

stat

Shows quota statistics for the running quota.

show

Shows quota usage from the quota file.

In This Section

vzquota init

vzquota drop

vzquota on and vzquota off

vzquota setlimit

vzquota setlimit2

vzquota stat and vzquota show

Please send us your feedback on this help page