Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Migration from one HN to another

70 bytes added, 10:59, 11 March 2008
m
Robot: Automated text replacement (-VE +container)
Now that the vzmigrate script will function, a little bit on vzmigrate.
<pre>This program is used for VE container migration to another node
Usage:
vzmigrate [-r yes|no] [--ssh=<options>] [--keep-dst] [--online] [-v]
Options:
-r, --remove-area yes|no
Whether to remove VE container on source HN for successfully migrated VEcontainer.
--ssh=<ssh options>
Additional options that will be passed to ssh while establishing
passed, DO NOT pass destination hostname.
--keep-dst
Do not clean synced destination VE container private area in case of some error. It makes sense to use this option on big VE container migration to avoid syncing VE container private area again in case some error (on VE container stop for example) occurs during first migration attempt.
--online
Perform online (zero-downtime) migration: during the migration the
VE container hangs for a while and after the migration it continues working
as though nothing has happened.
-v
its progress (including some time statistics).</pre>
Here is an example of migrating VE container 101 from the current HN to one at 10.1.5.6:
<pre>[root@OpenVZ .ssh]# vzmigrate 10.1.5.6 101
OPT:10.1.5.6
Starting migration of VE container 101 on 10.1.5.6
Preparing remote node
Initializing remote quota
2,253
edits