Managing Serviceguard 11th Edition, Version A.11.16, Second Printing June 2004

Contents
8
Creating the Package Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Using Serviceguard Manager to Configure a Package . . . . . . . . . . . . . . . . . . . . . . 244
Using Serviceguard Commands to Configure a Package . . . . . . . . . . . . . . . . . . . . . 245
Adding or Removing Packages on a Running Cluster . . . . . . . . . . . . . . . . . . . . . . . 255
Writing the Package Control Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Using Serviceguard Manager to Write the Package Control Script . . . . . . . . . . . . 256
Using Commands to Write the Package Control Script . . . . . . . . . . . . . . . . . . . . . . 256
Creating Packages For Database Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Customizing the Package Control Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Optimizing for Large Numbers of Storage Units . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Package Control Script Template File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Adding Customer Defined Functions to the Package Control Script . . . . . . . . . . . 269
Support for Additional Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
Verifying the Package Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Distributing the Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Distributing the Configuration File And Control Script with Serviceguard Manager .
273
Copying Package Control Scripts with HP-UX commands . . . . . . . . . . . . . . . . . . . 273
Distributing the Binary Cluster Configuration File with HP-UX Commands . . . . 273
Testing Cluster and Package Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
7. Cluster and Package Maintenance
Reviewing Cluster and Package Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
Reviewing Cluster and Package Status with Serviceguard Manager . . . . . . . . . . . 276
Reviewing Cluster and Package States with the cmviewcl Command . . . . . . . . . . 277
Managing the Cluster and Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Starting the Cluster When all Nodes are Down . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Adding Previously Configured Nodes to a Running Cluster . . . . . . . . . . . . . . . . . . 294
Removing Nodes from Operation in a Running Cluster. . . . . . . . . . . . . . . . . . . . . . 294
Halting the Entire Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Automatically Restarting the Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Managing Packages and Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Starting a Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Halting a Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Moving a Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Changing Package Switching Behavior. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299