HP Serviceguard Toolkit for Integrity Virtual Servers manual

Page 21

In this architecture, the Application Managers and the Application Servers communicate via SSL connections using the JSSE.

The Application Manager cmappmgr initiates and maintains a connection with the application server process cmappserver in the monitored VM or vPar guest using TCP or IP port 5315 for communications. Its primary function is to launch the specified command and monitor the execution of the same by:

Sending requests to cmappserver, to execute specified processes.

Sending periodic polling messages to cmappserver, to check the status of the monitored process.

cmappmgr also performs the following functions:

Writes the error messages to Serviceguard package log file and syslog.

Exits with a reason code from the terminating monitored process.

Exits when monitored process exits.

cmappmgr can be configured to run either as an HP Serviceguard monitored service or can be invoked by the customer-defined or external run scripts of the VM or vPar guest package on the VM or vPar Host cluster.

The application server cmappserver responds to requests from the application manager process cmappmgr, running on the VM or vPar Host. The requests are to execute a specified process on the VM or vPar guest, periodically check the status of the monitored process, and return an exit code when the process terminates. The cmappserver is a light weight daemon (approximately 36k) running on the monitored VM or vPar guest that provides connections for up to 30 simultaneous processes that can be monitored by cmappmgr.

In Figure 2 (page 20), app1 and app2 are two applications running within a VM or vPar guest that are monitored by HP Serviceguard running on a VM or vPar Host cluster. The cmappserver daemon process, running in the VM or vPar guest, provides communication connections with two cmappmgr processes. One communication connection is provided for each monitored application

-app1 and app2, running as HP Serviceguard services that are monitored by the VM or vPar guest package. The VM or vPar guest service, which is part of the SG IVS toolkit, monitors the overall VM or vPar guest.

Figure 3 Failure of a monitored VM or vPar guest application

If a monitored application in the VM or vPar guest fails, for example, app1 as shown in Figure 3 (page 21), this event and the exit code of the application is communicated to its corresponding cmappmgr process running on the VM Host. If the cmappmgr process for the monitored application exits, HP Serviceguard restarts cmappmgr. It also restarts the application

21

Image 21
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 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 Vswitchmgr Vparreset IvshpvmutilsK004vswitchmgr S802vswitchmgrUsing 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 Cmdeployvpkg command Using SG IVS Toolkit commandsServicename Cmapplyconf -P pkg.confRunning packages Managing packagesMaintaining packages #cmdeployvpkg -m 1 -P vm or vpar nameHalting 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 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 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