ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Failed to start the Clusterware. Last 20 lines of the alert log follow:

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

原创 Linux操作系统 作者:尛样儿 时间:2011-04-16 21:05:45 0 删除 编辑

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

请登录后发表评论 登录
全部评论
Oracle数据库管理员,Oracle数据库系统构架员;2012年7月出版《构建最高可用Oracle数据库系统:Oracle 11gR2 RAC管理、维护与性能优化》一书;Oracle 10g OCM。

注册时间:2010-01-05

  • 博文量
    483
  • 访问量
    5364021