签到成功

知道了

CNDBA社区CNDBA社区

11g RAC root.sh Failed to start Nodeapps crsconfig_lib.pm line 9400 解决方法

2017-05-24 11:19 6275 0 原创 Oracle 11g Oracle 18c RAC
作者: dave

安装RAC 的时候,执行root.sh 有N种失败的情况。 今天遇到了另外一种。 因为这次采用的不是安装,而是克隆节点的方法来操作的。 所以才导致了这个问题。http://www.cndba.cn/dave/article/1931http://www.cndba.cn/dave/article/1931

http://www.cndba.cn/dave/article/1931
http://www.cndba.cn/dave/article/1931
http://www.cndba.cn/dave/article/1931http://www.cndba.cn/dave/article/1931

1 问题描述http://www.cndba.cn/dave/article/1931http://www.cndba.cn/dave/article/1931http://www.cndba.cn/dave/article/1931

执行root.sh 失败,log 信息如下:http://www.cndba.cn/dave/article/1931

[root@www.cndba.cn ~]# /u01/gridsoft/11.2.0/root.sh 
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/gridsoft/11.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/gridsoft/11.2.0/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
/u01/gridsoft/11.2.0/bin/srvctl start nodeapps -n rac1 ... failed
Failed to start Nodeapps at /u01/gridsoft/11.2.0/crs/install/crsconfig_lib.pm line 9400.
/u01/gridsoft/11.2.0/perl/bin/perl -I/u01/gridsoft/11.2.0/perl/lib -I/u01/gridsoft/11.2.0/crs/install /u01/gridsoft/11.2.0/crs/install/rootcrs.pl execution failed 
实际上到这一步,crs已经配置完成了。 如果去查看crs状态,4项都会是online,只是最后一步看是启动 nodeapps失败,也就是vip启动失败。起初怀疑是其他地方导致。 后来查看半天。 发现是VIP的子网掩码配置错误导致。

2 解决方法

系统上Vip 的子网掩码是:255.255.255.240

[grid@www.cndba.cn rac1]$ ifconfig
bond0     Link encap:Ethernet  HWaddr 08:94:EF:2E:F1:C5  
          inet addr:10.24.30.2  Bcast:10.24.30.15  Mask:255.255.255.240
          inet6 addr: fe80::a94:efff:fe2e:f1c5/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:14016 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9862 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1714342 (1.6 MiB)  TX bytes:4406920 (4.2 MiB) 
执行root.sh 的时候会从/u01/gridsoft/11.2.0/crs/install/crsconfig_params文件中读取配置信息。 就是这个文件里的配置错误导致root.sh 执行失败。

[root@www.cndba.cn ~]# vim /u01/gridsoft/11.2.0/crs/install/crsconfig_params

CRS_NODEVIPS='rac1-vip/255.255.255.240/bond0,rac2-vip/255.255.255.240/bond0'
NODELIST=rac1,rac2
NETWORKS="eth3"/172.32.255.0:cluster_interconnect,"bond0"/10.24.30.0:public
SCAN_NAME=rac-scan
SCAN_PORT=1521
GPNP_PA=
OCFS_CONFIG=
NEW_NODEVIPS='rac1-vip/255.255.255.240/bond0,rac2-vip/255.255.255.240/bond0'

修改完成后先deconfig,在重新执行root.sh:
/u01/gridsoft/11.2.0/crs/install/rootcrs.pl -verbose -deconfig -force 

这次成功执行:


[root@www.cndba.cn ~]# /u01/gridsoft/11.2.0/root.sh 
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/gridsoft/11.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/gridsoft/11.2.0/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2235
    原创
  • 2
    翻译
  • 535
    转载
  • 185
    评论
  • 访问:6448428次
  • 积分:4223
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ