How to change the hostname of a system with Volume Manager and VCS installed. (Solaris)

book

Article ID: 100020691

calendar_today

Updated On:

Description

Problem

How to change the hostname of a system with Volume Manager and VCS installed. (Solaris)

Solution

This is the procedure for changing the host name of a node in a cluster with at least two nodes:

1)  Stop the cluster and offline all service groups within the cluster:

hastop -all
 

2)  Modify the following files on the node that is being changed (change old hostname to new)

OS hostname:

/etc/inet/hosts
/etc/nodename

/etc/hostname.

(ie ...  hostname.bge0)

As 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 /etc/VRTSvcs/conf/config/main.cf

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.

 

Issue/Introduction

How to change the hostname of a system with Volume Manager and VCS installed. (Solaris)