Previous page

Next page

Locate page in Contents

Print this page

vzcfgscale

This utility is used to “scale” Container configuration. It multiplies Container resource control parameters by the number passed as an argument. The syntax of this utility is as follows:

vzcfgscale [ options ] < CT_config_file >

Container configuration file shall be always the last parameter and the utility uses it to produce scaled Container configuration. The utility accepts the following options:

-o < file >

Output scaled configuration into the < file > . By default, utility prints its output to screen. Note that the file specified cannot be the same as < CT_config_file > , otherwise you will loose the configuration file content.

-a < factor >

Multiply all Container parameters by a < factor > .

-c < factor >

Multiply CPU parameters by a < factor > .

-d < factor >

Multiply disk related parameters by a < factor > .

-u < factor >

Multiply system resource control parameters by a < factor > .

-n < factor >

Multiply bandwidth parameters by a < factor > .

-r

Do not output Container-specific parameters like VE_ROOT , VE_PRIVATE , and so on. This option is useful for producing configuration samples to be used as an argument for the -–config option of the pctl create command.

At least one multiplying argument is required. It is possible to specify more than one multiplying argument to use different factors for different group of parameters. If both –a and a specific group option is used, then the specific option factor takes precedence of the value specified by the –a option.