HP Integrity Virtual Machines 4.3: Installation, Configuration, Administration
10.5.2 Creating and Configuring VMs as Serviceguard Packages Having SLVM
Backing Storage
Deploying virtual machines as Serviceguard packages is a common occurrence. Multiple virtual
machines can have virtual disks mapped to logical volumes in a single SLVM volume group. In
the event that one of those virtual machines is moved to another node (VM Host) in the
Serviceguard cluster, the other virtual machines need to have continued access to logical volumes
in that volume group. To facilitate this behavior, configure Serviceguard multi-node packages
for the SLVM volume groups by following these steps:
1. Create a Serviceguard multi-node package configuration file for each SLVM volume group:
# mkdir /etc/cmcluster/hpvm_vgsharedA
# cd /etc/cmcluster/hpvm_vgsharedA
# ls
# cmmakepkg -m sg/multi_node -m sg/volume_group > hpvm_vgsharedA.conf
Package template is created.
This file must be edited before it can be used.
#
2. Edit the configuration file, making the following modifications:
a. Provide the package with a name (for example, hpvm_vgshareA).
b. Change the vgname_cmd to vgchange -a s.
c. Add the vg name for the SLVM volume group. For example, if vgsharedA is the SLVM
volume group being used by the virtual machines on this VM Host, add the following
line:
vg vgsharedA
d. If only some nodes in the cluster have the SLVM volume groups, then identify teach of
those nodes with the node_name attribute. If all nodes can run the SLVMs, then leave
the attribute's value as asterisk (*).
e. Verify the configuration and, if it is valid, apply the package configuration to the cluster:
# cmcheckconf -P /etc/cmcluster/hpvm_vgsharedA/hpvm_vgsharedA.conf
Attempting to validate hpvm_vgsharedA.
...
cmcheckconf: Verification completed with no errors found.
Use the cmapplyconf command to apply the configuration.
# cmapplyconf -P /etc/cmcluster/hpvm_vgsharedA/hpvm_vgsharedA.conf
Attempting to validate hpvm_vgsharedA.
...
Modify the package configuration ([y]/n)? y
Completed the cluster update
#
3. Create the package for the VM using /opt/cmcluster/toolkits/hpvm/hpvmsg_pkg
and, for this example, assume that the configuration is in
/etc/cmcluster/slvmtest/slvmtest.conf. Associate this package with the multi-node package
created with a SLVM volume group as follows:
a. Modify the package to specify its independence on the multi-node package for the
SLVM volume group (created for the SLVM volume group that the virtual machine
uses for storage):
# cd /etc/cmcluster/slvmtest/
# cmmakepkg -i ./slvmtest.conf -m sg/dependency > slvmtest2.conf
#
b. Modify the dependency characteristics for the VMs package configuration, so that it is
dependent on the SLVM VG package being available:
220 Using HP Serviceguard with Integrity VM