HP-UX Secure Resource Partitions (SRP) A.02.01 Administrator's Guide

87
following example, the representative Serviceguard package was modified to add a default route,
external_script:
Before:
# SG ip address
ip_subnet 192.10.25.0
ip_address 192.10.25.12
After:
# SG ip address
ip_subnet 192.10.25.0
ip_address 192.10.25.12
# srp_route_script configures the required source based routing entries
for
# the SG managed IP addresses
external_script /etc/cmcluster/pkg1/srp_route_script
See
Appendix B SRP Serviceguard Default Route Script for an example of the srp_route_script script.
16.4 Creating Serviceguard Scripts for the SRP Package Model
The SRP package model manages the SRP itself as a package. At start time, the package starts the
SRP and relies on the SRP initialization process to mount any application specific file systems and start
the applications. Similarly, at stop time, the package stops the SRP relying on SRP to perform any
application shutdown and file system unmounting.
Monitoring of the package is accomplished using the same method as described for the classic
model. The SPR package model allows you to share the entire SRP home directory between primary
and secondary SRPs. If you choose to share a common home directory, then the Serviceguard
package should mount and unmount the home directory before starting and stopping the SRP. See
5.2 Managing SRP Startup and Shutdown Actions.
Either SRP or Serviceguard can manage the network interfaces. If Serviceguard is managing the
network interfaces, HP recommends that you instruct Serviceguard to configure the default route for
any SRP IP address. See Appendix B SRP Serviceguard Default Route Script for an example.
You can find a reference implementation of the SRP package model at:
/opt/hpsrp/example/serviceguard/srp_as_sg_package/
To create a functional example of a working SRP based on a Serviceguard package, follow the
instructions as specified in the following file:
/opt/hpsrp/example/serviceguard/srp_as_sg_package/README