mysql-102.cs.uwaterloo.ca
, mysql-104.cs.uwaterloo.ca
, and mysql-106.cs.uwaterloo.ca
mysql.cs.uwaterloo.ca
is the hostname of the service that clients connect to and has the same IP address as the master. (by design, clients cannot connect to the slaves).
host mysql.cs.uwaterloo.ca
will return an IP address which should correspond to one of: mysql-102.cs, mysql-104.cs, mysql-106.cs
. for i in mysql-102.cs mysql-104.cs mysql-106.cs ; do echo ; echo $i ; ssh $i "mysqladmin status processlist" ; done
mysql> show slave status\G
and look for Master_Host
value. On slaves, Master_Host is recognized master. On master, Master_Host should return Empty_set
Restoring Broken Old Master After Failover
: # lxc-info --name mysql-102.cs.uwaterloo.ca
and verify State: STOPPED
. If not stopped, force container stop lxc-stop mysql-102.cs.uwaterloo.ca
and recheck state. Do not proceed until former master is verified stopped.