zhufeng518 发表于 2018-9-29 07:32:38

Centos 6.5 安装配置Mysql MHA

#masterha_check_repl --conf=/usr/local/mha/mha.cnf  
Mon Feb 22 10:30:49 2016 - Global configuration file /etc/masterha_default.cnf not found. Skipping.
  
Mon Feb 22 10:30:49 2016 - Reading application default configurations from /usr/local/mha/mha.cnf..
  
Mon Feb 22 10:30:49 2016 - Reading server configurations from /usr/local/mha/mha.cnf..
  
Mon Feb 22 10:30:49 2016 - MHA::MasterMonitor version 0.56.
  
Mon Feb 22 10:30:50 2016 - Dead Servers:
  
Mon Feb 22 10:30:50 2016 - Alive Servers:
  
Mon Feb 22 10:30:50 2016 -    192.168.253.241(192.168.253.241:3306)
  
Mon Feb 22 10:30:50 2016 -    192.168.253.242(192.168.253.242:3306)
  
Mon Feb 22 10:30:50 2016 -    192.168.253.243(192.168.253.243:3306)
  
Mon Feb 22 10:30:50 2016 - Alive Slaves:
  
Mon Feb 22 10:30:50 2016 -    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 -    Replicating from 192.168.253.241(192.168.253.241:3306)
  
Mon Feb 22 10:30:50 2016 -    Primary candidate for the new Master (candidate_master is set)
  
Mon Feb 22 10:30:50 2016 -    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 -    Replicating from 192.168.253.241(192.168.253.241:3306)
  
Mon Feb 22 10:30:50 2016 -    Not candidate for the new Master (no_master is set)
  
Mon Feb 22 10:30:50 2016 - Current Alive Master: 192.168.253.241(192.168.253.241:3306)
  
Mon Feb 22 10:30:50 2016 - Checking slave configurations..
  
Mon Feb 22 10:30:50 2016 - read_only=1 is not set on slave 192.168.253.242(192.168.253.242:3306).
  
Mon Feb 22 10:30:50 2016 - 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 - 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 - Checking replication filtering settings..
  
Mon Feb 22 10:30:50 2016 - binlog_do_db= , binlog_ignore_db=
  
Mon Feb 22 10:30:50 2016 - Replication filtering check ok.
  
Mon Feb 22 10:30:50 2016 - Starting SSH connection tests..
  
Mon Feb 22 10:30:51 2016 - All SSH connection tests passed successfully.
  
Mon Feb 22 10:30:51 2016 - Checking MHA Node version..
  
Mon Feb 22 10:30:53 2016 - Version check ok.
  
Mon Feb 22 10:30:53 2016 - Checking SSH publickey authentication settings on the current master..
  
Mon Feb 22 10:30:53 2016 - HealthCheck: SSH to 192.168.253.241 is reachable.
  
Mon Feb 22 10:30:53 2016 - Master MHA Node version is 0.54.
  
Mon Feb 22 10:30:53 2016 - Checking recovery script configurations on the current master..
  
Mon Feb 22 10:30:53 2016 -    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 -    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 - Master setting check done.
  
Mon Feb 22 10:30:54 2016 - Checking SSH publickey authentication and checking recovery script configurations on all alive slave servers..
  
Mon Feb 22 10:30:54 2016 -    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 -    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 -    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 -    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 - Slaves settings check done.
  
Mon Feb 22 10:30:57 2016 -
  
192.168.253.241 (current master)
  
+--192.168.253.242
  
+--192.168.253.243
  

  
Mon Feb 22 10:30:57 2016 - Checking replication health on 192.168.253.242..
  
Mon Feb 22 10:30:57 2016 - ok.
  
Mon Feb 22 10:30:57 2016 - Checking replication health on 192.168.253.243..
  
Mon Feb 22 10:30:57 2016 - ok.
  
Mon Feb 22 10:30:57 2016 - master_ip_failover_script is not defined.
  
Mon Feb 22 10:30:57 2016 - shutdown_script is not defined.
  
Mon Feb 22 10:30:57 2016 - Got exit code 0 (Not master dead).
  

  
MySQL Replication Health is OK.


页: [1]
查看完整版本: Centos 6.5 安装配置Mysql MHA