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

86
2. Select which application will have the control
Determine whether SRP or Serviceguard will control the mounting of file systems and
management of the network interface, as follows:
If you selected the classic model in step 1, HP recommends using Serviceguard to
control the mounting of file systems and management of the network interface.
If you selected the SRP package model in Step 1, HP recommends using SRP to
control the file system mounting and management of the network interface. If you
want to use the Serviceguard network failover capability, then Serviceguard must
control the management of the network interface.
3. Create the SRP
Use the srp -add command to create the SRP. You will be asked specific questions
regarding your choices that you made in step 1 and step 2:
Assign IP address at SRP start time? [yes]
Select “yes” to instruct SRP to control network interface management.
Enter “no” to defer control of network management to Serviceguard.
(Note: you may also use assign_ip=yes|no on the srp command line)
Autostart SRP at system boot? [yes]
Select “yes” for the classic model.
Enter “no” for the SRP package model.
(Note: you may also use autostart=yes|no on the srp command line)
16.3 Adapting Serviceguard Scripts for the Classic Model
In an SRP environment, Serviceguard runs in the INIT compartment while the managed applications
run inside the SRP compartments. If you want Serviceguard to manage or monitor the applications
executing within the managed SRP, use the srp_su command to let Serviceguard access the
managed SRP. You must append the srp_su command to the command that requires execution
within the SRP compartment.
In the following example, the representative Serviceguard package was modified to control mySRP, a
package executing in the SRP. The service_cmd value is the only value that changed in the script:
Before:
service_name service_ping
service_cmd "/usr/sbin/ping node_a"
service_restart unlimited
service_fail_fast_enabled no
service_halt_timeout 300
After:
service_name service_ping
service_cmd "/opt/hpsrp/bin/util/srp_su mySRP root c ‘/usr/sbin/ping node_a’"
service_restart unlimited
service_fail_fast_enabled no
service_halt_timeout 300
Either SRP or Serviceguard can manage the network interfaces. If Serviceguard is managing the
network interfaces, HP recommends that you configure the default route for any SRP IP address. In the