Previous page

Next page

Locate page in Contents

Print this page

Splitting Server Into Equal Pieces

It is possible to create a Container configuration roughly representing a given fraction of the Hardware Node. If you want to create such a configuration that up to 20 fully loaded Containers would be able to be simultaneously running on the given Hardware Node, you can do it as follows:

# cd /etc/vz/conf

# vzsplit -n 20 -f mytest

Config /etc/vz/conf/ve-mytest.conf-sample was created

Notice that the configuration produced depends on the given Hardware Node resources. Therefore, it is important to validate the resulted configuration file before trying to use it, which is done with the help of the vzcfgvalidate utility. For example:

# vzcfgvalidate ve-mytest.conf-sample

Validation completed: success

The command output shows that the configuration file is valid and you can safely use as the basis for creating new Containers.

Note: If you generate a Container configuration sample using the vzsplit command line utility, the resulting Container sample is put to the /etc/vz/conf directory. This sample can then be used by prlctl create when creating a new Container on its basis.