共計 2685 個字符,預(yù)計需要花費 7 分鐘才能閱讀完成。
這篇文章主要為大家展示了“RAC 安裝時出現(xiàn) The specified nodes are not clusterable 錯誤怎么辦”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓丸趣 TV 小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“RAC 安裝時出現(xiàn) The specified nodes are not clusterable 錯誤怎么辦”這篇文章吧。
在安裝 RAC clusterware 在添加完結(jié)點后報錯誤:
The specified nodes are not clusterable.
The following error was returned by the operating system: null
以前也裝過幾個測試的 rac 的環(huán)境,該遇到的問題也都遇到過了。以前遇到這個問題是 hosts 文件搞的鬼,所以這次條件反射的就直接去檢查這個文件:
[root@node2 orcl]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
10.85.10.119 node1
10.85.10.121 node2
192.168.0.119 node1prv
192.168.0.121 node2prv
10.85.10.122 node1vip
10.85.10.123 node2vip
2 個結(jié)點的 hosts 第一行:127.0.0.1 localhost 都修改過了,沒有問題。
Google 的結(jié)果如下,這個幫了我不少忙..
Alert: The specified nodes are not clusterable. This could be due to one or more of the following reasons:
1. The user performing the install is not configured in an equivalent manner on all nodes.
2. ssh and scp are not configured properly on all nodes.
3. rsh and rcp are not configured properly on all nodes.
重建檢查了下用戶等效性。記得創(chuàng)建時候已經(jīng)測試過,心里就認(rèn)為問題不可能在這,但再次運行之后發(fā)現(xiàn),問題還就是這。
node1 結(jié)點:
[oracle@node1 ~]$ ssh node1 date
[oracle@node1 ~]$ ssh node2 date
[oracle@node1 ~]$ ssh node1prv date
[oracle@node1 ~]$ ssh node2prv date
Node2 結(jié)點:
[oracle@node2 ~]$ ssh node1 date
[oracle@node2 ~]$ ssh node2 date
[oracle@node2 ~]$ ssh node1prv date
[oracle@node2 ~]$ ssh node2prv date
在 node2 結(jié)點上有 2 個還沒有運行 ssh,還是需要輸入密碼的。運行 ssh 之后問題解決。還是太粗心了. 盡然少運行了 2 個 ssh。有點杯具..
下面是建立用戶等效性的操作方法:
1. group add dba oinstall 組在兩個 node 上, 創(chuàng)建 oracle 用戶, 主組 oinstall, 附加組是 dba 和 disk
#groupadd oinstall
#groupadd dba
#useradd -g oinstall -G dba oracle
#passwd oracle
2. 建立等效用戶
在 node1:
[root@node1 opt]# su – oracle
[oracle@node1 ~]$ mkdir ~/.ssh
[oracle@node1 ~]$ chmod 700 ~/.ssh
[oracle@node1 ~]$ ssh-keygen -t rsa
[oracle@node1 ~]$ ssh-keygen -t dsa
在 node2:
[root@node2 opt]# su – oracle
[oracle@node2 ~]$ mkdir ~/.ssh
[oracle@node2 ~]$ chmod 700 ~/.ssh
[oracle@node2 ~]$ ssh-keygen -t rsa
[oracle@node2 ~]$ ssh-keygen -t dsa
切換回 node1,接著執(zhí)行:
[oracle@node1 ~]$ cat ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
[oracle@node1 ~]$ cat ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
提示:下列命令會提示你輸入 node2 的 oracle 密碼,按照提示輸入即可,如果失敗可重新嘗試執(zhí)行命
令。
[oracle@node1 ~]$ scp ~/.ssh/authorized_keys node2:~/.ssh/authorized_keys
[oracle@node1 ~]$ ssh node2 cat ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
[oracle@node1 ~]$ ssh node2 cat ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
[oracle@node2 ~]$ scp ~/.ssh/authorized_keys node1:~/.ssh/authorized_keys
確保 2 個 node 都有相互的結(jié)點信息。
兩機(jī)相互執(zhí)行,看看是否還需要輸入密碼
[oracle@node1 ~]$ ssh node1 date
[oracle@node1 ~]$ ssh node2 date
[oracle@node1 ~]$ ssh node1prv date
[oracle@node1 ~]$ ssh node2prv date
切換至 node2 執(zhí)行
[oracle@node2 ~]$ ssh node1 date
[oracle@node2 ~]$ ssh node2 date
[oracle@node2 ~]$ ssh node1prv date
[oracle@node2 ~]$ ssh node2prv date
建完等效性之后第一次 ssh 結(jié)點時需要輸入密碼,第二次就不需要了,所以建完等效性之后一定要把所有的相關(guān)結(jié)點都 ssh 一下,不會你也就杯具了 …
以上是“RAC 安裝時出現(xiàn) The specified nodes are not clusterable 錯誤怎么辦”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識,歡迎關(guān)注丸趣 TV 行業(yè)資訊頻道!