Managing HP Serviceguard A.11.20.20 for Linux, May 2013

B.1.1 Defining Baseline Application Behavior on a Single System
1. Define a baseline behavior for the application on a standalone system:
Install the application, database, and other required resources on one of the systems. Be
sure to follow Serviceguard rules in doing this:
Install all shared data on separate external volume groups.
Use a Journaled filesystem (JFS) as appropriate.
Perform some sort of standard test to ensure the application is running correctly. This test
can be used later in testing with Serviceguard. If possible, try to connect to the application
through a client.
Crash the standalone system, reboot it, and test how the application starts up again. Note
the following:
Are there any manual procedures? if so, document them.
Can everything start up from rc scripts?
Try to write a simple script which brings everything up without having to do any keyboard
typing. Figure out what the administrator would do at the keyboard, then put that into
the script.
Try to write a simple script to bring down the application. Again, figure out what the
administrator would do at the keyboard, then put that into the script.
B.1.2 Integrating HA Applications in Multiple Systems
1. Install the application on a second system.
Create the LVM infrastructure on the second system.
Add the appropriate users to the system.
Install the appropriate executables.
With the application not running on the first system, try to bring it up on the second
system. You might use the script you created in the step above. Is there anything different
that you must do? Does it run?
Repeat this process until you can get the application to run on the second system.
2. Configure the Serviceguard cluster:
Create the cluster configuration.
Create a package.
Create the package script.
Use the simple scripts you created in earlier steps as the customer defined functions in
the package control script.
3. Start the cluster and verify that applications run as planned.
B.1.3 Testing the Cluster
1. Test the cluster:
Have clients connect.
Provide a normal system load.
Halt the package on the first node and move it to the second node:
# cmhaltpkg pkg1
# cmrunpkg -n node2 pkg1
# cmmodpkg -e pkg1
Move it back.
278 Integrating HA Applications with Serviceguard