Adding entries for both Adaptive Servers to the interfaces file

The interfaces file for the primary and secondary companions must include entries for both companions. The server entry in the interfaces file must use the network name that is specified in sysservers. For information about adding entries to the interfaces file, see the installation documentation for your platform.

For each entry added to the interfaces file, the host name must be a logical host. You must create an entry for the logical host in /etc/hosts, NIS hosts map, or in directory services, whichever is appropriate for your system. The logical host name in the interfaces file must be the same as the name used with the -l (lowercase L) parameter of the scrgadm command used to add a SUNW.LogicalHostname resource when you configure Adaptive Server to work with the Sun Cluster subsystem.

Here is a sample interfaces file for a primary companion named MONEY1 and a secondary companion named PERSONNEL1:

MONEY1    query tcp ether loghost_node1 9865
    master tcp ether loghost_node1 9865
    hafailover PERSONNEL1
PERSONNEL1    query tcp ether loghost_node2 9866
    master tcp ether loghost_node2 9866
    hafailover MONEY1

This interfaces file is also used by Adaptive Server clients.Here is a sample /etc/hosts file with proper entries for the logical host names used in the above interfaces file:

#
# Internet host table on machine node1
#
127.0.0.1      localhost
10.22.98.43     node1
10.22.98.44     node2
10.22.98.165    loghost_node1
10.22.98.166    loghost_node2

Use dsedit to add entries to the interfaces file. If the interfaces entries already exist, modify them to work for fail over.

See the Utility Guide for information about dsedit.