Managing Serviceguard 11th Edition, Version A.11.16, Second Printing June 2004

Building an HA Cluster Configuration
Preparing Your Systems
Chapter 5 189
A workaround for the problem that still retains the ability to use
conventional name lookup is to configure the /etc/nsswitch.conf file
to search the /etc/hosts file when other lookup strategies are not
working. In case name services are not available, Serviceguard
commands will then use the /etc/hosts file on the local system to do
name resolution. Of course, the names and IP addresses of all the nodes
in the cluster must be in the /etc/hosts file.
Name Resolution Following Primary LAN Failure or Loss of DNS
There are some special configuration steps required to allow cluster
configuration commands such as cmrunnode and cmruncl to continue to
work properly after LAN failure, even when a standby LAN has been
configured for the failed primary. These steps also protect against the
loss of DNS services, allowing cluster nodes to continue communicating
with one another.
1. Edit the /etc/hosts file on all nodes in the cluster. Add name
resolution for all heartbeat IP addresses, and other IP addresses
from all the cluster nodes. Example:
15.13.172.231 hasupt01
192.2.1.1 hasupt01
192.2.8.2 hasupt01
15.13.172.232 hasupt02
192.2.1.2 hasupt02
192.2.8.2 hasupt02
15.13.172.233 hasupt03
192.2.1.3 hasupt03
192.2.8.3 sgsupt03
This ensures that messages coming from non-public networks, as
well as public networks, are mapped to the correct host name.
NOTE For each cluster node, the public network IP address must be the
first address listed. This enables other applications to talk to other
nodes on public networks.
2. Edit or create the /etc/nsswitch.conf file on all nodes and add the
following line if it does not already exist:
hosts: files [NOTFOUND=continue] dns