HP Serviceguard Toolkit for Integrity Virtual Servers manual Managing packages, Running packages

Page 17

NOTE:

This script does not include information about attached I/O devices, such as tape, DVD, burner, and changer devices into the package configuration file.

Run the cmdeployvpkg command on the node where VM is running.

Managing packages

Running packages

To start the VM/vPar guest package use the following command:

# cmrunpkg <package_name>

NOTE: After you run the package, to enable the package failover on the configured nodes, run the following command:

$ cmmodpkg -e -n <node_1>...-n <node_n> <package_name>

If a package is not running, the cmmodpkg -e <package_name> command starts the package on an appropriate node and enables the package to failover.

Maintaining packages

When you set a package to the maintenance mode, the toolkit stops monitoring the status of the VM or vPar. It enables you to perform the maintenance work on a VM or vPar guest without bringing down the package.

Maintenance mode is enabled only on the local node. Each time the maintenance mode is enabled or disabled for the VM or vPar guest package, the event is logged in the package log file. If the Serviceguard node on which the VM or vPar guest is running, fails when the maintenance mode is enabled, the VM or vPar guest package fails over to a secondary node. Whether the changes made to the VM, vPar guest, or package configuration are distributed to the secondary node or not before the failover, depends on the stage of the process where the failure occurred. After recovery, ensure that the VM or vPar guest package is not in maintenance mode and the configuration is consistent for all nodes.

Perform the following steps to work with the package maintenance mode:

1.To enable the maintenance mode feature in the package configuration file, set the MAINTENANCE_FLAG attribute to yes, and then apply the cmapplyconf command.

2.To start the maintenance mode for the package, run the command:

#cmdeployvpkg -m 1 -P <vm or vpar name>

3.To stop the maintenance mode and bring back the package in the running state, run the command:

#cmdeployvpkg -m 0 -P <vm or vpar name>

NOTE:

If the changes are made either to VM or vPar guest configuration environment or the Serviceguard environment, HP recommends that you remove the VM or vPar on alternate nodes and use the cmdeployvpkg command to package it again, and then use the cmapplyconf command to reapply it.

If the maintenance mode is not disabled, the VM or vPar guest package does not failover to the other host when VM or vPar fails. HP recommends that you disable the maintenance mode each time after the maintenance of the VM or vPar guest is complete.

Managing packages 17

Image 17
Contents Abstract Page Contents Overview HP Serviceguard Toolkit for Integrity Virtual ServersAdvantages DependenciesHP Integrity VM Serviceguard toolkit HP Serviceguard Toolkit for Integrity Virtual Servers VM/vPar as Serviceguard packages Supported configurationFor 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 Vswitchmgr Vparreset IvshpvmutilsK004vswitchmgr S802vswitchmgrCreating packages Using SG IVS toolkitPreconfiguration Change the vgnamecmd to vgchange -a s Check the configuration of the package Hpvmvolumegroup /dev/vgsharedACmmakepkg -m tkit/vtn/vpar -n vparname pkg.conf Using Serviceguard commandsCd /etc/cmcluster/vm/vParname Cmdeployvpkg command Using SG IVS Toolkit commandsServicename Cmapplyconf -P pkg.confRunning packages Managing packagesMaintaining 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 Key generation on the VM or vPar guest HP-UX /opt/hp/cmappserverRpm -i cmappserverslesia64.rpm for Sles CmappserverAdd /opt/hp/cmappserver to the path #cmdeployvpkg -P vm1 -x merge -x appmon Cmappservertimeoutcmappserver connection timeout secondsHpux # cmdeployvpkg -P slvm1 -x merge -x appmonConfiguring guest application monitoring service Loglevel Lanmon Usr/sbin/cmappmgr -node remo1 -cmappservertimeoutHostlogfile full Pathof fileonhostAdm/vm1npivdiskmon.log Help VersionUpgrading cmappmgr/cmappserver combination Configuring guest application monitoring service For example # cmmovevpkg -v -P slvm1 -h xyzo2 Online VM guest package migrationOnline VM guest package migration Service monitor detected a failure in guest vmname TroubleshootingRun cmdeployvpkg command with -m 0 option 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 DMP GlossaryIndex