HP-UX HB v13.00 Ch-15 - Serviceguard
HP-UX Handbook – Rev 13.00 Page 63 (of 108)
Chapter 15 Serviceguard
October 29, 2013
You can use the following commands to check the status of your disks:
bdf - to see if your package's volume group is mounted.
vgdisplay - to see if all volumes are present.
lvdisplay -v - to see if the mirrors are synchronized.
strings /etc/lvmtab - to ensure that the configuration is correct.
ioscan -fnC disk - to see physical disks.
diskinfo -v /dev/rdsk/cxtydz - to display information about a disk.
lssf /dev/dsk/* - to check LV and paths.
vxdg list - to list VERITAS disk groups.
vxprint - to show VERITAS disk group details.
Packages
As of version A.11.18, there are now two styles of packages; modular and legacy. Legacy
packages were created using cmmakepkg –p to create a package configuration file, and
cmmakepkg –s, to create a package control script. The admin then customized parameters in
both, and customer_defined_[run|halt]_cmds functions in the control script to make the package
control critical business application startup and shutdown. A 2-file format is problematic when
the admin forgets to copy modifications to the control script to adoptive nodes. The
Serviceguard lab also decided to make package control features modular to also incorporate
package enhancements, ECMT toolkit and metrocluster modules more easily. So the result was
that cmmakepkg was modified to generate a single package configuration file that consolidates
all parameters into the single configuration file. The admin need only customize the one file and
cmapplyconf it. All generic control scripts are now placed in /etc/cmcluster/scripts/. Modular
package contents are recorded in the cluster binary. Use ‘cmviewcl –v –f line’ to look at it.
What happens during package start
Modular packages identify order-of-activity in package configuration file. Example:
operation_sequence $SGCONF/scripts/sg/external_pre.sh
operation_sequence $SGCONF/scripts/sg/volume_group.sh
operation_sequence $SGCONF/scripts/sg/filesystem.sh
operation_sequence $SGCONF/scripts/sg/package_ip.sh
operation_sequence $SGCONF/scripts/sg/external.sh