Editing Man/vzquota.8

Jump to: navigation, search

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 18: Line 18:
  
 
<p style="margin-left:11%; margin-top: 1em">The
 
<p style="margin-left:11%; margin-top: 1em">The
<i>command</i> can be one of the following: <b>init</b>,
+
<b>quota_id</b> must be numeric-only identifier. Note, that
<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</i> 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 ===
 
<p style="margin-top: 1em">The following commands are
 
 
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>
 
<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 width="100%" border="0" rules="none" frame="void"
Line 220: Line 212:
 
</table>
 
</table>
  
=== Setting quota limits ===
+
=== Quota Command Options ===
 
+
flags.</b> <br>
<p style="margin-top: 1em">All these options are required
+
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>&minus;s</b>,&nbsp;<b>--sub&minus;quotas&nbsp;1</b>|<b>0</b></p>
+
<p style="margin-left:11%;"><b>&minus;s</b>,
 +
<b>--sub&minus;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</b> and <b>setlimit</b> commands.</p>
+
and <b>on</b> commands.</p>
  
<p style="margin-left:11%;"><b>&minus;u&nbsp;</b><i>user_id</i></p>
+
<p style="margin-left:11%;"><b>&minus;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>&minus;g&nbsp;</b><i>group_id</i></p>
+
<p style="margin-left:11%;"><b>&minus;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>
  
=== Other options ===
+
<p style="margin-left:11%;"><b>Quota options. <br>
 
+
&minus;p</b> <i>path</i></p>
<p style="margin-left:11%;"><b>&minus;p&nbsp;</b><i>path</i></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>&minus;c&nbsp;</b><i>quota_file</i></p>
+
<p style="margin-left:11%;"><b>&minus;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: <b><br>
+
information:</p>
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><b>usage</b></p></td>
+
<p style="margin-left:11%; margin-top: 1em"><b>resource</b>
<td width="4%"></td>
+
- 1k-blocks or inodes.</p>
<td width="40%">
 
  
<p>Current usage of resource.</p></td>
+
<p style="margin-left:11%; margin-top: 1em"><b>usage</b> -
<td width="38%">
+
current usage of resource.</p>
</td></tr>
 
</table>
 
  
<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:22%;">Resource limit. Current usage
+
<p style="margin-left:11%; margin-top: 1em"><b>hardlimit</b>
can exceed this limit up to hard limit during grace
+
- resource limit. Current usage can&rsquo;t exceed this
time.</p>
+
limit.</p>
  
<p style="margin-left:11%;"><b>hardlimit</b></p>
+
<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 style="margin-left:22%;">Resource limit. Current usage
+
<p style="margin-left:11%; margin-top: 1em">If
can&rsquo;t exceed this limit.</p>
+
<b>&minus;t</b> is specified the following information is
 
+
displayed also:</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 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></td></tr>
 
</table>
 
 
 
<p style="margin-left:11%; margin-top: 1em">In case option
 
<b>&minus;t</b> is specified, the following information is
 
also 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 the
 
state of the 2nd level quota at the next start of container
 
quota. Values <b>active</b>/<b>inactive</b> indicate the
 
current 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><b>Ugids:</b></p></td>
 
<td width="2%"></td>
 
<td width="78%">
 
 
 
<p>Three values are shown: <i>loaded</i>, <i>total</i> and
 
<i>limit</i>. <i>loaded</i> is the number of records (uids
 
or gids) in the kernel. <i>total</i> is the number of unique
 
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%;"><b>Ugid limit was
+
<p style="margin-left:11%; margin-top: 1em"><b>User/group
exceeded:</b></p>
+
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:22%;">Can be <b>yes</b> or <b>no</b>.
+
<p style="margin-left:11%; margin-top: 1em"><b>Ugids</b> -
<b>yes</b> indicates that vzquota did not loaded all records
+
<i>loaded</i>, <i>total</i> and <i>limit</i>. <i>loaded</i>
into the kernel. In this case you should reduce the number
+
is number of records (uids or gids) in kernel. <i>total</i>
of unique records (remove files which belong to unnecessary
+
is number of unique records located in the kernel and quota
users) or increase the ugid limit. After that you should
+
file. <i>limit</i> is current kernel limits of records
restart quota.</p>
+
amount. <i>loaded</i> and <i>total</i> may be greater then
 +
<i>limit</i>.</p>
  
<p style="margin-left:11%;"><b>User/group grace times and
+
<p style="margin-left:11%; margin-top: 1em"><b>Ugid limit
quotafile flags:</b></p>
+
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:22%;">Grace times and quota file
+
<p style="margin-left:11%; margin-top: 1em"><b>User/group
flags (internal parameters of standard linux kernel quota
+
grace times and quotafile flags</b> - during grace time
v.3).</p>
+
usage can exceed softlimit. Quotafile flags are internal
 +
parameters of standard linux kernel quota v.3.</p>
  
== EXIT STATUS ==
+
== DIAGNOSTICS ==
  
 
<table width="100%" border="0" rules="none" frame="void"
 
<table width="100%" border="0" rules="none" frame="void"
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-2011, Parallels, Inc. Licensed under GNU GPL.</p>
+
2000-2008, Parallels, Inc. Licensed under GNU GPL.</p>

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)