NOTE: If you have a package configured with generic resources and you attempt to take it out of the maintenance mode back to the running state, the status of generic resources are evaluated. If any of the generic resources is 'down', the package cannot be taken out of the maintenance mode.

Performing Maintenance Using Partial-Startup Maintenance Mode

To put a package in partial-startup maintenance mode, you put it in maintenance mode, then restart it, running only those modules that you will not be working on.

Procedure

Follow this procedure to perform maintenance on a package. In this example, we'll assume a package pkg1 is running on node1, and that we want to do maintenance on the package's services.

1.Halt the package: cmhaltpkg pkg1

2.Place the package in maintenance mode: cmmodpkg -m on -n node1 pkg1

NOTE: The order of the first two steps can be reversed.

3.Run the package in maintenance mode.

In this example, we'll start pkg1 such that only the modules up to and including the package_ip module are started. (See “Package Modules and Parameters” (page 230) for a list of package modules. The modules used by a package are started in the order shown near the top of its package configuration file.)

cmrunpkg -m sg/package_ip pkg1

4.Perform maintenance on the services and test manually that they are working correctly.

NOTE: If you now run cmviewcl, you'll see that the STATUS of pkg1 is up and its STATE is maintenance.

5.Halt the package: cmhaltpkg pkg1

NOTE: You can also use cmhaltpkg -s, which stops the modules started by cmrunpkg -m— in this case, all the modules up to and including package_ip.

6.Run the package to ensure everything is working correctly: cmrunpkg pkg1

NOTE: The package is still in maintenance mode.

7.If everything is working as expected, bring the package out of maintenance mode: cmmodpkg -m off pkg1

8.Restart the package: cmrunpkg pkg1

Excluding Modules in Partial-Startup Maintenance Mode

In the example above, we used cmrunpkg -mto run all the modules up to and including package_ip, but none of those after it. But you might want to run the entire package apart from the module whose components you are going to work on. In this case you can use the -eoption:

290 Cluster and Package Maintenance

Page 290
Image 290
HP Serviceguard manual Cmrunpkg -m sg/packageip pkg1, Excluding Modules in Partial-Startup Maintenance Mode