After changing the hostname, the node is not able to join the veritas cluster.
Following VCS configuration files need to be updated with the new hostname on the localhost after changing the hostname:
/etc/llttab
/etc/VRTSvcs/conf/sysname( if exists )
/etc/llthosts
/etc/VRTSvcs/conf/config/main.cf
On the remaining nodes in the cluster modify the following files to reflect the new hostname:
/etc/llthosts
/etc/VRTSvcs/conf/config/main.cf
To modifymain.cf to reflect the new hostname :
#hastop-local -force
Note: The above command will only stop HAD and will keep the services running.
Now, Edit main.cf using editor....
vi main.cf
Make the changes for new hostname and save the file.
In orderto have the node to join the cluster in 2 node cluster environment, following steps need to be executed :
For example,the node names were SysA and SysB. (Here SysB is the new name which has been changed from
SysB_old from the Operating System side and uname -a shows the new hostname asSysB.)
After modifying the main.cf on node SysA with the above changes, unconfigure GAB and LLT on both the nodes:
#gabconfig-U
#lltconfig-U
Start LLTand GAB:
#lltconfig-c
#sh/etc/gabtab
On nodeSysA:
#hastart
On nodeSysB:
#hastart
#gabconfig-a (This should show both port a and h with membership of 01. )