How to change the hostname of a system with Volume Manager and VCS installed. (Solaris)
2) Modify the following files on the node that is being changed (change old hostname to new)
OS hostname:
/etc/inet/hostsAs well as any site determined files for changing OS hostname as appropriate.
It is suggested to reboot the server at this point to validate that the OS is fully functional with the new hostname. It is expected that the cluster will restart and various VCS utilities (including 'lltconfig -vvn' and 'hastatus -sum') will report the old name.
3) Stop the cluster and offline all service groups within the cluster:
hastop -all
4) Modify the following files on the node that is being changed (change old hostname to new)
VCS components and configuration:
/etc/llttab
(if the "set-node" entry refers to the sysname file, don't change it here)
/etc/VRTSvcs/conf/sysname (it may or may not exist, depending on the configuration)
/etc/VRTSvcs/conf/config/main.cf
5) Modify the following files on the rest of the nodes in the cluster (change old hostname to new)
VCS components and configuration:
/etc/llthosts
6) Use grep on the changed host to validate that no occurrences of the old hostname exist in the main.cf configuration file.
grep
This should return to a # prompt without output.
7) Execute the following command on the changed host to validate the syntax of main.cf
hacf -verify /etc/VRTSvcs/conf/config
8) Copy /etc/VRTSvcs/conf/config/main.cf to the other cluster nodes.
9) Update Volume Manager with new hostname.
vxdctl hostid
10) Verify that the /etc/vx/volboot file has been updated with the new hostname.
grep hostid /etc/vx/volboot
11) Reboot the system (it may be advised to boot the other node(s) to validate a complete successful startup of the cluster.