Failed to start the Clusterware. Last 20 lines of the alert log follow:

尛樣兒發表於2011-04-16

在Oracle 11gR2 的Grid安裝,在第二個節點執行root.sh的時候,或者在安裝Oracle Restart Database的Grid最後執行root.sh的時候,都有類似如下的報錯:
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node psdg1 successfully pinned.
Adding daemon to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2011-04-16 11:57:46.131
[client(8124)]CRS-2101:The OLR was formatted using version 3.
2011-04-16 11:57:47.161
[client(8149)]CRS-1001:The OCR was formatted using version 3.
[client(8195)]CRS-10001:CRS-6021: No msg for has:crs-6021 [l][unlimited]
[client(8196)]CRS-10001:CRS-6021: No msg for has:crs-6021 [n][65536]

ohasd failed to start at /u01/app/11.2.0/grid/crs/install/roothas.pl line 325.
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl execution failed

我在安裝grid設定節點的時候設定的是如下格式:
公共IP:rhel6 私有IP:rhel6-vip
公共IP:rhel7 私有IP:rhel7-vip

而在節點的/etc/hosts檔案中的配置是:

127.0.0.1               localhost.localdomain localhost

10.168.6.116 rhel6.localdomain rhel6
10.168.6.117 rhel7.localdomain rhel7
10.168.6.120 psdg1.localdomain psdg1

10.168.6.118 rhel6-vip
10.168.6.119 rhel7-vip
10.168.6.121 psdg1-vip

192.168.1.116 rhel6-priv
192.168.1.117 rhel7-priv

192.168.2.11 openfiler1

機器名為:psdg1.localdomain

透過以下修改錯誤得到解決:
127.0.0.1 localhost

10.168.6.116 rhel6
10.168.6.117 rhel7
10.168.6.120 psdg1

10.168.6.118 rhel6-vip
10.168.6.119 rhel7-vip
10.168.6.121 psdg1-vip

192.168.1.116 rhel6-priv
192.168.1.117 rhel7-priv

192.168.2.11 openfiler1
將機器名修改為:psdg1

或者
將/etc/hosts修改為:
127.0.0.1 localhost localhost.localdomain

10.168.6.116 rhel6 rhel6.localdomain
10.168.6.117 rhel7 rhel7.localdomain
10.168.6.120 psdg1 psdg1.localdomain

10.168.6.118 rhel6-vip
10.168.6.119 rhel7-vip
10.168.6.121 psdg1-vip

192.168.1.116 rhel6-priv
192.168.1.117 rhel7-priv

192.168.2.11 openfiler1
機器名可以保持不變:psdg1.localdomain

從上面的變化可以看出,在安裝grid的時候,設定grid包含的節點,如果沒有加localdomain域,那麼在hosts中的配置中,緊跟著IP後面的一定是沒加域的,然後才是加域的,
例如,安裝grid中節點配置為:rhel6
/etc/hosts/中配置一定是:10.168.6.116 rhel6 rhel6.localdomain
如果安裝grid中節點配置為:rhel6.localdomain
/etc/hosts/中的配置為:10.168.6.116 rhel6.localdomain rhel6

在遇到問題不能解決的時候,我們需要回過頭仔細檢查安裝步驟,或許是很小的錯誤就可能導致很奇怪的報錯!!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23135684/viewspace-692678/,如需轉載,請註明出處,否則將追究法律責任。

相關文章