mha安装报错 [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln361] None of slaves can be master. Check failover configuration file or log-bin settings in my.cnf

查找资料

参考 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

没有出现这个报错

原文地址:https://www.cnblogs.com/weifeng1463/p/8677766.html

时间: 2024-11-07 23:36:02

mha安装报错 [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln361] None of slaves can be master. Check failover configuration file or log-bin settings in my.cnf的相关文章

cocoapods 安装报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

cocoapods 安装报错 ERROR:  While executing gem ... (Errno::EPERM)     Operation not permitted - /usr/bin/xcodeproj 执行下面语句安装即可: sudo gem install -n /usr/local/bin cocoapods

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory

Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API. 本文为大家讲解的是Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法,感兴趣的同学参考下. 错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or

sendEmail报错:at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm

sendEmail发邮件的时候,出现的报错,然后查阅了很多资料 在http://caspian.dotconf.net/menu/Software/SendEmail/ 上找到了 下面这段话 Q: I get the error "invalid SSL_version specified at /System/Library/Perl/Extras/5.16/IO/Socket/SSL.pm line 332.a on my Apple. What do I do?A: Here's what

yum安装报错error: unpacking of archive failed on file /usr/bin/xxxx: cpio: open Failed

Bash漏洞爆出来了,赶紧更新一下补丁,#yum -y update bash 报错了 error: unpacking of archive failed on file /usr/bin/bashbug-64;54254708: cpio: open 参考了网上资料,原来是以前加固时给/usr/bin加了i权限 # lsattr /usr | grep bin ----i-----I-- /usr/bin # chattr -i /usr/bin 然后yum安装就OK了 参考资料:http:

yum安装报错“Error: xz compression not available”

在测试服务器进行docker学习,有些centos7软件安装上和自己的服务器不兼容所以导致yun下载软件时报错:Error: xz compression not available 对于报错解决办法: rm -fr /var/cache/yum/x86_64/6/epel/ rm -rf /etc/yum.repos.d/epel* 重新安装epel源和base源 wget -O/etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.co

glusterfs本地yum源安装报错Error: Package:

报错如下 --> Finished Dependency Resolution Error: Package: glusterfs-server-3.4.7-1.el6.x86_64 (glusterfs) Requires: glusterfs-cli = 3.4.7-1.el6 Available: glusterfs-cli-3.4.7-1.el6.x86_64 (glusterfs) glusterfs-cli = 3.4.7-1.el6 Installing: glusterfs-cl

python3 pip 安装Scrapy在win10 安装报错error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

问题描述 当前环境win10,python_3.6.1,64位. 在windows下,在dos中运行pip install Scrapy报错: building 'twisted.test.raiser' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/vis

python3.5 安装报错error: Unable to find vcvarsall.bat

报这个错误的原因: 百度了一下,大致的意思是,python的Setup需要调用一个vcvarsall.bat的文件,而文件需要安装c++编程环境才会有,如下图所示,所以要安装一个vs2014以上的版本 因为安装vs是为了获取一个c++的环境里面的一个文件,所以安装vs时有必要勾选上如图所示: 安装完成之后我们再次安装scrapy pip install scrapy 引用没有报错,就成功了,开始爬虫之旅了,嘿嘿

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法

错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc required"make[1]: *** [adlist.o] Error 1make[1]: Leaving directory `/data0/src/redis-2.6.2/src