问题描述
采用MHA方式做MySQL高可用
[root@node30 /]# masterha_check_repl -conf=/etc/masterha/app1.cnf
Bareword "FIXME_xxx" not allowed while "strict subs" in use at /usr/local/bin/master_ip_failover line 103.
Execution of /usr/local/bin/master_ip_failover aborted due to compilation errors.
Thu Sep 17 04:54:33 2020 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln229] Failed to get master_ip_failover_script status with return code 255:0.
Thu Sep 17 04:54:33 2020 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations. at /usr/local/bin/masterha_check_repl line 48.
Thu Sep 17 04:54:33 2020 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers.
Thu Sep 17 04:54:33 2020 - [info] Got exit code 1 (Not master dead).
MySQL Replication Health is NOT OK!
解决方案
1、查看文件中103的内容,并注释
vim /usr/local/bin/master_ip_failover
查看文件中103行内容
2、重启
masterha_check_repl -conf=/etc/masterha/app1.cnf
服务正常启动成功