Migrating Virtual Servers to Virtuozzo 7 Node
To migrate virtual servers, do the following:
-
Prepare the target node with Virtuozzo 7 installed, register it in CloudBlue Commerce, and discover all needed OS and application templates on the node.
Important: You must ensure that all the required OS and application templates are installed on the target node. The missing templates should be migrated by means of Virtuozzo tools and then discovered and registered in Cloud Infrastructure Automation.
The OS templates on Virtuozzo 6 and 7 are different and have different suffixes in the IM for differentiation, for example,
centos-7-x86_64-pcs6
andcentos-7-x86_64-vz7
. During the migration Cloud Infrastructure Automation links the corresponding OS template on Virtuozzo 7 node to the virtual server. -
Check that for each virtual server on the source node there are the corresponding OS templates (the same name, architecture and so on) and application templates on the target node. You can do it by means of
vz7-migration-precheck.py
script which is located in/usr/local/pem/vps/
on the management node.Run
vz7-migration-precheck.py
script and make sure there are no issues (if there are missing templates or other issues, the utility will show the corresponding warnings):# python vz7-migration-precheck.py --source-node=<NAME> --target-node=<NAME>
where
source-node
– Virtuozzo 6 node,target-node
– Virtuozzo 7 node,<NAME> – IP address or hostname of the node.
The script do the following:
- Checks OS templates on Virtuozzo 7 by names (they should be the same as registered on Virtuozzo 6, for example ubuntu-14.04-x86_64). To check the names of pre-defined CT templates, use
vzpkg list -O
command. - Checks application templates on Virtuozzo 7 by names and related OS template. For example, mysql for CentOS7.
- Checks OS templates on Virtuozzo 7 by names (they should be the same as registered on Virtuozzo 6, for example ubuntu-14.04-x86_64). To check the names of pre-defined CT templates, use
- Migrate virtual servers according to Virtuozzo Upgrade Guide by means of
prlctl migrate
command. - Make backup according to Virtuozzo User's Guide.
- When the migrated virtual servers will be started on Virtuozzo 7 node, Cloud Infrastructure Automation will receive a notification from Cloud Infrastructure Automation agent on Virtuozzo 7 node, and the information that a virtual server is now hosted on Virtuozzo 7 node will be registered in Cloud Infrastructure Automation database.
- Now in Operations control panel, go to Cloud Infrastructure > Virtualization Nodes. Check the list of virtual servers on the source (Virtuozzo 6) and target (Virtuozzo 7) nodes to ensure that all virtual servers are registered successfully.
- Go to Services > Cloud Infrastructure > Cloud Infrastructure Log and make sure that there are no errors during synchronization.
Current limitations after migration:
ve.conf
of the backup – DISKSPACE="10485760:10485760".- If you have a cluster with both Virtuozzo 6 and 7 included in it, then remember to use
prlctl migrate
command with the option--dst /pcs
while migrating virtual servers from Virtuozzo 6 to Virtuozzo 7. Otherwise, the migrated virtual server's storage type will be switched to local.