HP 9000 Containers A.03.01 on HP Integrity Server Administrator Guide HP-UX 11i v3 (5900-3112, June 2013)
Creating monitor scripts
Place the monitor scripts for applications in a directory under <hp9000_root>. You can use the
existing monitor scripts if they are compatible with the SG version on the Integrity server. For
information about how to migrate older packages, see Migrating packages from legacy to modular
style at www.hp.com/go/hpux-SG-docs.
Configuring SG package
To configure SG package:
1. If the container file system is on shared volume, specify /var/hpsrp/<srp_name> as an
SG managed file system:
fs_name /dev/<vg_name>/container_lv>
fs_directory /var/hpsrp/<srp_name>
2. Specify the monitor script to be executed inside the container:
service_cmd “/opt/hpsrp/bin/srp_su <srp_name> <user> \
–c “<command line for monitor script>””
3. If SG manages the container IP addresses, specify the same addresses:
ip_subnet <subnet>
ip_address <IP address>
4. If SG manages the container IP addresses, configure the package to create default routes for
these:
For example,
# srp_route_script configures the required source
# based routing entries for the SG managed IP
# addresses
external_script /etc/cmcluster/pkg1/srp_route_script
The /opt/hpsrp/example/serviceguard/srp_as_sg_package/srp_route_script
file provides a reference implementation of this route script.
5. Write a control script for starting and stopping the container during failover:
external_script /etc/cmcluster/pkg/srp_control_script
The /opt/hpsrp/example/serviceguard/srp_as_sg_package/
srp_control_script file provides a reference implementation of the control script.
The /opt/hpsrp/example/serviceguard/srp_as_sg_package/srp_package.conf
file provides a reference implementation of a container SG package.
10.5.2 Using application package model
Configuring shared volumes
The application data is allowed to reside in shared volumes, but the container file system must be
replicated on each node. Application package model does not support a shared container file
system.
Configuring primary and failover nodes
Configure HP 9000 containers separately on each node in the cluster by following the steps
described in Chapter 3 (page 17). Configure a unique IP address and a unique hostname for the
HP 9000 container on each server, but use the same container name. After you complete the
configuration on each node, start each container and verify whether the applications run properly.
70 Integration with SG