masterha_check_ssh 日志输出
[root@MHA-Manager ~]# masterha_check_repl --conf=/etc/mha/app1.conf
Thu Oct 22 21:37:09 2020 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Thu Oct 22 21:37:09 2020 - [info] Reading application default configuration from /etc/mha/app1.conf..
Thu Oct 22 21:37:09 2020 - [info] Reading server configuration from /etc/mha/app1.conf..
Thu Oct 22 21:37:10 2020 - [info] MHA::MasterMonitor version 0.58.
Thu Oct 22 21:37:15 2020 - [info] GTID failover mode = 1
Thu Oct 22 21:37:15 2020 - [info] Dead Servers:
Thu Oct 22 21:37:15 2020 - [info] Alive Servers:
Thu Oct 22 21:37:15 2020 - [info] 192.168.124.201(192.168.124.201:3306)
Thu Oct 22 21:37:15 2020 - [info] 192.168.124.202(192.168.124.202:3306)
Thu Oct 22 21:37:15 2020 - [info] 192.168.124.203(192.168.124.203:3306)
Thu Oct 22 21:37:15 2020 - [info] Alive Slaves:
Thu Oct 22 21:37:15 2020 - [info] 192.168.124.202(192.168.124.202:3306) Version=5.7.26-log (oldest major version between slaves) log-bin:enabled
Thu Oct 22 21:37:15 2020 - [info] GTID ON
Thu Oct 22 21:37:15 2020 - [info] Replicating from 192.168.124.201(192.168.124.201:3306)
Thu Oct 22 21:37:15 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Thu Oct 22 21:37:15 2020 - [info] 192.168.124.203(192.168.124.203:3306) Version=5.7.26-log (oldest major version between slaves) log-bin:enabled
Thu Oct 22 21:37:15 2020 - [info] GTID ON
Thu Oct 22 21:37:15 2020 - [info] Replicating from 192.168.124.201(192.168.124.201:3306)
Thu Oct 22 21:37:15 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Thu Oct 22 21:37:15 2020 - [info] Current Alive Master: 192.168.124.201(192.168.124.201:3306)
Thu Oct 22 21:37:15 2020 - [info] Checking slave configurations..
Thu Oct 22 21:37:15 2020 - [info] read_only=1 is not set on slave 192.168.124.202(192.168.124.202:3306).
Thu Oct 22 21:37:15 2020 - [info] read_only=1 is not set on slave 192.168.124.203(192.168.124.203:3306).
Thu Oct 22 21:37:15 2020 - [info] Checking replication filtering settings..
Thu Oct 22 21:37:15 2020 - [info] binlog_do_db= , binlog_ignore_db=
Thu Oct 22 21:37:15 2020 - [info] Replication filtering check ok.
Thu Oct 22 21:37:15 2020 - [info] GTID (with auto-pos) is supported. Skipping all SSH and Node package checking.
Thu Oct 22 21:37:15 2020 - [info] Checking SSH publickey authentication settings on the current master..
Thu Oct 22 21:37:15 2020 - [info] HealthCheck: SSH to 192.168.124.201 is reachable.
Thu Oct 22 21:37:15 2020 - [info]
192.168.124.201(192.168.124.201:3306) (current master)
+--192.168.124.202(192.168.124.202:3306)
+--192.168.124.203(192.168.124.203:3306)
Thu Oct 22 21:37:15 2020 - [info] Checking replication health on 192.168.124.202..
Thu Oct 22 21:37:15 2020 - [info] ok.
Thu Oct 22 21:37:15 2020 - [info] Checking replication health on 192.168.124.203..
Thu Oct 22 21:37:15 2020 - [info] ok.
Thu Oct 22 21:37:15 2020 - [info] Checking master_ip_failover_script status:
Thu Oct 22 21:37:15 2020 - [info] /etc/mha/master_ip_failover --command=status --ssh_user=root --orig_master_host=192.168.124.201 --orig_master_ip=192.168.124.201 --orig_master_port=3306
IN SCRIPT TEST====/sbin/ifconfig eth0:3 down==/sbin/ifconfig eth0:3 192.168.124.99 netmask 255.255.255.255 ;/sbin/arping -I eth0 -c 3 -s 192.168.124.99 192.168.124.1 >/dev/null 2>&1===
Checking the Status of the script.. OK
SIOCSIFADDR: No such device
eth0:3: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
Thu Oct 22 21:37:16 2020 - [info] OK.
Thu Oct 22 21:37:16 2020 - [warning] shutdown_script is not defined.
Thu Oct 22 21:37:16 2020 - [info] Got exit code 0 (Not master dead).
MySQL Replication Health is OK.


创建时间:2021-12-22 11:30
넶浏览量:0