HP Serviceguard Toolkit for Integrity Virtual Servers manual Hpvmvolumegroup /dev/vgsharedA

Page 14

Completed the cluster update

#

NOTE: Create the VM or vPar by using the SLVM devices, for example /dev/vgsharedA/ rlvdisk0.

3.Create a VM or vPar on the SLVM volume group.

4.Add SLVM volume group as mentioned below in the cluster configuration file:

HPVM_VOLUME_GROUP /dev/vgsharedA

NOTE: To add the SLVM volume group, you must halt the cluster and packages if they are already running.

5.Create the package for the VM or vPar using the cmdeployvpkg command.

In this example, consider that the package configuration is already created and present 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 dependency on the multi-node package for the SLVM volume group (created for the SLVM volume group that the VM or vPar 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 available SLVM VG package:

dependency_name dependency_condition dependency_location

hpvm_vgsharedA hpvm_vgsharedA = up 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.

...

Modify the package configuration ([y]/n)? y Completed the cluster update

6.Run the package associated with the SLVM and virtual machine independent order:

#cmrunpkg hpvm_vgsharedA

Running package hpvm_sharedA on node ghost1 Successfully started package hpvm_sharedA on node ghost1 Running package hpvm_sharedA on node ghost2 Successfully started package hpvm_sharedA on node ghost2 cmrunpkg: All specified packages are running

#cmrunpkg slvmtest

Running package slvmtest on node ghost1 Successfully started package slvmtest on node ghost1 cmrunpkg: All specified packages are running

14 Using SG IVS toolkit

Image 14
Contents Abstract Page Contents Advantages HP Serviceguard Toolkit for Integrity Virtual ServersOverview DependenciesHP Integrity VM Serviceguard toolkit HP Serviceguard Toolkit for Integrity Virtual Servers Supported configuration VM/vPar as Serviceguard packagesFor example, # cmdeployvpkg -m 1 -P vm1 Network componentsStorage considerations Storage considerations #swremove SG-IVS-Toolkit # swinstall -s depot path# swlist -l product SG-IVS-Toolkit K004vswitchmgr Vparreset IvshpvmutilsVswitchmgr S802vswitchmgrCreating packages Using SG IVS toolkitPreconfiguration Change the vgnamecmd to vgchange -a s Hpvmvolumegroup /dev/vgsharedA Check the configuration of the packageCmmakepkg -m tkit/vtn/vpar -n vparname pkg.conf Using Serviceguard commandsCd /etc/cmcluster/vm/vParname Servicename Using SG IVS Toolkit commandsCmdeployvpkg command Cmapplyconf -P pkg.confMaintaining packages Managing packagesRunning packages #cmdeployvpkg -m 1 -P vm or vpar nameConverting packages Halting packagesDeleting packages Run cmdeployvpkg -C -P vmname Configuring guest application monitoring service Failure of a monitored VM or vPar guest application Configuring guest application monitoring service HP-UX /opt/hp/cmappserver Key generation on the VM or vPar guestCmappserver Rpm -i cmappserverslesia64.rpm for SlesAdd /opt/hp/cmappserver to the path Cmappservertimeoutcmappserver connection timeout seconds #cmdeployvpkg -P vm1 -x merge -x appmon# cmdeployvpkg -P slvm1 -x merge -x appmon HpuxConfiguring guest application monitoring service Hostlogfile full Lanmon Usr/sbin/cmappmgr -node remo1 -cmappservertimeoutLoglevel Pathof fileonhostHelp Version Adm/vm1npivdiskmon.logUpgrading cmappmgr/cmappserver combination Configuring guest application monitoring service Online VM guest package migration For example # cmmovevpkg -v -P slvm1 -h xyzo2Online VM guest package migration Run cmdeployvpkg command with -m 0 option TroubleshootingService monitor detected a failure in guest vmname Etc/cmcluster/scripts Mscripts Mastercontrolscript.shCmcluster/scripts/tkit/vtn/ tkitmodule.sh Limitations Information to collect before contacting HP How to contact HPSupport and other resources Related information Typographic conventions HP authorized resellersDocumentation feedback TIP Page Page Glossary DMPIndex