免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1849 | 回复: 0
打印 上一主题 下一主题

MHA自动切换卡在通过ssh漂移VIP阶段 [复制链接]

论坛徽章:
3
数据库技术版块每日发帖之星
日期:2016-05-26 06:20:00数据库技术版块每日发帖之星
日期:2016-07-07 06:20:00数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-04-26 20:27 |只看该作者 |倒序浏览
最近在部署MHA实现mysql的高可用,其中一个环节就是测试自动切换的VIP漂移。
我如果手动执行ssh 192.168.208.47  “/sbin/ifconfig eth0:3  192.168.208.239”,可以正常修改192.168.208.47的IP信息
但是通过MHA自动调用的时候就一直卡在ssh认证阶段(之前配置过SSH免鉴权),以下为具体ssh过程信息:

IN SCRIPT TEST====sudo /sbin/ifconfig eth0:3 down==sudo /sbin/ifconfig eth0:3 192.168.208.239===

Disabling the VIP on old master: 192.168.208.47
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.208.47 [192.168.208.47] port 22.
debug1: Connection established.
debug1: identity file /home/mysql/.ssh/identity type -1
debug1: identity file /home/mysql/.ssh/identity-cert type -1
debug1: identity file /home/mysql/.ssh/id_rsa type 1
debug1: identity file /home/mysql/.ssh/id_rsa-cert type -1
debug1: identity file /home/mysql/.ssh/id_dsa type -1
debug1: identity file /home/mysql/.ssh/id_dsa-cert type -1
debug1: identity file /home/mysql/.ssh/id_ecdsa type -1
debug1: identity file /home/mysql/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.208.47' is known and matches the RSA host key.
debug1: Found key in /home/mysql/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/mysql/.ssh/identity
debug1: Offering public key: /home/mysql/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.

之后就一直卡在这里,网上找的方法试过很多,但是都没有成功,比如修改/etc/hosts里的主机信息,添加本机和目标机器的IP和主机名
又比如修改/etc/ssh/sshd_config参数,启动TCPKeepAlive  yes,添加UseDns  no,GSSAPIAuthentication 改为no,这些方法都试过,但是就是不行。。。。

请问各位,该如何解决呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP