Previous page

Next page

Locate page in Contents

Print this page

vzquota init

This command is used for counting the current usage of disk space and inodes. It has the following syntax:

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

The following options are understood by the vzquota init command:

-s, --sub-quotas 1|0

Optional. If the value used is 1 than per user/group quota is enabled in the Container. By default, user/group quotas are disabled.

-b, --block-softlimit num

Required. Disk quota block soft limit – amount of 1 Kb blocks allowed for the Container to use. This limit can be exceeded by the Container for the time specified by block expiration time (see below). When expiration time is off, the Container cannot allocate more disk space even if the hard limit is not yet reached.

-B, --block-hardlimit num

Required. Specifies disk quota block hard limit in 1 Kb blocks. This limit cannot be exceeded by the Container.

-e, --block-exptime time

Required. Expiration time for excess of the block soft limit. Time can be specified in two formats:

  • dd : hh : mm : ss For example: 30 - 30 seconds; 12:00 - 12 minutes; 20:15:11:00 - 20 days, 15 hours, 11 minutes
  • xxA , where A - h/H(hour); d/D(day); w/W(week); m/M(month); y/Y(year)
    For instance: 7D - 7 days; 01w - 1 week; 3m – 3 months

-i, --inode-softlimit num

Required. Inodes soft limit – amount of inodes allowed for the Container to create. This limit can be exceeded by the Container for the time specified by inode expiration time (see below). When expiration time is off the Container cannot create more inodes even if hard limit is not yet reached.

-I, --inode-hardlimit num

Required. Specifies inodes hard limit. This limit cannot be exceeded by the Container.

-n, --inode-exptime time

Required. Expiration time for excess of the inode soft limit. Time can be specified in two formats:

  • dd : hh : mm : ss For example: 30 - 30 seconds; 12:00 - 12 minutes; 20:15:11:00 - 20 days, 15 hours, 11 minutes
  • xxA , where A - h/H(hour); d/D(day); w/W(week); m/M(month); y/Y(year)
    For instance: 7D - 7 days; 01w - 1 week; 3m – 3 months

-p path

Required. Specifies the path to the Container private area.

-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.< CT_ID > file is used.