HP Serviceguard Toolkit for Integrity Virtual Servers manual

Page 20

5 Configuring guest application monitoring service

HP Serviceguard VM or vPar guest application monitoring service is a program or an agent configured within a VM or vPar guest that checks the status of applications configured within the same VM or vPar guest. HP supports the monitoring and control of applications within a VM or vPar guest configured as an HP Serviceguard package. This functionality is available for an application that runs on an HP-UX, Linux or Windows guest using the JRE (Java Runtime Environment) and provides the following benefits:

Checks the status of applications within VM or vPar guests from the VM or vPar Host under the control of Serviceguard.

Provides startup and failure detection capabilities (restart, guest failover) for monitored VM or vPar guest applications using the HP Serviceguard functionality.

Provides a supported application monitoring framework which does not depend on a custom-written software.

The method used to monitor applications depends on the application being monitored. It varies from verifying an existing process ID to checking application performance. In addition, the application monitoring service performs a recovery action during failure of an application. Based on the type of failure detected, recovery actions can vary, it might attempt to restart the application for a specified number of times or halt the VM or vPar guest. This action might trigger HP Serviceguard to failover the VM or vPar guest package to another adoptive VM or vPar Host cluster member.

Serviceguard VM or vPar Guest Application Monitoring architecture

Figure 2 Serviceguard VM or vPar Guest Application Monitoring architecture

In Figure 2 (page 20) the VM or vPar guest package is the Serviceguard package containing the cmappmgr services and the guest service.

The key components of the HP Serviceguard guest application monitoring are as follows:

Application Manager cmappmgr (1 per VM or vPar guest application): This application runs as services controlled by the VM or vPar guest package.

NOTE: Multiple cmappmgr services can be configured in one VM or vPar guest package; one for each VM or vPar guest application to be monitored.

Application Server cmappserver (1 per VM or vPar guest): This application runs as a process in the VM or vPar guest to monitor the applications assigned to an Application Manager.

20 Configuring guest application monitoring service

Image 20
Contents Abstract Page Contents HP Serviceguard Toolkit for Integrity Virtual Servers OverviewAdvantages 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 Vparreset Ivshpvmutils VswitchmgrK004vswitchmgr 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 Using SG IVS Toolkit commands Cmdeployvpkg commandServicename Cmapplyconf -P pkg.confManaging packages Running 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 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 Lanmon Usr/sbin/cmappmgr -node remo1 -cmappservertimeout LoglevelHostlogfile full 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 Troubleshooting Service monitor detected a failure in guest vmnameRun 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 Glossary DMPIndex