 |
» |
|
|
 |
You can reconfigure a cluster either when it is halted or
while it is still running. Some operations can only be done when
the cluster is halted. Table 7-1 “Types of Changes to Permanent Cluster Configuration ” shows
the required cluster state for many kinds of changes. Table 7-1 Types of Changes to Permanent Cluster Configuration Change to the Cluster Configuration | Required Cluster State |
|---|
Add a new node | All cluster nodes must be running. Serial
heartbeat must not be configured. | Delete a node | A node can be deleted even though it is
unavailable or unreachable. | Add a volume group | Cluster may be running or halted. | Delete a volume group | Cluster may be running or halted. Packages
that use the volume group will not be able to start again until their
control scripts are modified. | Change Maximum Configured Packages | Cluster may be running or halted. | Change Timing Parameters | Cluster must not be running. | Change Quorum Server Configuration | Cluster must not be running. | Change Cluster Lock Configuration | Cluster must not be running. | | Change serial device files | Cluster must not be running. | | Change IP addresses for heartbeats or monitored subnets | Cluster must not be running. | Change Access Control Policy (Serviceguard
A.11.16 or later) | Cluster and package may be running or
halted. | Failover Optimization to enable or disable
Faster Failover product | Cluster must not be running. |
Reconfiguring
a Halted Cluster |  |
You can make a permanent change in cluster configuration when
the cluster is halted. This procedure must be
used for changes to the quorum server or lock disk configuration,
changes in timing parameters, and changes to the Maximum Number
of Packages parameter, but it can be used for any other cluster
configuration changes as well. Use the following steps: Halt the cluster on all nodes, using Serviceguard Manager’s
Halt Cluster command, or cmhaltcl on the command line. On one node, reconfigure the cluster as described
in the chapter “Building an HA Cluster Configuration.” You
can do this by using Serviceguard Manager (Serviceguard version
A.11.16 or later), or by issuing cmquerycl on the command line to generate an ASCII file, which
you then edit. Make sure that all nodes listed in the cluster configuration
file are powered up and accessible. To copy the binary cluster configuration file
to all nodes, use Serviceguard Manager’s Apply button,
or cmapplyconf on the command line. This file overwrites any
previous version of the binary cluster configuration file. Start the cluster on all nodes or on a subset of
nodes. Use Serviceguard Manager’s Run Cluster command,
or cmruncl on the command line.
Using
Serviceguard Manager to Change MAX_CONFIGURED_ PACKAGESSelect the cluster on the map or tree. From the Actions menu,
select Configuration. MAX_CONFIGURED _PACKAGES is in the Parameters tab. In Serviceguard A.11.17, you can change MAX_CONFIGURED_PACKAGES while the cluster is running. The default in A.11.17
is that MAX_CONFIGURED_PACKAGES is the maximum number allowed in the cluster. Using
Serviceguard Commands to Change MAX_CONFIGURED_ PACKAGESIn Serviceguard A.11.17, you can change MAX_CONFIGURED_PACKAGES while the cluster is running. The default in A.11.17
is that MAX_CONFIGURED_PACKAGES is the maximum number allowed in the cluster. Use the cmgetconf command to obtain a current copy of the cluster's existing
configuration. Example: # cmgetconf -c cluster_name clconfig.ascii |
Edit the clconfig.ascii file to include the desired value for MAX_CONFIGURED_PACKAGES. Then use the cmcheckconf command to verify the new configuration. Using -k or -K option with the cmcheckconf command, can significantly reduce the response time. Use the cmapplyconf command to apply the changes to the configuration
and send the new configuration file to all cluster nodes. Using -k or -K option with the cmcheckconf command, can significantly reduce the response time. Reconfiguring
a Running Cluster |  |
You can add new nodes to the cluster configuration or delete
nodes from the cluster configuration while the cluster is up and
running. Note the following, however: You cannot change the quorum server
or lock disk configuration while the cluster is running. You cannot remove an active node from the cluster.
You must halt the node first. You cannot delete an active volume group from the
cluster configuration. You must halt any package that uses the volume group
and ensure that the volume is inactive before deleting it. You cannot change cluster timing parameters. The only configuration change allowed while a node
is unreachable (for example, completely disconnected from the network)
is to delete the unreachable node from the cluster configuration.
If there are also packages that depend upon that node, the package
configuration must also be modified to delete the node. This all
must be done in one configuration request (cmapplyconf command).
Changes to the package configuration are described in a later
section. The following sections describe how to perform dynamic reconfiguration tasks
using Serviceguard Manager or Serviceguard commands. Using
Serviceguard Manager to Add Nodes to the Configuration While the
Cluster is Running Select the cluster on the tree or map. Choose Configuring
from the Actions menu. You need root permission on the cluster.
On the Nodes tab, under Available nodes, highlight the node you
want to add, and click Add. Then click Apply. After Refresh, check
the cluster’s Properties to confirm the change. Using
Serviceguard Commands to Add Nodes to the Configuration While the
Cluster is Running Use the following procedure to add a node with HP-UX commands.
For this example, nodes ftsys8 and ftsys9 are
already configured in a running cluster named cluster1,
and you are adding node ftsys10. Use
the following command to store a current copy of the existing cluster
configuration in a temporary file: # cmgetconf -c cluster1 temp.ascii |
Specify a new set of nodes to be configured and
generate a template of the new configuration. Specify the node name
(31 bytes or less) without its full domain name; for example, specify ftsys8 and not ftsys8.cup.hp.com: # cmquerycl -C clconfig.ascii -c cluster1 \ -n ftsys8 -n ftsys9 -n ftsys10 |
Edit the file clconfig.ascii to check the information about the new node. Verify the new configuration: # cmcheckconf -C clconfig.ascii |
Apply the changes to the configuration and send
the new binary configuration file to all cluster nodes: # cmapplyconf -C clconfig.ascii |
Use cmrunnode to start the new node, and, if desired, set the AUTOSTART_CMCLD parameter to 1 in the /etc/rc.config.d/cmcluster file to enable the new node to join the cluster
automatically each time it reboots.  |  |  |  |  | NOTE: If you add a node to a running cluster that uses
CVM disk groups, the disk groups will be available for import when
the node joins the cluster. To add a node to the cluster, it must
already have connectivity to the disk devices for all CVM disk groups |  |  |  |  |
Using
Serviceguard Manager to Delete Nodes from the Configuration While
the Cluster is Running The node must be halted. If it is not, select it and choose
Administering Serviceguard from the Actions menu. Choose Halt Node. Select the cluster on the tree or map. Choose Configuring
Serviceguard from the Actions menu. (You need root permission on
the cluster.) On the Nodes tab, under Available nodes, highlight
the node to remove, and click Delete. Then click Apply. After Refresh,
check the cluster’s Properties to confirm the change. You cannot delete the session server node. If the node you wish to delete is unreachable (disconnected
from the LAN, for example), you can delete the node only if there
are no packages which specify the unreachable node. If there are
packages that depend on the unreachable node, halt the cluster or
use Serviceguard commands as described in the next section. Using
Serviceguard Commands to Delete Nodes from the Configuration While
the Cluster is Running Use the following procedure to delete a node with HP-UX commands.
For this example, nodes ftsys8, ftsys9 and ftsys10 are
already configured in a running cluster named cluster1,
and you are deleting node ftsys10.  |  |  |  |  | NOTE: If you want to remove a node from the cluster, issue
the cmapplyconf command from another node in the same cluster. If you
try to issue the command on the node you want removed, you will
get an error message. |  |  |  |  |
Use the following command to store a current copy of the existing cluster
configuration in a temporary file: # cmgetconf -c cluster1 temp.ascii |
Specify the new set of nodes to be configured (omitting ftsys10)
and generate a template of the new configuration: # cmquerycl -C clconfig.ascii -c cluster1 -n ftsys8 -n ftsys9 |
Edit the file clconfig.ascii to check the information about the nodes that
remain in the cluster. Verify the new configuration: # cmcheckconf -C clconfig.ascii |
From ftsys8 or ftsys9. apply the changes to the
configuration and send the new binary configuration file to all
cluster nodes.: # cmapplyconf -C clconfig.ascii |
Changing
the VxVM or CVM Storage Configuration You can add VxVM disk groups to the cluster configuration
while the cluster is running. To add new CVM disk groups, the cluster must be running. Create CVM disk groups from the CVM Master Node: For CVM 3.5, and for CVM 4.1 without CFS,
edit the configuration ASCII file of the package that uses CVM storage.
Add the CVM storage group in a STORAGE_GROUP statement. Then issue
the cmapplyconf command. For CVM 4.1 with CFS, edit
the configuration ASCII file of the package that uses CFS. Fill
in the three-part DEPENDENCY parameter. Then issue the cmapplyconf command.
Similarly, you can delete VxVM or CVM disk groups provided
they are not being used by a cluster node at the time.  |  |  |  |  | NOTE: If you are removing a disk group from the cluster configuration,
make sure that you also modify or delete any package control script
that imports and deports this disk group. If you are removing a
disk group managed by CVM without CFS, be sure to remove the STORAGE_GROUP entries for the disk group from the package ASCII
file. If you are removing a disk group managed by CVM with CFS,
be sure to remove the DEPENDENCY parameter. |  |  |  |  |
Serviceguard manages the VERITAS processes, specifically gab and LLT. As a result, the administration commands such as gabconfig, llthosts, and lltconfig should never be used for administering a cluster. It
is safe to use the read-only uses of these commands, such as gabconfig -a. But an administrative command could potentially crash
nodes or an entire cluster.
|