Rate This Document
Findability
Accuracy
Completeness
Readability

Modifying Network Mappings and Host Names

For easy identification and operations, modify the /etc/hosts and /etc/hostname files to change network mappings and host names. Perform the operations in this section on all nodes.

  1. Modify the /etc/hosts file to map a host name to an IP address.
    1. Open the /etc/hosts file.
      vim /etc/hosts
    2. Press i to enter the insert mode. Add the network IP addresses and mapping names of the network IP addresses of all nodes in the Greenplum cluster to the file. Set the network IP addresses and mapping names of the network IP addresses based on actual requirements.
      192.168.2.1 gp-mdw
      192.168.2.2 gp-sdw
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  2. To rename the host name of a node, modify the /etc/hostname file on all nodes.
    1. Open the /etc/hostname file.
    2. Press i to enter the insert mode and add the host names of all nodes to the file.

      Add the following information to the master node:

      gp-mdw

      Add the following information to the segment node:

      gp-sdw
    3. Press Esc, type :wq!, and press Enter to save the file and exit.