Download User`s Guide - Canadian Web Hosting

Transcript
Operations on Virtual Private Servers
54
Zero-Downtime Migration
Starting with Virtuozzo 3.0, the vzmigrate utility allows you to migrate your Virtual Private
Servers from one Hardware Node to another with zero downtime. The zero downtime migration
technology has the following advantages as compared with the standard one:
ƒ
The process of migrating a VPS to another Node is transparent for you and the VPS
applications and network connections, i.e., on the Source and Destination Nodes, no
modifications of system characteristics and operational procedures inside the VPS are
performed.
ƒ
The VPS migration time is greatly reduced (in fact, the migration is almost invisible for the
VPS user) and can be compared with the delay caused by a short interruption in the network
connectivity.
ƒ
The Virtual Private Server is restored on the Destination Node in the same state as it was at
the beginning of the migration.
ƒ
You can move the Virtual Private Servers running a number of applications which you do
not want to be rebooted during the migration for some reason or another.
Notes: 1. Zero-downtime migration cannot be performed on Virtual Private Servers with bind
mounts inside them.
2. Zero-downtime migration can be performed only on Virtual Private Servers running the
Linux distributions with the 2.6 kernel.
Before performing zero-downtime migration, it is recommended to synchronize the system time
on the Source and Destination Nodes, e.g. by means of NTP (http://www.ntp.org). The reason
for this recommendation is that some processes running in the VPS might rely on the system
time being monotonic and thus might behave unpredictably if they see an abrupt step forward or
backward in the time once they find themselves on the new Node with different system clock
parameters.
To migrate a VPS by using the zero downtime migration technology, you should pass the -online option to the vzmigrate utility. For example, you can move VPS 101 from the
current Hardware Node to the Destination Node named my_node.com by executing the
following command:
# vzmigrate --online my_node.com 101
Enter password:
Connection to destination HN (192.168.1.57) \
is successfully established
Moving/copying VPS#101 -> VPS#101, [], [] ...
Syncing private area '/vz/private/101'
- 100% |***************************************
done
Suspending VPS#101 ...
done
Dumping VPS#101 ...
done
...
Migration completed
You can specify more than one VPS ID simultaneously; in this case, all specified Virtual Private
Servers will be moved to a new Hardware Node one by one.