I have two identical storage hosts where the master is the only one the users can access. If the master fails, then I want to manually change the DHCP address, so instead of master
points to 10.10.10.10
it should point to 10.10.10.11
.
There are replication scripts that rely on IP addresses, so if the master changes IP address, then I have to modify the IP in the scripts, so the data is still replicated from the master to the slave.
Question
It is quite an error prone task to switch IP adresses and edit scripts. Is there an common practice how this sort of manual failover is done? E.g. by adding an abstraction layer of some sort?