Previous page

Next page

Locate page in Contents

Print this page

set_ugid_quota

Summary:

Linux Sets second-level disk quota.

Request specification:

Name

Min/Max

Type

Description

set_ugid_quota

1..1

 

 

{

 

 

 

eid

1..1

eid_type

Server ID.

ugid_quota

1..1

ugid_quota_info

Second-level quota information.

}

 

 

 

Returns:

OK/Error

Description:

Virtuozzo supports two levels of disk quotas that can be set for a Container: first-level quotas and second-level quotas.

First-level quotas enable system administrator to limit the amount of disk space and the number of inodes that an individual Container can use. First-level quotas are enabled in Virtuozzo by default but can be turned on or off for an individual Container through Container configuration.

Second-level quotas allow to limit the amount of disk space and the number of inodes that an individual user or a group in a Container is allowed to use. Second-level quotas are not turned on by default and must be set for each Container separately. To set second-level quotas for a Container, first-level quotas must be turned on for that Container.

Example:

Setting second-level quotas for the user "root" in the specified Container.

<packet version="4.0.0" id="2">

<target>vzaenvm</target>

<data>

<vzaenvm>

<set_ugid_quota>

<eid>6dbd99dc-f212-45de-a5f4-ddb78a2b5280</eid>

<ugid_quota>

<type>0</type>

<quota>

<id>0</id>

<diskspace>

<soft>1000000</soft>

<hard>1500000</hard>

</diskspace>

<diskinodes>

<soft>1000</soft>

<hard>15000</hard>

</diskinodes>

</quota>

</ugid_quota>

</set_ugid_quota>

</vzaenvm>

</data>

</packet>

Please send us your feedback on this help page