HP Serviceguard Toolkit for Integrity Virtual Servers manual

Page 22

on the VM or vPar guest. The number of times HP Serviceguard attempts to restart cmappmgr and the VM or vPar guest application is defined by the service_restart value, set for the cmappmgr service in the guest package. If the number of restart attempts exceeds the service_restart value, HP Serviceguard fails over the VM or vPar guest package to its configured VM or vPar Host failover node, as shown in Figure 4 (page 22).

Figure 4 Failover of a VM or vPar guest due to an application failure

To configure the VM or vPar guest application monitoring service:

1.Create and distribute client or server security keys.

2.Configure the cmappmgr.conf file on VM or vPar Hosts.

3.Install cmappserver depots on VM or vPar guests.

4.Configure the cmappserver.conf file on VM or vPar guests.

5.To start or monitor specific applications in the VM or vPar guests, modify the VM or vPar guest package.

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

When you install HP Serviceguard A.11.20, or later on the VM or vPar Host cluster nodes, it installs the cmappmgr or cmappserver software and creates the following files and directories:

/etc/cmappmgr.conf(security configuration file)

/usr/sbin/cmappmgr (cmappmgr daemon)

/opt/hp/serviceguard/cmappserver (contains the cmappserver software depots for HPUX, Linux, and Windows guests)

To configure application monitoring:

1.Create and distribute client or server security keys.

The cmappmgr and cmappserver daemons communicate through a secure SSL connection using JSSE and JRE. The system administrator must generate SSL security keys and distribute them to the cluster VM or vPar Hosts and VM or vPar guests. The security keys are used for authentication during the initial cmappmgr or cmappserver connection. A keytool program shipped with JRE is used for key management.

SSL setup overview

A public and private key pair must be generated for client-server communications. For VM or vPar guest application monitoring, cmappserver on the VM or vPar guest functions as the server, and cmappmgr on the VM or vPar Host functions, as the client. The signed public certificates are generated using the Java keytool program. The signed public certificates must be initially distributed to the VM or vPar Hosts and VM or vPar guests, to setup the secure

22 Configuring guest application monitoring service

Image 22
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 packagesStorage considerations Network componentsFor example, # cmdeployvpkg -m 1 -P vm1 Storage considerations # swlist -l product SG-IVS-Toolkit # swinstall -s depot path#swremove SG-IVS-Toolkit K004vswitchmgr Vparreset IvshpvmutilsVswitchmgr S802vswitchmgrPreconfiguration Using SG IVS toolkitCreating packages Change the vgnamecmd to vgchange -a s Hpvmvolumegroup /dev/vgsharedA Check the configuration of the packageCd /etc/cmcluster/vm/vParname Using Serviceguard commandsCmmakepkg -m tkit/vtn/vpar -n vparname pkg.conf Servicename Using SG IVS Toolkit commandsCmdeployvpkg command Cmapplyconf -P pkg.confMaintaining packages Managing packagesRunning packages #cmdeployvpkg -m 1 -P vm or vpar nameDeleting packages Halting 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 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 Support and other resources How to contact HPInformation to collect before contacting HP Documentation feedback HP authorized resellersRelated information Typographic conventions TIP Page Page Glossary DMPIndex