HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration

# 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:
dependency_name hpvm_vgsharedA
dependency_condition hpvm_vgsharedA = up
dependency_location same_node
c. Check the configuration of the package:
# cmcheckconf -P /etc/cmcluster/slvmtest/slvmtest2.conf
Attempting to validate slvmtest.
...
cmcheckconf: Verification completed with no errors found.
d. Save the original configuration file and use the modified configuration in its place to
apply the package configuration to the cluster:
# cp slvmtest.conf slvmtest.conf.orig
# mv slvmtest2.conf slvmtest.conf
# cmapplyconf -P /etc/cmcluster/slvmtest/slvmtest.conf
Attempting to validate slvmtest.
11.5 Migrating VMs That are Using Logical Volume Backing Stores 205