User`s guide

Managing Resources 98
Checking Quota Status
As the server administrator, you can check the quota status for any Container with the
vzquota stat and vzquota show commands. The first command reports the status from
the kernel and shall be used for running Containers. The second command reports the status
from the quota file (located at /var/vzquota/quota.<CT_ID>) and shall be used for
stopped Containers. Both commands have the same output format.
The session below shows a partial output of Container 101 quota statistics:
# vzquota stat 101 –t
resource usage softlimit hardlimit grace
1k-blocks 38281 1000000 1100000
inodes 45703 90000 91000
User/group quota: on,active
Ugids: loaded 34, total 34, limit 100
Ugid limit was exceeded: no
User/group grace times and quotafile flags:
type block_exp_time inode_exp_time dqi_flags
user 0h
group 0h
User/group objects:
ID type resource usage softlimit hardlimit grace status
0 user 1k-blocks 38220 50000 60000 loaded
0 user inodes 45453 70000 70000 loaded
[the rest is skipped]
The first three lines of the output show the status of first-level disk quotas for the Container. The
rest of the output displays statistics for user/group quotas and has separate lines for each user
and group ID existing in the system.
If you do not need the second-level quota statistics, you can omit the –t switch from the
vzquota command line.
Configuring Container Disk I/O Priority Level
Parallels Server Bare Metal provides you with the capability of configuring the Container disk
I/O (input/output) priority level. The higher the Container I/O priority level, the more time the
Container will get for its disk I/O activities as compared to the other Containers on the server.
By default, any Container on the server has the I/O priority level set to 4. However, you can
change the current Container I/O priority level in the range from 0 to 7 using the --ioprio
option of the pctl set command. For example, you can issue the following command to set
the I/O priority of Container 101 to 6:
# pctl set 101 --ioprio 6 --save
Saved parameters for Container 101
To check the I/O priority level currently applied to Container 101, you can execute the
following command:
# grep IOPRIO /etc/vz/conf/101.conf
IOPRIO="6"
The command output shows that the current I/O priority level is set to 6.