After specifying all cluster parameters, you use SAM or HP-UX commands
to apply the configuration. This action distributes the binary configuration
file to all the nodes in the cluster. We recommend doing this separately before you configure packages (described in the next chapter, "Chapter 6 “Configuring Packages and Their Services ”"). In this way, you can verify the
cluster lock, heartbeat networks, and other cluster-level operations
by using the cmviewcl command on the running cluster. Before distributing
the configuration, ensure that your security files permit copying
among the cluster nodes. See the section "“Preparing Your Systems ”" at the beginning of this chapter.
Distributing the Configuration File with SAM |
 |
When you have finished entering parameters in the Cluster Configuration
subarea in SAM, you are asked to verify the copying of the files
to all the nodes in the cluster. When you respond OK to the verification
prompt, MC/LockManager copies the binary configuration file and the
ASCII configuration file to all the nodes in the cluster.
Distributing the Configuration File with HP-UX Commands |
 |
Use the following steps to generate the binary configuration
file and distribute the configuration to all nodes in the cluster:
Activate the cluster lock volume group
so that the lock disk can be initialized:
# vgchange -a y /dev/vglock |
Generate the binary configuration file and distribute
it across the nodes.
# cmapplyconf -v -C /etc/cmcluster/cmclconf.ascii
|
Deactivate the cluster lock volume group.
# vgchange -a n /dev/vglock |
The cmapplyconf command creates a binary version of the cluster configuration
file and distributes it to all nodes in the cluster. This action ensures
that the contents of the file are consistent across all nodes. Note that
the cmapplyconf command does not distribute the ASCII configuration file.
Checking Cluster Operation |
 |
MC/LockManager also provides several commands for manual control
of the cluster:
cmrunnode is used to start a node.
cmhaltnode is used to manually stop a running node. (This
command is also used by shutdown(1m).)
cmruncl is used to manually start a stopped cluster.
cmhaltcl is used to manually stop a cluster.
You can use these commands to test cluster operation, as in
the following:
If the cluster is not already online, run the cluster, as
follows:
When the cluster has started, use the following
command to ensure that cluster components are operating correctly:
Make sure that all nodes and networks are functioning as expected. For
information about using cmviewcl, refer to the chapter "Chapter 7 “Cluster and Package Maintenance”."
Use the following sequence of commands to verify
that nodes leave and enter the cluster as expected:
On a cluster node, issue the cmhaltnode command.
Use the cmviewcl command to verify that the node has left the cluster.
Issue the cmrunnode command.
Use the cmviewcl command again to verify that the node has returned
to operation.
Use the following command to bring down the cluster:
Additional cluster testing is described in the chapter "Chapter 8 “Troubleshooting Your Cluster”." Refer to the appendix "Appendix B “MC/LockManager Commands”" for a complete list of MC/LockManager commands.