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

在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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23135684/viewspace-692678/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值