Implementing disaster recovery for HP Integrity Virtual Machines with Metrocluster and Continentalclusters on HP-UX 11i

Table Of Contents
25
Creating the Serviceguard package
On the VM host, use the following procedure to create a Serviceguard package configuration file and
control script (in case of legacy style package configuration) for the guest:
1. Create a Serviceguard package by running the hpvmsg_package script from the HP Serviceguard
for Integrity VM Toolkit, which is installed in the
/opt/cmcluster/toolkit/hpvm/ directory when
you install Integrity VM.
2. Use the following command to create a package:
# /opt/cmcluster/toolkit/hpvm/hpvmsg_package [-VQLs] [-m {0|1}] [-P] vm_name
where:
-P vm_name indicates the virtual machine name
-m specifies whether maintenance mode is enabled or disabled (1 = Enabled, 0 = Disabled)
-L creates a legacy package (default is modular)
-V indicates verbose
-Q quietly performs command, taking default actions without additional prompts
-s sanity checks the specific command, but does perform the requested action
The script asks you to confirm the following actions:
Creation of a failover package
Distribution of the package to all the cluster nodes
The
hpvmsg_package is a utility that you can use to configure a guest as a Serviceguard package.
The utility uses the guest name that you supply as an argument to create and populate the
/etc/cmcluster/guest-name/ directory with a set of template files that contain basic Serviceguard
parameter settings.
The
hpvmsg_package script creates the virtual machine package template files in the
/etc/cmcluster/guest-name/ directory. If the package is a modular package, it creates the
following template files:
guest-name.conf
hpvmsg_ext
hpvmsg_mon
HP recommends that you review and modify these template files to match your VM guest environment.
1. Verify that the package is set up correctly by entering the following command:
# cmcheckconf -v -P /etc/cmcluster/guest-name/guest-name.config
2. Update and redistribute the binary configuration files to the /etc/cmcluster/guest-name/ directory
on all cluster nodes:
# cmapplyconf -v -P /etc/cmcluster/guest-name/guest-name.config
The above steps should be completed for both the primary cluster and the recovery cluster.
For more detailed information, refer the HP Integrity Virtual Machines Installation, Configuration, and
Administration manual, available at
www.hp.com/go/hpux-hpvm-docs.
Creating a Continentalclusters package
A Continentalclusters package for a VM guest can be created using either legacy or modular style
package configuration. The following two sections describe the steps needed to configure a
Continentalclusters package for a VM guest in modular style and legacy style formats, respectively.