CRITICAL:VIP192.168.1.100notfoundonMaster!-古蔺大橙子建站
RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
CRITICAL:VIP192.168.1.100notfoundonMaster!

1、环境描述
MHA
MariaDB 10.1

成都创新互联公司-专业网站定制、快速模板网站建设、高性价比颍东网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式颍东网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖颍东地区。费用合理售后完善,十多年实体公司更值得信赖。

2、报错信息
MHA管理报错信息如下:
tail -f /var/log/masterha/manager.log
CRITICAL: VIP 192.168.1.100 not found on Master!
Mon Sep 10 10:08:01 2018 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln226] Failed to get master_ip_failover_script status with return code 1:0.
Mon Sep 10 10:08:01 2018 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln424] Error happened on checking configurations. at /usr/local/bin/masterha_manager line 50
Mon Sep 10 10:08:01 2018 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln523] Error happened on monitoring servers.
Mon Sep 10 10:08:01 2018 - [info] Got exit code 1 (Not master dead).

3、处理方法
查看网卡接口,确认VIP,执行以下命令。
ip addr add 192.168.56.105/32 dev eth2

4、再次查看日志

tail -f /var/log/masterha/manager.log
部分略.................
Mon Sep 10 10:16:05 2018 - [info] Slaves settings check done.
Mon Sep 10 10:16:05 2018 - [info]
master(192.168.56.101:3306) (current master)
+--slave1(192.168.56.102:3306)
+--slave2(192.168.56.103:3306)

Mon Sep 10 10:16:05 2018 - [info] Checking master_ip_failover_script status:
Mon Sep 10 10:16:05 2018 - [info] /usr/local/bin/master_ip_failover --command=status --ssh_user=root --orig_master_host=master --orig_master_ip=192.168.56.101 --orig_master_port=3306
inet 192.168.56.105/32 scope global eth2
INFO: VIP 192.168.1.100 found on Master
Mon Sep 10 10:16:05 2018 - [info] OK.
Mon Sep 10 10:16:05 2018 - [warning] shutdown_script is not defined.
Mon Sep 10 10:16:05 2018 - [info] Set master ping interval 1 seconds.
Mon Sep 10 10:16:05 2018 - [warning] secondary_check_script is not defined. It is highly recommended setting it to check master reachability from two or more routes.
Mon Sep 10 10:16:05 2018 - [info] Starting ping health check on master(192.168.56.101:3306)..
Mon Sep 10 10:16:05 2018 - [info] Ping(CONNECT) succeeded, waiting until MySQL doesn't respond..


网站标题:CRITICAL:VIP192.168.1.100notfoundonMaster!
网页网址:http://scgulin.cn/article/ppeiod.html