Example: Adding a Heartbeat LAN

Suppose that a subnet 15.13.170.0 is shared by nodes ftsys9 and ftsys10 in a two-node cluster cluster1, and you want to add it to the cluster configuration as a heartbeat subnet. Proceed as follows.

1.Run cmquerycl to get a cluster configuration template file that includes networking information for interfaces that are available to be added to the cluster configuration:

cmquerycl -c cluster1 -C clconfig.ascii

NOTE: As of Serviceguard A.11.18, cmquerycl -cproduces output that includes commented-out entries for interfaces that are not currently part of the cluster configuration, but are available.

The networking portion of the resulting clconfig.ascii file looks something like this:

NODE_NAMEftsys9

NETWORK_INTERFACE lan1

HEARTBEAT_IP 192.3.17.18

#NETWORK_INTERFACE lan0

#STATIONARY_IP 15.13.170.18

NETWORK_INTERFACE lan3

#Possible standby Network Interfaces for lan1, lan0: lan2.

NODE_NAMEftsys10

NETWORK_INTERFACE lan1

HEARTBEAT_IP 192.3.17.19

#NETWORK_INTERFACE

lan0

# STATIONARY_IP

15.13.170.19

NETWORK_INTERFACE

lan3

# Possible standby Network Interfaces for lan0, lan1: lan2

2.Edit the file to uncomment the entries for the subnet that is being added lan0 in this example), and change STATIONARY_IP to HEARTBEAT_IP:

NODE_NAMEftsys9

NETWORK_INTERFACE lan1

HEARTBEAT_IP 192.3.17.18

NETWORK_INTERFACE lan0

HEARTBEAT_IP 15.13.170.18

NETWORK_INTERFACE lan3

#Possible standby Network Interfaces for lan1, lan0: lan2.

NODE_NAMEftsys10

NETWORK_INTERFACE lan1

HEARTBEAT_IP 192.3.17.19

NETWORK_INTERFACE lan0

HEARTBEAT_IP 15.13.170.19

NETWORK_INTERFACE lan3

# Possible standby Network Interfaces for lan0, lan1: lan2

3.Verify the new configuration: cmcheckconf -C clconfig.ascii

4.Apply the changes to the configuration and distribute the new binary configuration file to all cluster nodes:

cmapplyconf -C clconfig.ascii

If you were configuring the subnet for data instead, and wanted to add it to a package configuration, you would now need to:

1.Halt the package

2.Add the new networking information to the package configuration file

Reconfiguring a Cluster 299

Page 299
Image 299
HP Serviceguard manual Example Adding a Heartbeat LAN, Cmquerycl -c cluster1 -C clconfig.ascii