Editing Man/vzquota.8
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== NAME == | == NAME == | ||
− | <p style="margin-left:11%; margin-top: 1em">vzquota | + | <p style="margin-left:11%; margin-top: 1em">vzquota - |
manipulate containers disk quotas</p> | manipulate containers disk quotas</p> | ||
Line 18: | Line 18: | ||
<p style="margin-left:11%; margin-top: 1em">The | <p style="margin-left:11%; margin-top: 1em">The | ||
− | + | <b>quota_id</b> must be numeric-only identifier. Note, that | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
quota ID is not the same as container ID (CTID). One | quota ID is not the same as container ID (CTID). One | ||
container can mount several filesystems and each of them can | container can mount several filesystems and each of them can | ||
Line 30: | Line 24: | ||
== OPTIONS == | == OPTIONS == | ||
+ | |||
+ | <p style="margin-left:11%; margin-top: 1em">Argument | ||
+ | <i>command</i> can be one of the following: <b>init</b>, | ||
+ | <b>drop</b>, <b>on</b>, <b>off</b>, <b>setlimit</b>, | ||
+ | <b>setlimit2</b>, <b>stat</b>, <b>show</b>.</p> | ||
=== General === | === General === | ||
Line 88: | Line 87: | ||
=== Quota Commands === | === Quota Commands === | ||
− | |||
− | |||
available:</p> | available:</p> | ||
Line 183: | Line 180: | ||
given quota_id is running and second-level quota is on. | given quota_id is running and second-level quota is on. | ||
Stores new limits in the quota file.</p> | Stores new limits in the quota file.</p> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<table width="100%" border="0" rules="none" frame="void" | <table width="100%" border="0" rules="none" frame="void" | ||
Line 220: | Line 212: | ||
</table> | </table> | ||
− | === | + | === Quota Command Options === |
− | + | flags.</b> <br> | |
− | < | + | All these options are required in <b>init</b> command, and |
− | in <b>init</b> command, and optionally accepted in <b>on</b> | + | optionally accepted in <b>on</b> and <b>setlimit</b> |
− | and <b>setlimit</b> commands.</p> | + | commands.</p> |
− | <p style="margin-left:11%;"><b>−s</b>, | + | <p style="margin-left:11%;"><b>−s</b>, |
+ | <b>--sub−quotas 1</b><i>|</i><b>0</b></p> | ||
<p style="margin-left:22%;">Enables or disables user/group | <p style="margin-left:22%;">Enables or disables user/group | ||
based quota inside the container. Here <b>1</b> means to | based quota inside the container. Here <b>1</b> means to | ||
enable, and <b>0</b> - to disable. By default user/group | enable, and <b>0</b> - to disable. By default user/group | ||
− | quota is disabled. This option is accepted by <b>init</b> | + | quota is disabled. This option is accepted by <b>init</b> |
− | <b>on | + | and <b>on</b> commands.</p> |
− | <p style="margin-left:11%;"><b>−u | + | <p style="margin-left:11%;"><b>−u</b> |
+ | <i>user_id</i></p> | ||
<p style="margin-left:22%;">For <b>setlimit2</b> command | <p style="margin-left:22%;">For <b>setlimit2</b> command | ||
Line 240: | Line 234: | ||
<i>user_id</i>.</p> | <i>user_id</i>.</p> | ||
− | <p style="margin-left:11%;"><b>−g | + | <p style="margin-left:11%;"><b>−g</b> |
+ | <i>group_id</i></p> | ||
<p style="margin-left:22%;">For <b>setlimit2</b> command | <p style="margin-left:22%;">For <b>setlimit2</b> command | ||
Line 313: | Line 308: | ||
excess of a inode soft limit.</p> | excess of a inode soft limit.</p> | ||
− | + | <p style="margin-left:11%;"><b>Quota options. <br> | |
− | + | −p</b> <i>path</i></p> | |
− | <p style="margin-left:11%;"><b>−p | ||
<p style="margin-left:22%;">Point of quota accounting for | <p style="margin-left:22%;">Point of quota accounting for | ||
Line 345: | Line 339: | ||
</table> | </table> | ||
− | <p style="margin-left:11%;"><b>−c | + | <p style="margin-left:11%;"><b>−c</b> |
+ | <i>quota_file</i></p> | ||
<p style="margin-left:22%;">This option allows to specify a | <p style="margin-left:22%;">This option allows to specify a | ||
Line 402: | Line 397: | ||
<p style="margin-left:11%; margin-top: 1em"><b>vzquota | <p style="margin-left:11%; margin-top: 1em"><b>vzquota | ||
stat</b> and <b>vzquota show</b> display the following | stat</b> and <b>vzquota show</b> display the following | ||
− | information: | + | information:</p> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <p><b> | + | <p style="margin-left:11%; margin-top: 1em"><b>resource</b> |
− | + | - 1k-blocks or inodes.</p> | |
− | |||
− | <p | + | <p style="margin-left:11%; margin-top: 1em"><b>usage</b> - |
− | + | current usage of resource.</p> | |
− | < | ||
− | </ | ||
− | <p style="margin-left:11%;"><b>softlimit</b></p> | + | <p style="margin-left:11%; margin-top: 1em"><b>softlimit</b> |
+ | - resource limit. Current usage can exceed this limit up to | ||
+ | hard limit during grace time.</p> | ||
− | <p style="margin-left: | + | <p style="margin-left:11%; margin-top: 1em"><b>hardlimit</b> |
− | + | - resource limit. Current usage can’t exceed this | |
− | + | limit.</p> | |
− | |||
− | |||
− | |||
− | |||
− | can’t exceed this | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <p><b> | + | <p style="margin-left:11%; margin-top: 1em"><b>grace</b> - |
− | + | during this amount of time usage can exceed softlimit. If a | |
− | + | soft limit has not been exceeded the grace column is blank. | |
+ | If the grace period has expired, the grace column contain | ||
+ | special <b>none</b> value.</p> | ||
− | <p | + | <p style="margin-left:11%; margin-top: 1em">If |
− | < | + | <b>−t</b> is specified the following information is |
− | + | displayed also:</p> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | <p style="margin-left:11%;"><b> | + | <p style="margin-left:11%; margin-top: 1em"><b>User/group |
− | + | quota</b> - on|off, active|inactive. Status of the 2nd level | |
+ | quota. on|off defines the state of the 2nd level quota at | ||
+ | the next start of container quota. active|inactive indicates | ||
+ | the current state of the 2nd level quota in kernel.</p> | ||
− | <p style="margin-left: | + | <p style="margin-left:11%; margin-top: 1em"><b>Ugids</b> - |
− | < | + | <i>loaded</i>, <i>total</i> and <i>limit</i>. <i>loaded</i> |
− | + | is number of records (uids or gids) in kernel. <i>total</i> | |
− | of unique records | + | is number of unique records located in the kernel and quota |
− | + | file. <i>limit</i> is current kernel limits of records | |
− | + | amount. <i>loaded</i> and <i>total</i> may be greater then | |
+ | <i>limit</i>.</p> | ||
− | <p style="margin-left:11%;"><b> | + | <p style="margin-left:11%; margin-top: 1em"><b>Ugid limit |
− | + | was exceeded</b> - yes or no. <i>Yes</i> indicates that | |
+ | vzquota did not loaded all records in kernel. In this case | ||
+ | you should reduce number of unique records (remove files | ||
+ | which belong to unnecessary users) or increase <i>limit</i>. | ||
+ | After that you should restart quota.</p> | ||
− | <p style="margin-left: | + | <p style="margin-left:11%; margin-top: 1em"><b>User/group |
− | flags | + | grace times and quotafile flags</b> - during grace time |
− | v.3 | + | usage can exceed softlimit. Quotafile flags are internal |
+ | parameters of standard linux kernel quota v.3.</p> | ||
== EXIT STATUS == | == EXIT STATUS == | ||
Line 637: | Line 589: | ||
<p style="margin-left:11%; margin-top: 1em">Copyright (C) | <p style="margin-left:11%; margin-top: 1em">Copyright (C) | ||
− | 2000- | + | 2000-2008, Parallels, Inc. Licensed under GNU GPL.</p> |