Modify a Server Hostname - AFS

Install AFS on Multiple Servers

Product
AFS
AFS_Version
7.11
Platform
RHEL
Category
Technical Notes

It is recommended to modify server hostnames according to the environments they host in order to ease identification.

  1. Edit the following file:

    As root user

    /etc/sysconfig/network

  2. Modify the following line:

    NETWORKING=yes
    HOSTNAME=$SERVER_HOSTNAME
    NETWORKING_IPV6=no
    NOZEROCONF=yes

    Where $SERVER_HOSTNAME should be modified in order to reflect the environments hosted on the server.

  3. Run the following command to take the modification into account:

    As root user

    hostname $SERVER_HOSTNAME

In our example, the server hostnames should be modified as follows:

  1. Back-Office and Update-Manager Server Installation
    • IP: 10.0.0.4
    • Hostname: "bo01"
  2. MongoDB Server Installation 1
    • IP: 10.0.0.5
    • Hostname: "mong01"
  3. MongoDB Server Installation 2
    • IP: 10.0.0.6
    • Hostname: "mong02"
  4. MongoDB Server Installation 3
    • IP: 10.0.0.7
    • Hostname: "mong03"
  5. Indexing Server Installation
    • IP: 10.0.0.8
    • Hostname: "idx01"
  6. Front Server Installation 1
    • IP: 10.0.0.9
    • Hostname: "front01"
  7. Front Server Installation 2
    • IP: 10.0.0.10
    • Hostname: "front02"