Things to do when you rename a host for lease return. You must be concerned if you move to a new hardware that you get a new veritas license. In this example, HOSTNAME and HOSTNAME-new change places (HOSTNAME-new becomes HOSTNAME, HOSTNAME becomes HOSTNAME-old). Merge the following directory: /usr/local/* Watch for newer versions of files to go here if available. If VCS One node in cluster haconf -dump -makero #not necessary, but good insurance hastop -all -force vi /etc/VRTSvcs/conf/config/main.cf [scp|rcp] /etc/VRTSvcs/conf/config/main.cf \ OTHERNODES:/etc/VRTSvcs/conf/config/main.cf All nodes in cluster gabconfig -U lltconfig -U # you can start LLT,GAB,HA up manually by running # the rc scripts for each of them AFTER all # the VCS files have been edited. vi /etc/VRTSvcs/conf/sysname vi /etc/VRTSvcs/conf/config/main.cf vi /etc/llttab vi /etc/llthosts On HOSTNAME-new vi /etc/nodename #change to HOSTNAME vi /etc/hosts #change to HOSTNAME and change IP vi /etc/netmasks #make sure it is correct vi /etc/defaultrouter #make sure it is correct vi /etc/defaultdomain #make sure it is correct vi /etc/nsswitch.conf #make sure it is correct vi /etc/resolv.conf #make sure it is correct vi /etc/hostname.[le,eri,hme,ge]0 #change to HOSTNAME vi /etc/dumpadm.conf #change to HOSTNAME cd /var/crash; mv HOSTNAME-new HOSTNAME # the following edits 3 files vi /etc/net/*/hosts #change to HOSTNAME # :w to write # :n to goto the next file /etc/inet/ticlts/hosts /etc/inet/ticots/hosts /etc/inet/ticotsord/hosts vi /etc/inet/ipnodes vi /etc/inet/ipnodes #if there and has hostname vi /etc/hosts.allow #if there and has hostname vi /usr/openv/netbackup/bp.conf #change hostname for backup s/w mv /var/crash/HOSTNAME-new /var/crash/HOSTNAME make note in web tool #state the date your moving node into production -Sync cron files - pay attention to: remote and any other non system cron file, otherwise you can ignore differences - but check ROOT, ignore LP -Sync up /etc/passwd, /etc/shadow -Sync up /export/home if it is local -Sync up /etc/mail/aliases if mailserver -Sync up /etc/nis if NISserver -Sync up /var/named if DNS Fix lp printers configs: see the jetadmin.faq on moving queues Do the exact opposite on HOSTNAME vi /etc/nodename #change to HOSTNAME-old vi /etc/hosts #change to HOSTNAME-old and change IP vi /etc/hostname.[le,hme,ge]0 #change to HOSTNAME vi /etc/net/*/hosts #change to HOSTNAME-old, use :w to write, :n to goto next file vi /usr/openv/netbackup/bp.conf #change hostname #stop cron - so jobs won't run kill -9 `ps -ef | grep cron | grep -v grep | awk '{print $2}'` Shutdown both nodes init 0 Rename console ports Do a vxinstall if needed (depends on scenario) Log into DNS server and change DNS change HOSTNAME-new name entry (and reverse) to HOSTNAME-old edit both db.mydomain.com and db.X.X restartnamed -Change netbackup clients if they have changed policies -Fix any ssh for users that need it. -Fix any .rhosts for users that need it. -Fix NIS: hosts, netgroup, aliases -Fix any share trusts on NFS servers (unix and or netapp) -Fix any mail aliases on localhost and relays -Relabel the physical name stickers on hosts. -Let the network team know of the change for HP OpenView up/down monitoring.