Changes

Jump to: navigation, search

Man/vzquota.8

1,075 bytes added, 16:04, 25 September 2012
Automated import of articles *** existing text overwritten ***
<p style="margin-left:11%; margin-top: 1em">The
<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>reload2</b>, <b>stat</b>,<b>show</b>.</p> <p style="margin-left:11%; margin-top: 1em">The<i>quota_id</bi> must be numeric-only identifier. Note, that
quota ID is not the same as container ID (CTID). One
container can mount several filesystems and each of them can
== 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 ===
=== Quota Commands ===
 
<p style="margin-top: 1em">The following commands are
available:</p>
given quota_id is running and second-level quota is on.
Stores new limits in the quota file.</p>
 
<p style="margin-left:11%;"><b>reload2</b></p>
 
<p style="margin-left:22%;">Reload second-level quota
limits from quota file for given quota_id.</p>
<table width="100%" border="0" rules="none" frame="void"
</table>
=== Quota Command Options Setting quota limits ===flags.</bp style="margin-top: 1em"> <br>All these options are required in <b>init</b> command, andoptionally accepted in <b>on</b> and <b>setlimit</b>commands.</p>
<p style="margin-left:11%;"><b>&minus;s</b>,&nbsp;<b>--sub&minus;quotas &nbsp;1</b><i>|</i><b>0</b></p>
<p style="margin-left:22%;">Enables or disables user/group
based quota inside the container. Here <b>1</b> means to
enable, and <b>0</b> - to disable. By default user/group
quota is disabled. This option is accepted by <b>init</b>,<b>on</b> and <b>onsetlimit</b> commands.</p>
<p style="margin-left:11%;"><b>&minus;u&nbsp;</b><i>user_id</i></p>
<p style="margin-left:22%;">For <b>setlimit2</b> command
<i>user_id</i>.</p>
<p style="margin-left:11%;"><b>&minus;g&nbsp;</b><i>group_id</i></p>
<p style="margin-left:22%;">For <b>setlimit2</b> command
excess of a inode soft limit.</p>
=== Other options === <p style="margin-left:11%;"><b>Quota options. <br>&minus;p&nbsp;</b> <i>path</i></p>
<p style="margin-left:22%;">Point of quota accounting for
</table>
<p style="margin-left:11%;"><b>&minus;c&nbsp;</b><i>quota_file</i></p>
<p style="margin-left:22%;">This option allows to specify a
<p style="margin-left:11%; margin-top: 1em"><b>vzquota
stat</b> and <b>vzquota show</b> display the following
information:<b><br>resource</b></p> <p style="margin-left:22%;">Either 1k-blocks or inodes.</p> <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="7%">
<p style="margin-left:11%; margin-top: 1em"><b>resourceusage</b></p></td>- 1k-blocks or inodes.<td width="4%"></ptd><td width="40%">
<p style>Current usage of resource.</p></td><td width="margin-left:1138%; margin-top: 1em"><b/td>usage</btr> -current usage of resource.</ptable>
<p style="margin-left:11%; margin-top: 1em"><b>softlimit</b>- resource limit. Current usage can exceed this limit up tohard limit during grace time.</p>
<p style="margin-left:1122%; ">Resource limit. Current usagecan exceed this limit up to hard limit during gracetime.</p> <p style="margin-topleft: 1em11%;"><b>hardlimit</b></p<p style="margin- resource left:22%;">Resource limit. Current usage can&rsquo;t exceed thislimit.</p> <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="7%"> <p><b>grace</b></p></td><td width="4%"></td><td width="78%"> <p>During this amount of time usage can exceed softlimit.If a soft limithas not been exceeded the grace column isblank.If the grace period has expired, the grace columncontain special <b>none</b> value.</p></td></tr></table> <pstyle="margin-left:11%; margin-top: 1em">In case option<b>&minus;t</b> is specified, the following information isalso displayed: <b><br>User/group quota:</b></p> <p style="margin-left:22%;">Status of the 2nd level quota.This can be <b>on</b> or <b>off</b>, <b>active</b> or<b>inactive</b>. Values <b>on</b>/<b>off</b> define thestate of the 2nd level quota at the next start of containerquota. Values <b>active</b>/<b>inactive</b> indicate thecurrent state of the 2nd level quota in the kernel.</p> <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="9%">
<p style="margin-left:11%; margin-top: 1em"><b>graceUgids:</b> -during this amount of time usage can exceed softlimit. If asoft limit has not been exceeded the grace column is blank.If the grace period has expired, the grace column contain</p></td>special <btd width="2%">none</btd> value.</ptd width="78%">
<p style="margin-left>Three values are shown:11%; margin-top: 1em"<i>loaded</i>, <i>total</i>Ifand<bi>limit</i>. <i>&minus;tloaded</bi> is specified the following information number of records (uidsor gids) in the kernel. <i>total</i> isthe number of uniquedisplayed also:records located in the kernel and quota file. <i>limit</i>is the current kernel limit of records amount. Note that<i>loaded</i> and <i>total</i> may be greater then<i>limit</i>.</p> </td></tr></table>
<p style="margin-left:11%; margin-top: 1em"><b>User/groupUgid limit wasquotaexceeded:</b> - on|off, active|inactive. Status of the 2nd levelquota. on|off defines the state of the 2nd level quota atthe next start of container quota. active|inactive indicatesthe current state of the 2nd level quota in kernel.</p>
<p style="margin-left:1122%; margin-top: 1em">Can be <b>Ugidsyes</b> -or <ib>loadedno</ib>, .<ib>totalyes</i> and <i>limit</i>. <ib>indicates that vzquota did not loaded</i>all recordsis number of records (uids or gids) in into the kernel. <i>total</i>In this case you should reduce the numberis number of unique records located in (remove files which belong to unnecessaryusers) or increase the kernel and quotafile. <i>ugid limit</i> is current kernel limits of recordsamount. <i>loaded</i> and <i>total</i> may be greater thenAfter that you should<i>limit</i>restart quota.</p>
<p style="margin-left:11%; margin-top: 1em"><b>Ugid limitUser/group grace times andwas exceededquotafile flags:</b> - yes or no. <i>Yes</i> indicates thatvzquota did not loaded all records in kernel. In this caseyou should reduce number of unique records (remove fileswhich belong to unnecessary users) or increase <i>limit</i>.After that you should restart quota.</p>
<p style="margin-left:1122%; margin-top: 1em"><b>User/groupgrace Grace times and quotafile flags</b> - during grace timequota fileusage can exceed softlimit. Quotafile flags are (internalparameters of standard linux kernel quota v.3).</p>
== DIAGNOSTICS EXIT STATUS ==
<table width="100%" border="0" rules="none" frame="void"
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2000-20082011, Parallels, Inc. Licensed under GNU GPL.</p>
2,253
edits

Navigation menu