HP-UX HB v13.00 Ch-15 - Serviceguard

HP-UX Handbook Rev 13.00 Page 44 (of 108)
Chapter 15 Serviceguard
October 29, 2013
activates and deactivates this volume group. In addition, you should use the LVM vgexport
command on the removed volume group from each node that will no longer be using the volume
group.
Using Serviceguard Commands to Change the LVM Configuration
While the Cluster is Running
From the LVM’s cluster, follow these steps:
1. Use the cmgetconf command to store a copy of the cluster's existing cluster configuration
in a temporary file. For example: cmgetconf cluster.ascii
2. Edit the file clconfig.ascii to add or delete volume groups.
3. Use the cmcheckconf command to verify the new configuration.
4. Use the cmapplyconf command to apply the changes to the configuration and send the
new configuration file to all cluster nodes.
NOTE If the volume group that you are deleting from the cluster is currently activated by a
package, the configuration will be changed but the deletion will not take effect until the package
is halted; thereafter, the package will no longer be able to run without further modification, such
as removing the volume group from the package control script.
Reconfiguring a Package
The cluster can be either halted or running during package reconfiguration. The types of changes
that can be made and the times when they take effect depend on whether the package is running
or not. If you reconfigure a package while it is running, it is possible that the package could fail
later, even if the cmapplyconf succeeded. For example, consider a package with two volume
groups. When this package started, it activated both volume groups. While the package is
running, you could change its configuration to list only one of the volume groups, and
cmapplyconf would succeed. If you issue cmhaltpkg command, however, the halt would fail.
The modified package would not deactivate both of the volume groups that it had activated at
startup, because it would only see the one volume group in its current configuration file.
Reconfiguring a Package on a Running Cluster
You can reconfigure a package while the cluster is running, and in some cases you can
reconfigure the package while the package itself is running. You can do this in Serviceguard
Manager, or use Serviceguard commands.
To modify the package with Serviceguard commands, use the following procedure (pkg1 is used
as an example):
1. Halt the package if necessary: