|
[root@manager mha4mysql-manager-0.56]# masterha_check_repl --conf=/usr/local/mha/mha.cnf
Mon Feb 22 10:30:49 2016 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Mon Feb 22 10:30:49 2016 - [info] Reading application default configurations from /usr/local/mha/mha.cnf..
Mon Feb 22 10:30:49 2016 - [info] Reading server configurations from /usr/local/mha/mha.cnf..
Mon Feb 22 10:30:49 2016 - [info] MHA::MasterMonitor version 0.56.
Mon Feb 22 10:30:50 2016 - [info] Dead Servers:
Mon Feb 22 10:30:50 2016 - [info] Alive Servers:
Mon Feb 22 10:30:50 2016 - [info] 192.168.253.241(192.168.253.241:3306)
Mon Feb 22 10:30:50 2016 - [info] 192.168.253.242(192.168.253.242:3306)
Mon Feb 22 10:30:50 2016 - [info] 192.168.253.243(192.168.253.243:3306)
Mon Feb 22 10:30:50 2016 - [info] Alive Slaves:
Mon Feb 22 10:30:50 2016 - [info] 192.168.253.242(192.168.253.242:3306) Version=5.6.15-log (oldest major version between slaves) log-bin:enabled
Mon Feb 22 10:30:50 2016 - [info] Replicating from 192.168.253.241(192.168.253.241:3306)
Mon Feb 22 10:30:50 2016 - [info] Primary candidate for the new Master (candidate_master is set)
Mon Feb 22 10:30:50 2016 - [info] 192.168.253.243(192.168.253.243:3306) Version=5.6.15-log (oldest major version between slaves) log-bin:enabled
Mon Feb 22 10:30:50 2016 - [info] Replicating from 192.168.253.241(192.168.253.241:3306)
Mon Feb 22 10:30:50 2016 - [info] Not candidate for the new Master (no_master is set)
Mon Feb 22 10:30:50 2016 - [info] Current Alive Master: 192.168.253.241(192.168.253.241:3306)
Mon Feb 22 10:30:50 2016 - [info] Checking slave configurations..
Mon Feb 22 10:30:50 2016 - [info] read_only=1 is not set on slave 192.168.253.242(192.168.253.242:3306).
Mon Feb 22 10:30:50 2016 - [warning] relay_log_purge=0 is not set on slave 192.168.253.242(192.168.253.242:3306).
Mon Feb 22 10:30:50 2016 - [warning] relay_log_purge=0 is not set on slave 192.168.253.243(192.168.253.243:3306).
Mon Feb 22 10:30:50 2016 - [info] Checking replication filtering settings..
Mon Feb 22 10:30:50 2016 - [info] binlog_do_db= , binlog_ignore_db=
Mon Feb 22 10:30:50 2016 - [info] Replication filtering check ok.
Mon Feb 22 10:30:50 2016 - [info] Starting SSH connection tests..
Mon Feb 22 10:30:51 2016 - [info] All SSH connection tests passed successfully.
Mon Feb 22 10:30:51 2016 - [info] Checking MHA Node version..
Mon Feb 22 10:30:53 2016 - [info] Version check ok.
Mon Feb 22 10:30:53 2016 - [info] Checking SSH publickey authentication settings on the current master..
Mon Feb 22 10:30:53 2016 - [info] HealthCheck: SSH to 192.168.253.241 is reachable.
Mon Feb 22 10:30:53 2016 - [info] Master MHA Node version is 0.54.
Mon Feb 22 10:30:53 2016 - [info] Checking recovery script configurations on the current master..
Mon Feb 22 10:30:53 2016 - [info] Executing command: save_binary_logs --command=test --start_pos=4 --binlog_dir=/data/mysql/ --output_file=/var/tmp/save_binary_logs_test --manager_version=0.56 --start_file=mysql-bin.000004
Mon Feb 22 10:30:53 2016 - [info] Connecting to root@192.168.253.241(192.168.253.241)..
Creating /var/tmp if not exists.. ok.
Checking output directory is accessible or not..
ok.
Binlog found at /data/mysql/, up to mysql-bin.000004
Mon Feb 22 10:30:54 2016 - [info] Master setting check done.
Mon Feb 22 10:30:54 2016 - [info] Checking SSH publickey authentication and checking recovery script configurations on all alive slave servers..
Mon Feb 22 10:30:54 2016 - [info] Executing command : apply_diff_relay_logs --command=test --slave_user='mha_rep' --slave_host=192.168.253.242 --slave_ip=192.168.253.242 --slave_port=3306 --workdir=/var/tmp --target_version=5.6.15-log --manager_version=0.56 --relay_log_info=/data/mysql/relay-log.info --relay_dir=/data/mysql/ --slave_pass=xxx
Mon Feb 22 10:30:54 2016 - [info] Connecting to root@192.168.253.242(192.168.253.242:22)..
Checking slave recovery environment settings..
Opening /data/mysql/relay-log.info ... ok.
Relay log found at /data/mysql, up to slave01-relay-bin.000002
Temporary relay log file is /data/mysql/slave01-relay-bin.000002
Testing mysql connection and privileges..Warning: Using a password on the command line interface can be insecure.
done.
Testing mysqlbinlog output.. done.
Cleaning up test file(s).. done.
Mon Feb 22 10:30:55 2016 - [info] Executing command : apply_diff_relay_logs --command=test --slave_user='mha_rep' --slave_host=192.168.253.243 --slave_ip=192.168.253.243 --slave_port=3306 --workdir=/var/tmp --target_version=5.6.15-log --manager_version=0.56 --relay_log_info=/data/mysql/relay-log.info --relay_dir=/data/mysql/ --slave_pass=xxx
Mon Feb 22 10:30:55 2016 - [info] Connecting to root@192.168.253.243(192.168.253.243:22)..
Checking slave recovery environment settings..
Opening /data/mysql/relay-log.info ... ok.
Relay log found at /data/mysql, up to slave02-relay-bin.000002
Temporary relay log file is /data/mysql/slave02-relay-bin.000002
Testing mysql connection and privileges..Warning: Using a password on the command line interface can be insecure.
done.
Testing mysqlbinlog output.. done.
Cleaning up test file(s).. done.
Mon Feb 22 10:30:57 2016 - [info] Slaves settings check done.
Mon Feb 22 10:30:57 2016 - [info]
192.168.253.241 (current master)
+--192.168.253.242
+--192.168.253.243
Mon Feb 22 10:30:57 2016 - [info] Checking replication health on 192.168.253.242..
Mon Feb 22 10:30:57 2016 - [info] ok.
Mon Feb 22 10:30:57 2016 - [info] Checking replication health on 192.168.253.243..
Mon Feb 22 10:30:57 2016 - [info] ok.
Mon Feb 22 10:30:57 2016 - [warning] master_ip_failover_script is not defined.
Mon Feb 22 10:30:57 2016 - [warning] shutdown_script is not defined.
Mon Feb 22 10:30:57 2016 - [info] Got exit code 0 (Not master dead).
MySQL Replication Health is OK.
|
|
|
|
|
|
|