How do I change the names of hosts in a cluster without any service interruption?
This discussion assumes that your current machines are named A and B, and you want them to be named C and D respectively after the change. A: Make A (host that will become C) active for all services: hb_takeover. B: /etc/init.d/heartbeat stop; vi /etc/ha.d/ha.cf /etc/ha.d/haresources # add an entry for C and D so 4 hosts are listed B: /etc/init.d/heartbeat start B: hb_takeover A: /etc/init.d/heartbeat stop; vi /etc/ha.d/ha.cf # add an entry for C and D so 4 hosts are listed A: /etc/init.d/heartbeat start A: hostname C # changes the first host’s name # don’t forget to update /etc/hostname to C A: hb_takeover B: /etc/init.d/heartbeat stop; vi /etc/ha.d/ha.cf /etc/ha.d/haresources # remove A and B leaving only C and D from both files B: hostname D # changes the second host’s name, don’t forget to update # /etc/hostname to D B: /etc/init.d/heartbeat start B: hb_takeover A: /etc/init.d/heartbeat stop; vi /etc/ha.d/ha.cf /etc/ha.d/haresources # remove A and B leaving only C and D in both fil