Modify the interfaces file for the server entry to use a floating IP address or logical host name. Do not include the retry and timeout options for the server entry on the server-side interfaces file. The following is an example of the server-side interfaces file using the logical hostname loghost.
MONEY master tcp ether loghost 4010 query tcp ether loghost 4010
Make sure the logical hostname is accessible on all primary and secondary nodes by properly updating the /etc/hosts or NIS hosts map and /etc/nsswitch.conf files.
Using local /etc/hosts is recommended over the NIS hosts map in a cluster environment to avoid unnecessary dependency on the NIS server. Modify the /etc/nsswitch.conf file appropriately.
For example, the /etc/hosts file for the setup in Figure 12-1 looks like this:
# #internet host table # 10.22.98.43 node1 10.22.98.44 node2 10.22.98.165 loghost
Hosts entry in /etc/nsswitch.conf file looks like:
hosts: files nis dns