Previous Topic: How to Prepare for a Data Repository Installation - Single NodeNext Topic: Configure the Sudo User Account for Data Repository (Optional)


Set a Unique Hostname for Each Data Repository Host

Set a unique hostname for each computer where you plan to install Data Repository. Three unique hostnames are required in a cluster installation.

Follow these steps:

  1. As the root user, log in to each computer where you plan to install Data Repository and verify the unique hostname on each computer.

    The hostname for each computer must be associated with the IP address and not the loopback address of 127.0.0.1.

  2. Verify that the following lines appear in the /etc/hosts file on each computer:
    Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    IP address of your host YourHostName YourHostName.domain
    
  3. If the hostname required any changes, type the following command after you make the changes:
    service network restart
    

    The /etc/hosts file is configured correctly.

    The unique host name is set.

  4. (Cluster installations only) The hostnames of all hosts in the cluster must resolve correctly. If the hostname resolution is incorrect, the Data Repository cluster does not install or work properly. All participating hosts in the cluster must use static IP or permanently-leased DHCP addresses. Set up the /etc/hosts file on each of the three hosts you selected for the cluster. The hosts file must contain entries for all three hosts in the cluster.

    For example, if the hosts in the cluster are named host01, host02, and host03, the /etc/hosts file on each host resembles the following example:

    127.0.0.1 localhost.localdomain localhost 
    192.168.13.128 host01.domain host01 
    192.168.13.129 host02.domain host02 
    192.168.13.130 host03.domain host03
    

    Note: Do not remove the loopback address (127.0.0.1) line. The local Data Repository hostname cannot be on the 127.0.0.1 line. Also, do not use the loopback address or localhost name when you are defining hosts in the cluster.

  5. Verify that hostname resolution works for each host in the cluster.

    For example, on host01, the following syntax is correct:

    $ /bin/hostname -f 
    host01
    

    Hostname resolution is configured.

More information:

How to Prepare for a Data Repository Installation - Single Node

How to Prepare for a Data Repository Installation - Cluster