Managing HP Serviceguard for Linux, Eighth Edition, March 2008

Building an HA Cluster Configuration
Preparing Your Systems
Chapter 5148
The procedure that follows shows how to create a robust name-resolution
configuration that will allow cluster nodes to continue communicating
with one another if a name service fails.
Step 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; see “Configuring Name Resolution” on page 146 for
discussion and examples.
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.
Step 2. If you are using DNS, make sure your name servers are configured in
/etc/resolv.conf, for example:
domain cup.hp.com
search cup.hp.com hp.com
nameserver 15.243.128.51
nameserver 15.243.160.51
Step 3. Edit or create the /etc/nsswitch.conf file on all nodes and add the
following text (on one line), if it does not already exist:
for DNS, enter (one line):
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
[NOTFOUND=return UNAVAIL=return]
for NIS, enter (one line):
hosts: files [NOTFOUND=continue UNAVAIL=continue] nis
[NOTFOUND=return UNAVAIL=return]
If a line beginning with the string “hosts:” already exists, then make
sure that the text immediately to the right of this string is (on one line):
files [NOTFOUND=continue UNAVAIL=continue] dns
[NOTFOUND=return UNAVAIL=return]
or