Previous page

Next page

Locate page in Contents

Print this page

vzhwcalc

vzhwcalc is used to scan information on the resources consumption on a server (this can be a physical server or a server) and create a special file on its basis. When launched without any options, it makes a snapshot of the resources consumption and writes down this information to a special file - a server configuration file. The collected information can then be used to create a Container on its basis where the physical server will be migrated. You may also use vzhwcalc to collect data on your server resources in one place and be aware of their current consumption.

Syntax

vzhwcalc [ options ]

Options

Name

Description

-o, --out

The name of the configuration file that will be created by the utility and contain information on the server main resources.

-t, --scan-time

The time during which the utility is to be run on the server. The time should be given in the dhms format (e.g., 1d2h30m40s ).

-p, --scan-period

The interval with which the server will be scanned by the utility.

--mem-scale

The enlargement factor by which the calculated memory on the server will be increased in the configuration file.

--disk-scale

The enlargement factor by which the calculated disk space on the server will be increased in the configuration file.

-d, --dist-detect

The path to the file on the server where the distdetect-common.sh script is located. You can specify several scripts and separate them by commas.

-h, --help

Print usage information.

-v, --version

Print the version of the utility.

The configuration file created by the vzhwcalc utility is placed to the same directory on the server from where you have run this utility and has the default name of ve.conf (i.e. in case the -o option was omitted during the utility execution).