Centos5 MySQL-MMMconfiguration问题

我正在为我们的主 – 主 – 从复制系统configurationmuli-master复制pipe理器。 复制系统的版本是MySQL5.5.15 PHP 5.3.8 MySQL-MMM 2.2.1。

configuration文件是:/etc/mysql-mmm/mmm_common.conf

active_master_role writer <host default> cluster_interface eth0 pid_path /var/run/mmm_agentd.pid bin_path /usr/lib/mysql-mmm/ replication_user mmm_replication replication_password password agent_user mmm_agent agent_password password </host> <host node5> ip 49.212.101.135 mode master peer node6 </host> <host node6> ip 49.212.101.136 mode master peer node5 </host> <host node7> ip 49.212.101.137 mode slave </host> <role writer> hosts node5,node6 ips 49.212.101.140 mode exclusive </role> <role reader> hosts node5,node6,node7 ips 49.212.101.132,49.212.101.133,49.212.101.139 mode balanced </role> 

以下是mmm_control检查所有命令的状态;

 [root@node4 ~]# mmm_control checks all node7 ping [last change: 2011/09/24 20:20:16] OK node7 mysql [last change: 2011/09/24 20:20:16] OK node7 rep_threads [last change: 2011/09/24 20:20:16] OK node7 rep_backlog [last change: 2011/09/24 20:20:16] OK: Backlog is null node5 ping [last change: 2011/09/24 20:20:16] OK node5 mysql [last change: 2011/09/24 20:20:16] OK node5 rep_threads [last change: 2011/09/24 20:20:16] OK node5 rep_backlog [last change: 2011/09/24 20:20:16] OK: Backlog is null node6 ping [last change: 2011/09/24 20:20:16] OK node6 mysql [last change: 2011/09/24 20:20:16] OK node6 rep_threads [last change: 2011/09/24 20:20:16] OK node6 rep_backlog [last change: 2011/09/24 20:20:16] OK: Backlog is null 

以下是mmm_control show命令的结果;

 [root@node4 ~]# mmm_control show node5(49.212.101.135) master/ONLINE. Roles: reader(49.212.101.133), writer(49.212.101.140) node6(49.212.101.136) master/ONLINE. Roles: reader(49.212.101.132) node7(49.212.101.137) slave/ONLINE. Roles: reader(49.212.101.139) 

我的问题是作家贵宾(49.212.101.140),即我ping平凡作家贵宾,但失败,为什么?

 [root@node4 ~]# ping 49.212.101.140 PING 49.212.101.140 (49.212.101.140) 56(84) bytes of data. From 49.212.101.134 icmp_seq=1 Destination Host Unreachable 

至于读者贵宾,ping可以;

 [root@node4 ~]# ping 49.212.101.133 PING 49.212.101.133 (49.212.101.133) 56(84) bytes of data. 64 bytes from 49.212.101.133: icmp_seq=1 ttl=64 time=3.02 ms 64 bytes from 49.212.101.133: icmp_seq=2 ttl=64 time=1.35 ms 

平安到作家贵宾是失败的,为什么? 但是,ping读者vips是可以的。

请告诉我什么是错的。 谢谢你,先生。

稍后添加以下testing状态;

至于上面的错误(?),我尝试了下面的命令。

[root @ node4〜]#mmm_control move_role writer node6

OK:angular色“writer”已经从“node5”移动到“node6”。 现在,您可以等待一段时间,并检查新的angular色信息!

[root @ node4〜]#mmm_control show node5(49.212.101.135)master / ONLINE。 angular色:读者(49.212.101.132)node6(49.212.101.136)master / ONLINE。 angular色:读者(49.212.101.139),作家(49.212.101.140)node7(49.212.101.137)奴隶/ ONLINE。 angular色:读者(49.212.101.133)

[root @ node4〜]#ping 49.212.101.140 PING 49.212.101.140(49.212.101.140)56(84)字节的数据。 来自49.212.101.140的64字节:icmp_seq = 1 ttl = 64时间= 2.05ms来自49.212.101.140的64字节:icmp_seq = 2ttl = 64时间= 1.09ms来自49.212.101.140的64字节:icmp_seq = 3tl = 64时间= 1.52女士

至于node6写入器ping是好的,但是当写入器节点改变为node5 #mmm_control move-role node5时,mmm_control显示状态似乎是OK,但ping不可达;

[root @ node4〜]#mmm_control move_role writer node5

OK:angular色“writer”已经从“node6”移动到“node5”。 现在,您可以等待一段时间,并检查新的angular色信息!

[root @ node4〜]#mmm_control show node5(49.212.101.135)master / ONLINE。 angular色:读者(49.212.101.132),作家(49.212.101.140)node6(49.212.101.136)主/在线。 angular色:读者(49.212.101.139)node7(49.212.101.137)从/ ONLINE。 angular色:读者(49.212.101.133)

root @ node4〜]#ping 49.212.101.140 PING 49.212.101.140(49.212.101.140)56(84)字节的数据。 来自49.212.101.134 icmp_seq = 2目标主机无法访问

我觉得这在我看来是mmm2.2.1的一个致命错误。