HP Serviceguard Toolkit for Integrity Virtual Servers # cmdeployvpkg -P slvm1 -x merge -x appmon

Page 27

NOTE: With the HP Serviceguard A.11.20 release, application monitoring is now supported for VM or vPar guests that use online VM or vPar guest migration. It is not supported with the HP Serviceguard A.11.19. To support online VM or vPar guest migration, all service command strings sent to the VM or vPar guest must be unique. This means, if two instances of the same application are started and monitored in the VM or vPar guest using cmappmgr, the service strings must be different, even if a space needs to be added to one of them.

6.Test application monitoring and VM or vPar guest failover operation.

After VM or vPar guest application monitoring is configured, you must test application restart and VM or vPar guest failover by terminating the monitored application on the VM or vPar guest and verifying:

The SERVICE_RESTART counter for the cmappmgr SERVICE_CMD used to monitor the application increases.

The VM or vPar guest fails over to a standby VM or vPar Host node after the SERVICE_RESTART value exceeds.

Example of Configuring application monitoring service

# cmdeployvpkg -P slvm1 -x merge -x appmon

This is the HP Serviceguard Toolkit for Integrity Virtual Servers package creation script.

This script assists you to create and manage HP Serviceguard package configurations for VM guest and associated toolkit configuration files.

HP recommends that you review and modify the configuration file created by this script, as needed, for your particular environment.

Do you wish to continue? (y/n):y

[Virtual Machine Details]

 

 

 

Virtual Machine Name VM #

 

OS Type State

==================== =====

======= ========

slvm1

8

HPUX

On (OS)

[Storage Interface

Details]

 

 

 

Guest

 

 

 

 

Physical

 

Device

Adaptor

Bus

Dev Ftn Tgt Lun Storage

Device

=======

==========

===

=== === === === =========

=========================

disk

scsi

0

2

0

2 0 disk

/dev/rdisk/disk109

[Network Interface Details]

 

 

 

 

 

Interface Adaptor

Name/Num

PortNum Bus Dev

Ftn Mac Address

========= ==========

==========

======= === ===

=== =================

vswitch

lan

localnet

2

0

0

0

0a-49-5b-35-75-27

vswitch

lan

myswitch

1

0

1

0

f2-54-d5-3b-fd-c7

Modify the packaged Virtual Machine Summarized above? (y/n):y

Checking the virtual machine and cluster configuration

Configure an application monitor service? (y/n):y

Enter the name for this application monitor name [appmon0]:ping_mon

You have entered: ping_mon

Hit return to confirm your entry:

Enter the command line of the run command on the guest[]:/apps/ping_mon

You have entered: /apps/ping_mon

Hit return to confirm this entry:

Enter the number of seconds to elapse before timeout. [10]:

You have entered: 10

Hit return to confirm this entry:

Enter the number of time the application monitor should restart [none]:

You have entered: none

Hit return to confirm this entry:

Enter the number of seconds to wait before terminating the application monitor [300]:

You have entered: 300

27

Image 27
Contents Abstract Page Contents Dependencies HP Serviceguard Toolkit for Integrity Virtual ServersOverview AdvantagesHP Integrity VM Serviceguard toolkit HP Serviceguard Toolkit for Integrity Virtual Servers VM/vPar as Serviceguard packages Supported configurationNetwork components Storage considerationsFor example, # cmdeployvpkg -m 1 -P vm1 Storage considerations # swinstall -s depot path # swlist -l product SG-IVS-Toolkit#swremove SG-IVS-Toolkit S802vswitchmgr Vparreset IvshpvmutilsVswitchmgr K004vswitchmgrUsing SG IVS toolkit PreconfigurationCreating packages Change the vgnamecmd to vgchange -a s Check the configuration of the package Hpvmvolumegroup /dev/vgsharedAUsing Serviceguard commands Cd /etc/cmcluster/vm/vParnameCmmakepkg -m tkit/vtn/vpar -n vparname pkg.conf Cmapplyconf -P pkg.conf Using SG IVS Toolkit commandsCmdeployvpkg command Servicename#cmdeployvpkg -m 1 -P vm or vpar name Managing packagesRunning packages Maintaining packagesHalting packages Deleting packagesConverting 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 Pathof fileonhost Lanmon Usr/sbin/cmappmgr -node remo1 -cmappservertimeoutLoglevel Hostlogfile fullAdm/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 Etc/cmcluster/scripts Mscripts Mastercontrolscript.sh TroubleshootingService monitor detected a failure in guest vmname Run cmdeployvpkg command with -m 0 optionCmcluster/scripts/tkit/vtn/ tkitmodule.sh Limitations How to contact HP Support and other resourcesInformation to collect before contacting HP HP authorized resellers Documentation feedbackRelated information Typographic conventions TIP Page Page DMP GlossaryIndex