I have a MySQL-MMM cluster with three database servers (two masters and one slave). Recently replication was broken by someone directly inserting to the slave database servers. After I discovered this I reestablished replication from the db1
system to the db2
and db3
systems. Replication is now running and mmm_control show
is showing the servers as all online:
[root@host ~]# mmm_control show
db1(10.1.0.21) master/ONLINE. Roles: reader(10.1.0.31), writer(10.1.0.30)
db2(10.1.0.22) master/ONLINE. Roles: reader(10.1.0.32)
db3(10.1.0.23) slave/ONLINE. Roles: reader(10.1.0.33)
However when I check all of the status checks, I see that db1
has broken replication:
[root@host ~]# mmm_control checks all
db2 ping [last change: 2010/11/24 03:57:48] OK
db2 mysql [last change: 2010/11/27 03:21:42] OK
db2 rep_threads [last change: 2010/11/27 03:23:19] OK
db2 rep_backlog [last change: 2010/11/24 03:57:48] OK: Backlog is null
db3 ping [last change: 2010/11/24 03:58:15] OK
db3 mysql [last change: 2010/11/27 03:19:21] OK
db3 rep_threads [last change: 2010/11/27 03:23:06] OK
db3 rep_backlog [last change: 2010/11/24 03:58:23] OK: Backlog is null
db1 ping [last change: 2010/11/24 03:57:48] OK
db1 mysql [last change: 2010/11/27 03:22:27] OK
db1 rep_threads [last change: 2010/11/27 02:14:46] ERROR: Replication is broken
db1 rep_backlog [last change: 2010/11/24 03:58:00] OK: Backlog is null
What do I need to do to fix replication for db1
since it appears that the databases are in sync?