Previous page

Next page

Locate page in Contents

Print this page

vzsplit

This utility is used to generate a sample Container 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 the server into equal parts. It generates a full set of Containers system resource control parameters based on the total physical memory of the server it runs on and the number of Containers the server shall be able to run even if the given number of Containers consume all allowed resources.

Without any option the utility prompts for the desired number of Containers and outputs the resulting resource control parameters to the screen.

The utility accepts the following options:

-n num

Desired number of Containers to be simultaneously run on the server.

-f sample_name

Name of the sample configuration to create.

-s swap_size

Size of the swap file on the server. 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/vz/conf directory. The file name will be ve-< sample_name >.conf-sample . Now you can pass < sample_name > as an argument to the –-config option of the pctl create command. If a sample with this name already exists, the utility will output an error message and will not overwrite the existing configuration.

Note: If you create a Container configuration sample by splitting Parallels Server Bare Metal resources via Parallels Server Bare Metal tools (e.g. Parallels Management Console) rather than using vzsplit , this sample is put to the /var/vzagent/etc/samples directory after its creation. This sample can then be used for creating new Containers by Parallels Server Bare Metal tools only.