HP Serviceguard Toolkit for Integrity Virtual Servers manual

Page 41

A Sample package configuration file for HP Integrity VM guest package

This section provides with a sample package configuration file for HP Integrity VM guest package:

#**********************************************************************

#****** HIGH AVAILABILITY PACKAGE CONFIGURATION FILE (template) *******

#**********************************************************************

#******* Note: This file MUST be edited before it can be used. ********

#* For complete details about package parameters and how to set them, *

#* consult the Serviceguard manual.

#**********************************************************************

package_name

slvm1

package_description

"Serviceguard Package"

module_name

sg/basic

module_version

1

module_name

tkit/vtn/vtn

module_version

1

module_name

sg/priority

module_version

1

module_name

sg/failover

module_version

1

module_name

sg/external

module_version

1

module_name

sg/service

module_version

1

module_name

sg/monitor_subnet

module_version

1

package_type

failover

node_name node1

 

node_name node2

 

auto_run

yes

node_fail_fast_enabled

no

run_script_timeout

no_timeout

halt_script_timeout

no_timeout

successor_halt_timeout

no_timeout

script_log_file

$SGRUN/log/$SG_PACKAGE.log

operation_sequence

$SGCONF/scripts/tkit/vtn/tkit_module.sh

operation_sequence

$SGCONF/scripts/sg/external.sh

operation_sequence

$SGCONF/scripts/sg/service.sh

failover_policy

configured_node

failback_policy

manual

dependency_name dependency_condition dependency_location

hpvm_slvm hpvm_slvm = up same_node

#********************** VTN TOOLKIT PARAMETERS**********************

tkit/vtn/vtn/TKIT_DIR/etc/cmcluster/slvm1 tkit/vtn/vtn/MAINTENANCE_FLAG yes tkit/vtn/vtn/MONITOR_INTERVAL 30

priority

no_priority

#VM Service

 

service_name

slvm1

service_cmd

"$SGCONF/scripts/tkit/vtn/tkit_module.sh guest_monitor"

service_restart

none

service_fail_fast_enabled

no

service_halt_timeout

300

local_lan_failover_allowed

yes

monitored_subnet

15.154.112.0

#Guest Application Monitor

 

service_name

ping_mon

41

Image 41
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