Configure Server Hostnames and IP Addresses - AFS

Install AFS on Multiple Servers

Product
AFS
AFS_Version
7.11
Platform
RHEL
Category
Technical Notes

All servers used in the current multiple-server installation must be able to recognize each other.

The hosts file allows to map hostnames to IP addresses.

  1. Edit the following file:

    As root user

    /etc/hosts

  2. Add the following lines:

    127.0.0.1 localhost $LOCAL_SERVER_HOSTNAME
    ::1 localhost $LOCAL_SERVER_HOSTNAME
    $IP_ADDRESS $SERVER_HOSTNAME
    $IP_ADDRESS $SERVER_HOSTNAME
    $IP_ADDRESS $SERVER_HOSTNAME

    Where:

    • $LOCAL_SERVER_HOSTNAME is the hostname of the current server.
    • $IP_ADDRESS is the IP address of all servers used in the current installation. There must be as many lines as there are servers.
    • $SERVER_HOSTNAME is the hostname of all servers used in the current installation. There must be as many lines as there are servers.

In our example, assuming the current server is the one hosting the Back Office environment, the /etc/hosts file should be modified as follows:

127.0.0.1 localhost bo01
::1 localhost bo01
10.0.0.5 mong01
10.0.0.6 mong02
10.0.0.7 mong03
10.0.0.8 idx01
10.0.0.9 front01
10.0.0.10 front02

But on the server hosting the Indexing environment, the /etc/hosts file would be modified as follows:

127.0.0.1 localhost idx01
::1 localhost idx01
10.0.0.4 bo01
10.0.0.5 mong01
10.0.0.6 mong02
10.0.0.7 mong03
10.0.0.9 front01
10.0.0.10 front02