Changing the host name for a cluster node in PowerHA SystemMirror 7.1.2, or earlier

You cannot change the host name of a cluster node after the cluster is configured. To change the host name of a cluster node, you must first remove the Cluster Aware AIX® (CAA) cluster definition, update PowerHA® SystemMirror® and the AIX operating system configurations, and then synchronize the changes to re-create the CAA cluster with the new host name.

About this task

To change the host name for a cluster node in PowerHA SystemMirror 7.1.2, or earlier, complete the following steps:

Procedure

  1. Stop cluster services by using the Bring resource group offline option.
  2. To remove the CAA cluster, run the rmcluster -f -n clustername command, where clustername is the name of the CAA cluster, on a node in the cluster.
    Note: You can run the lscluster -i command to display the name of the CAA cluster.
  3. To change the host name, complete the following steps:
    1. From the command line, run smit hostname on the cluster node where you want to change the host name. In the SMIT interface, select Set Hostname and enter the new host name.
    2. To change the host name for the COMMUNCATION_PATH variable, complete the following steps:
      1. Enter the following command:
        odmget -q "object = COMMUNICATION_PATH " HACMPnode > tmp1
      2. Edit the tmp1 file and change the value for the corresponding node to the new COMMUNCATION_PATH name.
      3. Enter the following command to update the ODM:
        odmchange -o HACMPnode -q "object = COMMUNICATION_PATH" tmp1
    3. Change the /etc/hosts file for each node in the cluster with the new host name. If your environment is using a domain name system (DNS), you must update the DNS with the new host name.
    4. Change the /etc/cluster/rhosts file and run the refresh -s clcomd command on all cluster nodes.
    5. Optional: To change any of PowerHA SystemMirror configuration settings, such as the node name, run smit sysmirror from the command line.
  4. Verify and synchronize the cluster. This process creates the CAA cluster configuration with the updated host name.
  5. Start cluster services.