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

85
16 Using Serviceguard with SRP
Serviceguard allows you to create high availability clusters of HP 9000 or HP Integrity
Servers. A high availability computer system allows application services to continue in spite
of a hardware or software failure. Highly available systems protect users from software
failures as well as from failure of a system processing unit (SPU), disk, or local area
network (LAN) component. In the event that one component fails, the redundant
component takes over. Serviceguard and other high availability subsystems coordinate
the transfer between components.
You can use Serviceguard to provide high availability to your SRP deployment. Serviceguard can
manage a Servcieguard package executing within an SRP, or manage the SRP itself as a
Serviceguard package. You can also use the export and import features of SRP to create a secondary
(failover) environment. For more information on copying an SRP environment, see 15 Exporting and
Importing SRPs.
This chapter discusses the following:
16.1 Choosing a Model
16.2 Creating an SRP to Use with Serviceguard
16.3 Adapting Serviceguard Scripts for the Classic Model
16.4 Creating Serviceguard Scripts for the SRP Package Model
16.1 Choosing a Model
HP offers two different models when using Serviceguard with SPR: the classic model and the SRP
package model.
In the classic model, the SRP is in the started state and Serviceguard has not yet started managing
the application inside the SRP. This model is most compatible with the existing Serviceguard
packages.
In the SRP package model, the SRP itself is the Serviceguard package. This model takes advantage of
the capabilities of SRP by simplifying the Serviceguard scripts and allowing application startup and
shutdown to be managed by SRP. Serviceguard starts and stops the SRP; and the SRP initialization
and shutdown process starts and stops the applications within the SRP. This model simplifies the
Serviceguard packages and requires less maintenance and administration of startup and shutdown
activities. With this model, you can choose either Serviceguard or SRP to control the file system
mounting and the network interface management.
16.2 Creating an SRP to Use with Serviceguard
If you want to create an SRP that will use Serviceguard, you must first determine how SRP and
Serviceguard will interact together. The following steps will give you the information that you need to
configure an SRP appropriately:
1. Select the model
If you have existing Serviceguard control scripts that you want to leverage, HP recommends
that you use the classic model. For a new deployment of a Serviceguard package, HP
recommends that you use the SRP package model as it is easier to create.