Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Contents
9
Writing the Package Control Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Customizing the Package Control Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Optimizing for Large Numbers of Storage Units . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Configuring Disk Monitoring Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Package Control Script Template File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Adding Customer Defined Functions to the Package Control Script . . . . . . . . . . . 202
Adding or Removing Packages on a Running Cluster . . . . . . . . . . . . . . . . . . . . . . . 203
Verifying the Package Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Applying and Distributing the Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Copying Package Control Scripts with Linux commands. . . . . . . . . . . . . . . . . . . . . 205
Testing Cluster and Package Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Creating a Disk Monitor Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Configuring All Disks for Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Configuring Disks on a Single Node for Monitoring. . . . . . . . . . . . . . . . . . . . . . . . . 209
7. Cluster and Package Maintenance
Reviewing Cluster and Package States with the cmviewcl Command . . . . . . . . . . . . 212
Types of Cluster and Package States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Examples of Cluster and Package States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Using Serviceguard Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
How Serviceguard Manager Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Running Serviceguard Manager with a Command. . . . . . . . . . . . . . . . . . . . . . . . . . 225
Starting with a Specific Cluster. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Starting Serviceguard Manager without a Specific Cluster. . . . . . . . . . . . . . . . . . . 228
Connecting to an Object Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Opening a Saved File with Cluster Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Viewing Cluster Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
Obtaining Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Managing Cluster Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Viewing Status of Monitored Disks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Managing the Cluster and Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Starting the Cluster When all Nodes are Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Adding Previously Configured Nodes to a Running Cluster . . . . . . . . . . . . . . . . . . 244
Removing Nodes from Operation in a Running Cluster. . . . . . . . . . . . . . . . . . . . . . 245
Halting the Entire Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Reconfiguring a Halted Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Automatically Restarting the Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Reconfiguring a Running Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248