HP Serviceguard Toolkit for Integrity Virtual Servers manual Help Version, Adm/vm1npivdiskmon.log

Page 30

Attribute Name

Value

Example

service_restart

number_of_restart

5

service_halt_timeout

halt_time_out

300

NPIV Disk monitoring in VM or vPar guest using the SG IVS toolkit

If you are using NPIV Disk, use the application monitoring framework to configure disk monitoring to detect a failure of NPIV Disks in VM or vPar guest. When there is a failure in any one of the monitored disks, the VM or vPar package fails over to the configured alternate node.

Usage of NPIV Disks monitoring

cmapp_disk_mon [-h, --help] [-v, --version]

[-O, --log-file <log_file>] [-D, --log-level <1-7>]

[-t, --poll-interval <seconds>]

<disk_drive_path> [<disk_drive_path>...]

where:

[-h/--help]:

[-v/--version]:

[-O,--log-file <log_file>]: It is the full path of the file on VM or vPar host.

[-D,--log-level<0-7>]: The logging information is set into the log, based on the level of criticality, (0 through 7). The default value is 0.

[-t,--poll-interval <seconds>]: It is the frequency of monitoring or polling the disk to check its correctness. The default value is 60 seconds. This value must be greater than 0.

<disk_drive_path>.. [<disk_drive_path>]: It is the number of NPIV disks to be monitored by this service.

Multiple NPIV Disks can be simultaneously monitored by creating a service for the specified disks in the VM or vPar guest configuration file.

To monitor the NPIV disks in the guest, manually edit the package configuration file as described in the following table:

Attribute Name

Value

Example

service_name

<service_name>

npiv_disk_mon

service_cmd

/usr/sbin/cmappmgr -node

/usr/sbin/cmappmgr -node

 

<guest_name>

remo1 -cmappserver_timeout

 

-cmappserver_timeout

240 -service /opt/hp/

 

<time_out_value> -service /

cmappserver/cmapp_disk_mon /

 

opt/hp/cmappserver/

dev/disk/disk12 /dev/rdisk/

 

cmapp_disk_mon <disk1>

disk13 /dev/disk/disk14

 

[<disk2>...<diskn>][--log_file

--log_level 3 –log_file /var/

 

<full_path_on_host>][--log_level

adm/vm1_npiv_disk_mon.log

 

<1-to-7>] [--poll-interval

 

 

<number_of_seconds>]

 

service_restart

number_of_restart

5

service_halt_timeout

halt_time_out

300

NOTE: You must provide the disk names as input for monitoring once you have specified all the options.

30 Configuring guest application monitoring service

Image 30
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 packagesNetwork 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 K004vswitchmgr Vparreset IvshpvmutilsVswitchmgr S802vswitchmgrUsing SG IVS toolkit PreconfigurationCreating packages Change the vgnamecmd to vgchange -a s Hpvmvolumegroup /dev/vgsharedA Check the configuration of the packageUsing Serviceguard commands Cd /etc/cmcluster/vm/vParnameCmmakepkg -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 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 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 How to contact HP Support and other resourcesInformation to collect before contacting HP HP authorized resellers Documentation feedbackRelated information Typographic conventions TIP Page Page Glossary DMPIndex