[PDF] Parallels Server 5 Bare Metal
[PDF] Parallels Server 5 Bare Metal
[PDF] Parallels Server 5 Bare Metal
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Setting Up Per-Container Disk Quota Parameters<br />
Managing Resources<br />
Three parameters determine how much disk space and inodes a Container can use. These<br />
parameters are specified in the Container configuration file:<br />
DISKSPACE The total size of disk space that can be consumed by the Container, in 1-Kb blocks.<br />
When the space used by the Container hits the soft limit, the Container can allocate<br />
additional disk space up to the hard limit during the grace period specified by the<br />
QUOTATIME parameter.<br />
DISKINODES The total number of disk inodes (files, directories, and symbolic links) the Container<br />
can allocate. When the number of inodes used by the Container hits the soft limit,<br />
the Container can create additional file entries up to the hard limit during the grace<br />
period specified by the QUOTATIME parameter.<br />
QUOTATIME The grace period of the disk quota, in seconds. The Container is allowed to<br />
temporarily exceed the soft limit values for the disk space and disk inodes quotas for<br />
no more than the period specified by this parameter.<br />
The first two parameters have both soft and hard limits (or, simply, barriers and limits). The hard<br />
limit is the limit that cannot be exceeded under any circumstances. The soft limit can be exceeded<br />
up to the hard limit, but as soon as the grace period expires, the additional disk space or inodes<br />
allocations will fail. Barriers and limits are separated by colons (“:”) in Container configuration files<br />
and in the command line.<br />
The following session sets the disk space available to Container 101 to approximately 1 GB and<br />
allows the Container to allocate up to 90,000 inodes. The grace period for the quotas is set to 10<br />
minutes:<br />
# pctl set 101 --diskspace 1000000:1100000 --save<br />
Saved parameters for Container 101<br />
# pctl set 101 --diskinodes 90000:91000 --save<br />
Saved parameters for Container 101<br />
# pctl set 101 --quotatime 600 --save<br />
Saved parameters for Container 101<br />
# pctl exec 101 df<br />
Filesystem 1k-blocks Used Available Use% Mounted on<br />
vzfs 1000000 747066 252934 75% /<br />
# pctl exec 101 stat -f /<br />
File: "/"<br />
ID: 0 0 Namelen: 255 Type: UNKNOWN (0x565a4653)<br />
Blocks: Total: 1000000 Free: 252934 Available: 252934 Size: 1024<br />
Inodes: Total: 90000 Free: 9594<br />
It is possible to change the first-level disk quota parameters for a running Container. The changes<br />
will take effect immediately. If you do not want your changes to persist till the next Container<br />
startup, do not use the –-save switch.<br />
119