[INS-06006] Passwordless SSH connectivity not set up



我是全新安装11.2.0.4RAC出现setup ssh成功,next 验证失败

与升级现在一样:

升级Grid Infrastructure时遭遇[INS-06006] Passwordless SSH connectivity not set up between the following node(s)错误,如下图:

一、环境说明:
DB版本:Oracle 11.2.0.4 
OS版本:Redhat 6.4
二、处理方法
1、使用ssh验证等效性
[grid@jzh03 ~]$ date;ssh jzh03 date
Wed Dec 10 17:06:23 CST 2014
Wed Dec 10 17:06:24 CST 2014
 
[grid@jzh03 ~]$ date;ssh jzh04 date
Wed Dec 10 17:06:51 CST 2014
Wed Dec 10 17:06:51 CST 2014
结果依然报错。
2、修改grid用户密码
[root@jzh03 Desktop]# passwd grid
Changing password for user grid.
New password:
BAD PASSWORD: it is too short
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
结果依然报错。
3、修改.ssh目录
[root@jzh03 grid]# chmod 700 .ssh
[root@jzh03 grid]# ls -la
total 44
drwxr-xr-x  5 grid oinstall 4096 Dec 11 10:48 .
drwxr-xr-x. 4 root root     4096 Dec 11 10:21 ..
-rw-------  1 grid oinstall   66 Dec 11 10:59 .bash_history
-rw-r--r--  1 grid oinstall   18 Aug 29  2012 .bash_logout
-rw-r--r--  1 grid oinstall  472 Dec 11 10:37 .bash_profile
-rw-r--r--  1 grid oinstall  124 Aug 29  2012 .bashrc
drwxr-xr-x  2 grid oinstall 4096 Jul 14  2010 .gnome2
-rw-r--r--  1 grid oinstall  124 Jun 28  2011 .mkshrc
drwxr-xr-x  4 grid oinstall 4096 Nov 13 06:37 .mozilla
drwx------  2 grid oinstall 4096 Dec 11 10:55 .ssh
-rw-------  1 grid oinstall  646 Dec 11 10:37 .viminfo
结果依然报错。
4、删除手工配置的ssh,采用grid infrastructure配置--->依然报错。
5、上MOS查找相关文章,发现11.2.0.4 runInstaller: [INS-06006] Passwordless SSH connectivity not set up between the following nodes(s) (文档 ID 1597212.1),描述如下:
Installing 11.2.0.4 Grid Infrastructure patch set, runInstaller reports error: [INS-06006] Passwordless SSH connectivity not set up between the following nodes(s): [racnode1].

  • installActions.log 

INFO: Preparing to check passwordless SSH Connectivity between nodes: [RACNODE1, RACNODE2]                               ====>> "hostname" command returns upper case hostname
INFO: Testing passwordless SSH connectivity between the selected nodes. This may take several minutes, please wait...
INFO: OverallStatus of User Equivalence check using CVU is SUCCESSFUL
FINEST: oracle.install.driver.oui.OUISSHSupportManager:Checking whether RACNODE1 is a local node or not. 
FINEST: oracle.install.driver.oui.OUISSHSupportManager:Identified RACNODE1 as the local node.
INFO: Finding passwordless SSH connectivity setup on remote nodes
INFO: Preparing remote commands to check passwordless SSH connectivity setup on remote nodes
INFO: Total number of remote commands to be executed is 4
WARNING: Failed while executing remote commands to check SSH connectivity to other nodes..
Refer associated stacktrace #oracle.install.driver.oui.OUISSHSupportManager:964
INFO: Source Node: racnode1 Target Node: racnode1
INFO: Exception: null
INFO: Status log: oracle.install.driver.oui.OUISSHSupportManager$SSHSetupVerificationCommand: 0|ssh: Could not resolve hostname -o FallBackToRsh=no : Temporary failure in name resolution :failed

....

INFO: Remote node(s) not configured for passwordless SSH connectivity : [racnode1]
INFO: Details about the list of remote node(s), not configured for passwordless SSH connectivity
---------------------------------
NODE REMOTE NODES 
---------------------------------
racnode1 [racnode1, racnode2]                       ====>> converted to lower case in the code
---------------------------------

 

  • oraInstall.err 

---# Begin Stacktrace #---------------------------
ID: oracle.install.driver.oui.OUISSHSupportManager:569
oracle.ops.mgmt.cluster.ClusterException: ssh: -o FallBackToRsh=no : Name or service not known :failedssh: -o FallBackToRsh=no : Name or service not known :failed :successful :successful
at oracle.ops.mgmt.cluster.ClusterConfig.submit(ClusterConfig.java:578)
at oracle.ops.mgmt.cluster.ClusterCmd.submit(ClusterCmd.java:269)
at oracle.ops.mgmt.cluster.ClusterCmd.submit(ClusterCmd.java:294)
at oracle.install.driver.oui.OUISSHSupportManager.getUnconfiguredRemoteNodes(OUISSHSupportManager.java:428)
at oracle.install.driver.oui.OUISSHSupportManager.getSSHConnectivityDetails(OUISSHSupportManager.java:378)
at oracle.install.commons.net.support.SSHSupportManager.getSSHConnectivityDetails(SSHSupportManager.java:181)
at oracle.install.ivw.common.view.SSHSetupPane$8.perform(SSHSetupPane.java:305)
at oracle.install.ivw.common.view.SSHSetupPane$SSHOperation.run(SSHSetupPane.java:336)

---# End Stacktrace #-----------------------------

  • hostname is in mixed case (in this example upper case)
grep RACNODE /etc/hosts
10.0.0.101 RACNODE1.US.ORACLE.COM RACNODE1
10.0.0.102 RACNODE2.US.ORACLE.COM RACNODE2
The bug is fixed in 12.1.0.2

The workaround is to either allow OUI or manually (note 300548.1) setup ssh user equivalence for the installing user, then in command line window, ensure ssh doesn't prompt for password for both real hostname and lower case hostname. 

For example:

$ ssh RACNODE1 date                    ====>> real hostname for node1
Fri Nov 8 10:01:03 PST 2013      
$ ssh racnode1 date                    ====>> lower case hostname for node1
Fri Nov 8 10:01:04 PST 2013
$ ssh RACNODE2 date
Fri Nov 8 10:01:05 PST 2013
$ ssh racnode2 date
Fri Nov 8 10:01:06 PST 2013

  如果升级出现解决如下grid执行:

In the case of upgrade, the alternate workaround is to update inventory to set to lower case nodename instead of real hostname:

$ /oui/bin/runInstaller -updateNodelist ORACLE_HOME= "CLUSTER_NODES={racnode1,racnode2}" CRS=true

Note in above command it's racnode1,racnode2 in lower case despite the hostname is upper case. 


原来是个bug,想不到第一次安装11.2.0.4就遇到bug,将主机名全部改为小写之后就顺利安装成功了




此文转自:http://blog.itpub.net/10271187/viewspace-1365090/ 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值