亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4074 | 回復(fù): 1
打印 上一主題 下一主題

[系統(tǒng)管理] mysql 5.6 Mha 問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2018-01-11 20:33 |只看該作者 |倒序?yàn)g覽
各位網(wǎng)友好,因項(xiàng)目需要搭建mysql 5.6 MHA 在執(zhí)行 masterha_check_ssh 順利完成,
但執(zhí)行masterha_check_repl 檢查復(fù)制環(huán)境時報(bào)錯

[root@mydb-master-active ~]# masterha_check_repl --conf=/etc/mha/app1.cnf
Thu Jan 11 20:27:58 2018 - [info] Reading default configuration from /etc/masterha_default.cnf..
Thu Jan 11 20:27:58 2018 - [info] Reading application default configuration from /etc/mha/app1.cnf..
Thu Jan 11 20:27:58 2018 - [info] Reading server configuration from /etc/mha/app1.cnf..
Thu Jan 11 20:27:58 2018 - [info] MHA::MasterMonitor version 0.56.
Thu Jan 11 20:27:58 2018 - [info] GTID failover mode = 0
Thu Jan 11 20:27:58 2018 - [info] Dead Servers:
Thu Jan 11 20:27:58 2018 - [info] Alive Servers:
Thu Jan 11 20:27:58 2018 - [info]   192.168.1.101(192.168.1.101:3306)
Thu Jan 11 20:27:58 2018 - [info]   192.168.1.102(192.168.1.102:3306)
Thu Jan 11 20:27:58 2018 - [info]   192.168.1.103(192.168.1.103:3306)
Thu Jan 11 20:27:58 2018 - [info]   192.168.1.104(192.168.1.104:3306)
Thu Jan 11 20:27:58 2018 - [info] Alive Slaves:
Thu Jan 11 20:27:58 2018 - [info]   192.168.1.102(192.168.1.102:3306)  Version=5.6.38-log (oldest major version between slaves) log-bin:enabled
Thu Jan 11 20:27:58 2018 - [info]     Replicating from 192.168.1.101(192.168.1.101:3306)
Thu Jan 11 20:27:58 2018 - [info]     Primary candidate for the new Master (candidate_master is set)
Thu Jan 11 20:27:58 2018 - [info]   192.168.1.103(192.168.1.103:3306)  Version=5.6.38-log (oldest major version between slaves) log-bin:enabled
Thu Jan 11 20:27:58 2018 - [info]     Replicating from 192.168.1.101(192.168.1.101:3306)
Thu Jan 11 20:27:58 2018 - [info]     Primary candidate for the new Master (candidate_master is set)
Thu Jan 11 20:27:58 2018 - [info]   192.168.1.104(192.168.1.104:3306)  Version=5.6.38-log (oldest major version between slaves) log-bin:enabled
Thu Jan 11 20:27:58 2018 - [info]     Replicating from 192.168.1.101(192.168.1.101:3306)
Thu Jan 11 20:27:58 2018 - [info]     Primary candidate for the new Master (candidate_master is set)
Thu Jan 11 20:27:58 2018 - [info] Current Alive Master: 192.168.1.101(192.168.1.101:3306)
Thu Jan 11 20:27:58 2018 - [info] Checking slave configurations..
Thu Jan 11 20:27:58 2018 - [info]  read_only=1 is not set on slave 192.168.1.102(192.168.1.102:3306).
Thu Jan 11 20:27:58 2018 - [warning]  relay_log_purge=0 is not set on slave 192.168.1.102(192.168.1.102:3306).
Thu Jan 11 20:27:58 2018 - [info]  read_only=1 is not set on slave 192.168.1.103(192.168.1.103:3306).
Thu Jan 11 20:27:58 2018 - [warning]  relay_log_purge=0 is not set on slave 192.168.1.103(192.168.1.103:3306).
Thu Jan 11 20:27:58 2018 - [info]  read_only=1 is not set on slave 192.168.1.104(192.168.1.104:3306).
Thu Jan 11 20:27:58 2018 - [warning]  relay_log_purge=0 is not set on slave 192.168.1.104(192.168.1.104:3306).
Thu Jan 11 20:27:58 2018 - [info] Checking replication filtering settings..
Thu Jan 11 20:27:58 2018 - [info]  binlog_do_db= , binlog_ignore_db=
Thu Jan 11 20:27:58 2018 - [info]  Replication filtering check ok.
Thu Jan 11 20:27:58 2018 - [info] GTID (with auto-pos) is not supported
Thu Jan 11 20:27:58 2018 - [info] Starting SSH connection tests..
Thu Jan 11 20:28:01 2018 - [info] All SSH connection tests passed successfully.
Thu Jan 11 20:28:01 2018 - [info] Checking MHA Node version..
Thu Jan 11 20:28:01 2018 - [info]  Version check ok.
Thu Jan 11 20:28:01 2018 - [info] Checking SSH publickey authentication settings on the current master..
Thu Jan 11 20:28:01 2018 - [info] HealthCheck: SSH to 192.168.1.101 is reachable.
Thu Jan 11 20:28:01 2018 - [info] Master MHA Node version is 0.56.
Thu Jan 11 20:28:01 2018 - [info] Checking recovery script configurations on 192.168.1.101(192.168.1.101:3306)..
Thu Jan 11 20:28:01 2018 - [info]   Executing command: save_binary_logs --command=test --start_pos=4 --binlog_dir=/data/mysql/logs/binlog --output_file=/etc/mha/save_binary_logs_test --manager_version=0.56 --start_file=binlog.000006
Thu Jan 11 20:28:01 2018 - [info]   Connecting to root@192.168.1.101(192.168.1.101:22)..
  Creating /etc/mha if not exists..    ok.
  Checking output directory is accessible or not..
   ok.
  Binlog found at /data/mysql/logs/binlog, up to binlog.000006
Thu Jan 11 20:28:01 2018 - [info] Binlog setting check done.
Thu Jan 11 20:28:01 2018 - [info] Checking SSH publickey authentication and checking recovery script configurations on all alive slave servers..
Thu Jan 11 20:28:01 2018 - [info]   Executing command : apply_diff_relay_logs --command=test --slave_user='root' --slave_host=192.168.1.102 --slave_ip=192.168.1.102 --slave_port=3306 --workdir=/etc/mha --target_version=5.6.38-log --manager_version=0.56 --relay_log_info=/data/mysql/logs/relaylog/relay-log.info  --relay_dir=/data/mysql/data/  --slave_pass=xxx
Thu Jan 11 20:28:01 2018 - [info]   Connecting to root@192.168.1.102(192.168.1.102:22)..
  Checking slave recovery environment settings..
    Opening /data/mysql/logs/relaylog/relay-log.info ... ok.
    Relay log found at /data/mysql/logs/relaylog, up to relaylog.000010
    Temporary relay log file is /data/mysql/logs/relaylog/relaylog.000010
    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.
Thu Jan 11 20:28:02 2018 - [info]   Executing command : apply_diff_relay_logs --command=test --slave_user='root' --slave_host=192.168.1.103 --slave_ip=192.168.1.103 --slave_port=3306 --workdir=/etc/mha --target_version=5.6.38-log --manager_version=0.56 --relay_log_info=/data/mysql/logs/relaylog/relay-log.info  --relay_dir=/data/mysql/data/  --slave_pass=xxx
Thu Jan 11 20:28:02 2018 - [info]   Connecting to root@192.168.1.103(192.168.1.103:22)..
  Checking slave recovery environment settings..
    Opening /data/mysql/logs/relaylog/relay-log.info ... ok.
    Relay log found at /data/mysql/logs/relaylog, up to relaylog.000009
    Temporary relay log file is /data/mysql/logs/relaylog/relaylog.000009
    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.
Thu Jan 11 20:28:02 2018 - [info]   Executing command : apply_diff_relay_logs --command=test --slave_user='root' --slave_host=192.168.1.104 --slave_ip=192.168.1.104 --slave_port=3306 --workdir=/etc/mha --target_version=5.6.38-log --manager_version=0.56 --relay_log_info=/data/mysql/logs/relaylog/relay-log.info  --relay_dir=/data/mysql/data/  --slave_pass=xxx
Thu Jan 11 20:28:02 2018 - [info]   Connecting to root@192.168.1.104(192.168.1.104:22)..
  Checking slave recovery environment settings..
    Opening /data/mysql/logs/relaylog/relay-log.info ... ok.
    Relay log found at /data/mysql/logs/relaylog, up to relaylog.000010
    Temporary relay log file is /data/mysql/logs/relaylog/relaylog.000010
    Testing mysql connection and privileges..sh: mysql: command not found
mysql command failed with rc 127:0!
at /usr/bin/apply_diff_relay_logs line 375
        main::check() called at /usr/bin/apply_diff_relay_logs line 497
        eval {...} called at /usr/bin/apply_diff_relay_logs line 475
        main::main() called at /usr/bin/apply_diff_relay_logs line 120
Thu Jan 11 20:28:02 2018 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln205] Slaves settings check failed!
Thu Jan 11 20:28:02 2018 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln413] Slave configuration failed.
Thu Jan 11 20:28:02 2018 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln424] Error happened on checking configurations.  at /usr/bin/masterha_check_repl line 48
Thu Jan 11 20:28:02 2018 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln523] Error happened on monitoring servers.
Thu Jan 11 20:28:02 2018 - [info] Got exit code 1 (Not master dead).

MySQL Replication Health is NOT OK!

搞了好久,一直未解決。請幫助 !。

論壇徽章:
33
榮譽(yù)會員
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-17 06:23:27操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-18 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-24 06:20:0015-16賽季CBA聯(lián)賽之天津
日期:2016-05-06 12:46:59
2 [報(bào)告]
發(fā)表于 2018-01-12 16:12 |只看該作者
回復(fù) 1# jiezai3800

Thu Jan 11 20:28:02 2018 - [info]   Connecting to root@192.168.1.104(192.168.1.104:22)..
  Checking slave recovery environment settings..
    Opening /data/mysql/logs/relaylog/relay-log.info ... ok.
    Relay log found at /data/mysql/logs/relaylog, up to relaylog.000010
    Temporary relay log file is /data/mysql/logs/relaylog/relaylog.000010
    Testing mysql connection and privileges..sh: mysql: command not found
mysql command failed with rc 127:0!
at /usr/bin/apply_diff_relay_logs line 375
        main::check() called at /usr/bin/apply_diff_relay_logs line 497
        eval {...} called at /usr/bin/apply_diff_relay_logs line 475
        main::main() called at /usr/bin/apply_diff_relay_logs line 120

您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP