mha安装报错 [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln361] None of slaves can be mast

Posted Oops!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mha安装报错 [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln361] None of slaves can be mast相关的知识,希望对你有一定的参考价值。

查找资料

参考 http://blog.51cto.com/16769017/1878451

解决方法:


在两个从库上开启二进制日志即可(花了 一天时间,找不到解决方法,最后还是靠自己的理解及测试解决的,骄傲!!)具体配置不在贴上来了。

 

 

实际配置:

mysql master 上:

cat /etc/my.cnf
log
-bin=weifeng1 server_id = 81 socket = /tmp/mysql.sock binlog-do-db = db1

 

slave 01 上面:

cat /etc/my.cnf

log-bin=weifeng2
server_id = 82
socket = /tmp/mysql.sock
binlog-do-db = db1
slave 02 上面:

cat /etc/my.cnf

log-bin=weifeng3
server_id = 83
socket = /tmp/mysql.sock
binlog-do-db = db1

 

Monitro_host上执行  

[[email protected] ~]# masterha_check_repl --conf=/etc/masterha/app1.cnf

没有出现这个报错

以上是关于mha安装报错 [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln361] None of slaves can be mast的主要内容,如果未能解决你的问题,请参考以下文章

MHA 报错:There is no alive slave. We can't do failover

MHA配置报错 unknown variable ‘default-character-set=utf8‘

MHA报错合集~~Binlog setting check failed!和unknown variable ‘default-character-set=utf8‘

MHA常见报错以及解决方法

mha故障切换报错了,漂移成功了,slave指向新master没成功,究竟如何处理!我有点小暴躁!

mha 复制检查报错“There is no alive server. We can't do failover”