Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I change the names of hosts in a cluster without any service interruption?

0
Posted

How do I change the names of hosts in a cluster without any service interruption?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123