cancel
Showing results for 
Search instead for 
Did you mean: 

Changing hostname in VCS 5.0

wajima0a
Level 3
Partner Certified
Hello;

We have 4 node cluster with SOlaris 10 and VCS 5.0,since Oracle 10g has some naming issue our DBA wants the hostnames to be changed.
I would like to know the easiest possible way or the DOcument ID from Veritas which talks about changing hostname under VCS.

Thanks for your help in advance.

Best Regards
2 REPLIES 2

Gene_Henriksen
Level 6
Accredited Certified
VCS doesn't really care what the hostname is. VCS uses the /etc/VRTSvcs/conf/syname file to determine the hostname as it pertains to VCS. This file is created at install time.

If the system name is s1.company.com, then the sysname file contains the name s1. If you change the host name to  abc.company.com,  VCS still uses s1 in the sysname file.

If you want to change the name from VCS' perspective, you need to update /etc/llttab, /etc/llthosts, /etc/VRTSvcs/conf/sysname and the main.cf file. If any of the names in these files does not match, you have a problem.

The process would be as follows:
haconf -dump -makero (to make sure the current config is written to disk and the file is  config is closed)
hastop -all -force
modunload both llt and gab (and vxfen if you are using fencing)
edit the files
verify the main.cf with "hacf -verify <dir>"
start LLT (best option is to run the same scripts VCS does)
start  GAB
verify that LLT and GAB are running on all systems with "gabconfig -a"
start vxfen (if used)
then run hastart where you modified the main.cf, followed by hastart on the rest.
gabconfig -a should now show all nodes.



wajima0a
Level 3
Partner Certified
Thanks Gene for your help.I will try to implement this change and ihope it will go through successfully.
 
Thanks ones again.
 
Best Regards;