The interfaces file is for the primary and secondary companions must include entries for both companions. For example, the interfaces file for the servers used in the examples in this manual must have entries for both MONEY1 and PERSONNEL1. 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 (lower case L) parameter of the scrgadm command used to add a SUNW.LogicalHostname resource when you configured Adaptive Server to work with the Sun Cluster 3.0 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, you must modify them to work for failover.
See the Adaptive Server Enterprise Utility Guide for information about dsedit.