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
- Stop cluster
services by using the Bring resource group offline option.
- 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.
- To change the host name, complete the following steps:
- 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.
- To change the host
name for the COMMUNCATION_PATH variable, complete
the following steps:
- Enter the following command:
odmget -q "object = COMMUNICATION_PATH " HACMPnode > tmp1
- Edit the
tmp1 file and change the value for
the corresponding node to the new COMMUNCATION_PATH name.
- Enter the following command to update the ODM:
odmchange -o HACMPnode -q "object = COMMUNICATION_PATH" tmp1
- 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.
- Change the /etc/cluster/rhosts file
and run the
refresh -s clcomd command on all cluster
nodes.
- Optional: To change any of PowerHA SystemMirror configuration
settings, such as the node name, run
smit sysmirror from
the command line.
- Verify and synchronize
the cluster. This process creates the CAA cluster configuration
with the updated host name.
- Start cluster
services.