Distributing the Binary Cluster Configuration File with HP-UX Commands

Use the following steps from the node on which you created the cluster and package configuration files:

Verify that the configuration file is correct. Use the following command (all on one line):

cmcheckconf -C /etc/cmcluster/cmcl.conf -P /etc/cmcluster/pkg1/pkg1.conf

Activate the cluster lock volume group so that the lock disk can be initialized: vgchange -a y /dev/vg01

Generate the binary configuration file and distribute it across the nodes (all on one line):

cmapplyconf -v -C /etc/cmcluster/cmcl.conf -P /etc/cmcluster/pkg1/pkg1.conf

If you are using a lock disk, deactivate the cluster lock volume group: vgchange -a n /dev/vg01

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: You must use cmcheckconf and cmapplyconf again any time you make changes to the cluster and package configuration files.

Configuring Cross-Subnet Failover

To configure a legacy package to fail over across subnets (see “Cross-Subnet Configurations” (page 30)), you need to do some additional configuration.

NOTE: You cannot use Serviceguard Manager to configure cross-subnet packages.

Suppose that you want to configure a package, pkg1, so that it can fail over among all the nodes in a cluster comprising NodeA, NodeB, NodeC, and NodeD.

NodeA and NodeB use subnet 15.244.65.0, which is not used by NodeC and NodeD; and NodeC and NodeD use subnet 15.244.56.0, which is not used by NodeA and NodeB. (See “Obtaining Cross-Subnet Information” (page 190) for sample cmquerycl output).

Configuring node_name

First you need to make sure that pkg1 will fail over to a node on another subnet only if it has to. For example, if it is running on NodeA and needs to fail over, you want it to try NodeB, on the same subnet, before incurring the cross-subnet overhead of failing over to NodeC or NodeD.

NOTE: If you are using a site-aware disaster-tolerant cluster, which requires Metrocluster (additional HP software), you can use the SITE to accomplish this. See the description of that parameter under “Cluster Configuration Parameters ” (page 109).

Assuming nodeA is pkg1’s primary node (where it normally starts), create node_name entries in the package configuration file as follows:

node_name nodeA

node_name nodeB

node_name nodeC

node_name nodeD

Configuring a Legacy Package 309

Page 309
Image 309
HP Serviceguard manual Configuring Cross-Subnet Failover, Configuring nodename