HP 9000 Containers A.03.01 on HP Integrity Server Administrator Guide HP-UX 11i v3 (5900-3112, June 2013)
10.4 Selecting application that manages file system and network interface
When you use the application package model, HP recommends using SG to manage the network
interface and file system mounts. In the case of container package model, use HP-UX Containers
to manage the network interface and file system mounts.
To use the SG network failover capability, the network interface must be managed by SG. Ensure
that an SG managed container and a non-SG managed container on the same host do not share
the same physical network interface.
10.5 Configuring the SG package on the primary node
10.5.1 Using container package model
Only HP 9000 system containers support the container package model.
Selecting the file system model
The container file system in the /var/hpsrp/<srp_name> directory can either be on shared
logical volume or replicated on all the nodes. A shared file system provides better manageability
and lower storage costs. To use a shared file system, the host system must be on the same OE
update and patch level on all the nodes.
Configuring shared logical volumes
To share the container file system, configure a shared logical volume on the primary node, export
the volume group configuration, and then import it on the failover nodes. Do the same for logical
volumes used to host shared data, if applicable.
Configuring primary node
To configure primary node, follow the steps described in either Chapter 3 (page 17) or Chapter 4
(page 21) based on the HP 9000 container type. When creating the container, follow the specific
instructions for integration with SG. In particular, during container creation, answer no to the
following question:
Autostart container at system boot? [yes] no
If SG manages the IP address of the container,
Add IP address to netconf file? [yes] no
Writing RC scripts for applications
In the container package model, the container is failed over and started on the failover node. This
does not start applications unless RC scripts are written for starting them along with the container.
For more information about creating RC scripts, see rc(1M).
Testing applications on primary node
To start an HP 9000 container and test applications:
1. If the IP address of the container is managed by SG, enable it manually and add the route
entry for testing:
$ ifconfig <container-lan-interface> \
<container-ip-addr> netmask <netmask>
$ /usr/sbin/route add default <gateway-ip-addr> 1 \
source <container-ip-address>
2. Start the HP 9000 container:
$ srp –start <srp_name>
68 Integration with SG