
Reference 114
vzsplit
This utility is used to generate a sample VPS configuration file with a set of system resource
control parameters. The syntax of this command is as follows:
vzsplit [-n
num
] [-f
sample_name
] [-s
swap_size
]
This utility is used for dividing Hardware Node into equal parts. It generates a full set of Virtual
Private Servers system resource control parameters based on the total physical memory of the
Hardware Node it runs on and the number of Virtual Private Servers the Hardware Node shall
be able to run even if the given number of Virtual Private Servers consume all allowed
resources.
Without any option the utility prompts for the desired number of Virtual Private Servers and
outputs the resulting resource control parameters to the screen.
The utility accepts the following options:
-n
num
Desired number of Virtual Private Servers to be simultaneously run on the
Hardware Node.
-f
sample_name
Name of the sample configuration to create.
-s
swap_size
Size of the swap file on the Node. It is recommended to specify the swap
size to be taken into account when the utility generates sample
configurations.
The resulting sample configuration will be created in the
/etc/sysconfig/vz-scripts
directory. The file name will be
ve-
sample_name
.conf-sample
. Now you can use
sample_name
as an argument to the
–-config
option of the
vzctl create
command. If
a sample with this name already exists, the utility will output an error message and will not
overwrite the existing configuration.
vzcfgvalidate
This utility is used to check resource management parameters consistency in the Virtual Private
Server configuration file. It has the following syntax:
vzcfgvalidate
vps_config_file
The utility has a number of constraints according to which it tests the configuration file. If a
constraint is not satisfied utility prints a message with its severity status. Three severity statuses
are thus defined in OpenVZ:
Recommendation
This is a suggestion, which is not critical for Virtual Private Server or Hardware
Node operations. The configuration is valid in general; however, if the system
has enough memory, it is better to increase the settings as advised.
Warning
A constraint is not satisfied and the configuration is invalid. Applications in a
Virtual Private Server with such invalid configuration may have suboptimal
performance or fail in a not graceful way.
Error
An important constraint is not satisfied and the configuration is invalid.
Applications in a Virtual Private Server with such invalid configuration have
increased chances to fail unexpectedly, to be terminated or to hang.
It is suggested to use this utility when applications in a Virtual Private Servers behave in
unexpected way and there seem to be no resource shortage for the Virtual Private Server.