Oracle 11g RAC INS-06006 Passwordless SSH connectivity not set up between the following node(s) 解決方法java
1.Public-IP和VIP是否同在一個主網內。node
2.grid用戶的密碼確保正確和存在。vim
3.添加節點時,嚴格區分大小寫。bash
4.通常用grid用戶安裝grid軟件。oracle
5.多是BUG,看後面內容。less
在VBox 上安裝Oracle 11.2.0.1 的RAC, 在SSH 配置時報錯:ssh
INS-06006: Passwordless SSHconnectivity not set up between the following node(s)ide
注意:測試
這裏奇怪的表現是咱們setup是成功,僅僅是Test 失敗。ui
嘗試在2個節點手工的執行測試命令:
[oracle@rac1 ~]$ ssh rac2 date
Tue Jun 26 19:48:01 CST 2012
[oracle@rac1 ~]$ ssh rac1 date
Tue Jun 26 19:48:11 CST 2012
[oracle@rac2 ~]$ ssh rac1 date
Tue Jun 26 19:48:27 CST 2012
[oracle@rac2 ~]$ ssh rac2 date
Tue Jun 26 19:48:30 CST 2012
SSH 是正常的,也就是說咱們這裏的配置是有效的,只是顯示爲失敗,可是這裏通不過,安裝是繼續不了的。
SSH的配置,在Oracle 10g的RAC 裏是須要手工配置的,在11g裏能夠在OUI中自動配置。
手工配置參考:
Redhat 5.4 +ASM + RAW+ Oracle 10g RAC 安裝文檔
嘗試手工移除SSH的相關配置文件:
[oracle@rac1 ~]$ cd $HOME/.ssh
[oracle@rac1 .ssh]$ pwd
/home/oracle/.ssh
[oracle@rac1 .ssh]$ ll
total 100
-rw-r--r--. 1 oracle oinstall 8542 Jun 26 19:46 authorized_keys
-rw-------. 1 oracle oinstall 667 Nov 22 2011 authorized_keys2
-rw-r--r-- 1 oracle oinstall 7879 Jun 2619:46 authorized_keys.ri.bak
-rw-r--r-- 1 oracle oinstall 22 Jun 2619:46 config
-rw-r--r-- 1 oracle oinstall 22 Jun 2619:33 config.ri.bak
-rw-------. 1 oracle oinstall 887 Jun 26 19:46 identity
-rw-r--r--. 1 oracle oinstall 221 Jun 26 19:46 identity.pub
-rw------- 1 oracle oinstall 887 Jun 2619:46 id_rsa
-rw-r--r-- 1 oracle oinstall 221 Jun 2619:46 id_rsa.pub
-rw-r--r-- 1 oracle oinstall 221 Jun 2619:34 id_rsa.pub.ri.bak
-rw------- 1 oracle oinstall 887 Jun 2619:34 id_rsa.ri.bak
-rw-r--r--. 1 oracle oinstall 20981 Jun 2619:49 known_hosts
-rw-r--r-- 1 oracle oinstall 14248 Jun 26 19:34 known_hosts.ri.bak
[oracle@rac1 .ssh]$ rm -rf *
[oracle@rac2 ~]$ cd $HOME/.ssh
[oracle@rac2 .ssh]$ ll
total 68
-rw-r--r--. 1 oracle oinstall 8542 Jun 26 19:46 authorized_keys
-rw-------. 1 oracle oinstall 667 Nov 22 2011 authorized_keys2
-rw-r--r-- 1 oracle oinstall 7658 Jun 2619:42 authorized_keys.ri.bak
-rw-------. 1 oracle oinstall 883 Jun 26 19:46 identity
-rw-r--r--. 1 oracle oinstall 221 Jun 26 19:46 identity.pub
-rw------- 1 oracle oinstall 883 Jun 2619:46 id_rsa
-rw-r--r-- 1 oracle oinstall 221 Jun 2619:46 id_rsa.pub
-rw-r--r--. 1 oracle oinstall 20981 Jun 2619:49 known_hosts
[oracle@rac2 .ssh]$ rm -rf *
再次SSH,仍是一樣的錯誤。
在MOS上搜了一下,有一篇文章:
TOP Note: Solutions for Typical 11gR2 GridInfrastructure/RAC Database runInstaller Issues [ID 1056713.1]
裏面對這個問題的說明:
[INS-06006]Passwordless SSH connectivity not set up between the following node(s): [node1,node2]. CVU may reports "PRVF-4007 : User equivalence check failed foruser "user"" for same error
可能的緣由:
(1) Grid user does not havepassword on OS level, the fix is to set password with "passwd"command.
(2) If OUI is able to setuppasswordless SSH connectivity but still shows the error, likely"ping" command is inaccessible - grid user should be able to executeping command.
(3) OS command ssh or scp are notin expected location, the workaround is to either create symbolic link on allnodes or export the following environment variables before starting OUI
ln -s /usr/local/bin/ssh /usr/bin/ssh
ln -s /usr/local/bin/scp /usr/bin/scp
OR
export ORACLE_SRVM_REMOTESHELL=/usr/local/bin/ssh
export ORACLE_SRVM_REMOTECOPY=/usr/local/bin/ssh
Note: /usr/local/bin is the location for ssh and scp, if ssh and scp arelocated in somewhere else, replace it accordingly
我這裏的問題和MOS上說的不同,第一咱們在新開的ssh窗口測試,是正常的,僅僅在安裝窗口不能測試經過。
我安裝以前僅僅修改了一下環境變量,即修改了/home/oracle/.bash_profile文件,因此嘗試source了一下,並從新登錄,來進行安裝:
[oracle@rac1 ~]$ source ~/.bash_profile
+=====================================================================+
升級Grid Infrastructure時遭遇[INS-06006] Passwordless SSH connectivity not set up between the following node(s)錯誤,以下圖:
1、環境說明:
DB版本:Oracle 11.2.0.4
OS版本:Redhat 6.4
2、處理方法
一、使用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
結果依然報錯。
二、修改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.
結果依然報錯。
三、修改.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
結果依然報錯。
四、刪除手工配置的ssh,採用grid infrastructure配置--->依然報錯。
五、上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 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
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,將主機名所有改成小寫以後就順利安裝成功了。