HP-UX vPars and Integrity VM V6.1.5 Administrator Guide (5900-2295, April 2013)

NOTE: A transient network error might cause the hpvmmigrate command's vswitch connectivity
check to report a failure. If the connectivity check fails, retry the migration by re-issuing the
hpvmmigrate command.
If the hpvmmigrate command's network connectivity check continues to fail, verify the vswitch
and network configuration, and test connectivity with the nwmgr command.
If the vswitch connectivity required by the guest on the target VSP is properly configured and
verified, you can use the hpvmmigrate -w option to bypass vswitch connectivity checks.
The Online VM Migration feature is supported with Serviceguard packaged guests. For more
details, see the HP Serviceguard Toolkit for Integrity Virtual Servers User Guide at HP Serviceguard
Toolkit for Integrity Virtual Servers.
12.2.5 Using the hpvminfo command in the guest
The hpvminfo command is part of the Integrity VM guest kit and should be installed on all of your
guests. With V6.1.5, if VirtualBase B.06.10.05 is installed on the guest, the guest kit does not
need to be installed. Use the hpvminfo -V option to display information about the guest and the
current VSP.
The following is a shell script using the hpvminfo -M option (for machine-readable output) that
you can run on any Unix guest to show when an online migration has occurred. The script gets
the guest name (G), and the current host (H1), and then begins an infinite loop testing and reporting
if the host on which it is running has changed. Terminate the shell script with a ^C.
G=$(hpvminfo -M | awk -F : '{print $12;}')
H1=$(hpvminfo -M | awk -F : '{print $7;}')
echo $(date) $G: Current host is $H1
while true
do
H2=$(hpvminfo -M | awk -F : '{print $7;}')
if [ "$H1" != "$H2" ]; then H1=$H2; echo $(date) $G: host is now $H2; fi
done
The following is a sample output from this script:
Tue Aug 26 10:52:39 PDT 2008 vm6: Current host is host2
Tue Aug 26 10:53:36 PDT 2008 vm6: host is now host1
Tue Aug 26 10:54:28 PDT 2008 vm6: host is now host2
Tue Aug 26 10:55:19 PDT 2008 vm6: host is now host1
12.3 VSP and virtual machine configuration considerations
This section discusses the configuration information you need for a successful migration and how
to chose which hosts and guests can participate in Online VM Migration. Effective migration of
online guests among VSPs depends on proper configuration of the networks and storage connected
to the VSP and used by the online guests. The hpvmmigrate command verifies that the source
and target hosts provide the guest with symmetric accessibility to network and storage resources.
If you set up the configuration properly on both hosts before you migrate the guest, the migration
task is much easier and faster.
To migrate guests among a group of VSP servers, the VSPs require common access to storage
devices, networks and virtual switch configurations. Pathnames to storage need not be identical,
however the same LUNs assigned to a guest must be presented to both the source and the target
VSPs. There must be equivalent access to guest storage and equivalent network reachability on
both the source and the target VSPs. The network on the target VSP must be able to make all the
same network connections that can be used by the guest on the source VSP.
A vswitch of the same name, connected to the same network must be available on the source and
target VSP servers. The hpvmmigrate command does connectivity checking before migration.
You can use the hpvmmigrate -w option to bypass the vswitch connectivity checks, but only use
12.3 VSP and virtual machine configuration considerations 209