设为首页 收藏本站
查看: 5311|回复: 0

[经验分享] 安装11.2.0.3 RAC grid 执行root.sh报错

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-6-3 10:53:56 | 显示全部楼层 |阅读模式
安装11.2.0.3 RAC grid 执行root.sh报错
root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding Clusterware entries to inittab
CRS-2672: Attempting to start 'ora.mdnsd' on 'tip01'
CRS-2676: Start of 'ora.mdnsd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'tip01'
CRS-2676: Start of 'ora.gpnpd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'tip01'
CRS-2672: Attempting to start 'ora.gipcd' on 'tip01'
CRS-2676: Start of 'ora.cssdmonitor' on 'tip01' succeeded
CRS-2676: Start of 'ora.gipcd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'tip01'
CRS-2672: Attempting to start 'ora.diskmon' on 'tip01'
CRS-2676: Start of 'ora.diskmon' on 'tip01' succeeded
CRS-2676: Start of 'ora.cssd' on 'tip01' succeeded

已成功创建并启动 ASM。

已成功创建磁盘组OCR。

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 86e6db2173634f7abf99a8771f48cfd7.
Successful addition of voting disk a4974d910f144f4abf5907f693751710.
Successful addition of voting disk 048a68d2af584f8cbfae02d943e11d67.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   86e6db2173634f7abf99a8771f48cfd7 (ORCL:OCR_VOL1) [OCR]
2. ONLINE   a4974d910f144f4abf5907f693751710 (ORCL:OCR_VOL2) [OCR]
3. ONLINE   048a68d2af584f8cbfae02d943e11d67 (ORCL:OCR_VOL3) [OCR]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'tip01'
CRS-2676: Start of 'ora.asm' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'tip01'
CRS-2676: Start of 'ora.OCR.dg' on 'tip01' succeeded
/u01/app/11.2.0/grid/product/db_1/bin/srvctl start nodeapps -n tip01 ... failed
FirstNode configuration failed at /u01/app/11.2.0/grid/product/db_1/crs/install/crsconfig_lib.pm line 9196.
/u01/app/11.2.0/grid/product/db_1/perl/bin/perl
-I/u01/app/11.2.0/grid/product/db_1/perl/lib -I/u01/app/11.2.0/grid/product/db_1/crs/install
/u01/app/11.2.0/grid/product/db_1/crs/install/rootcrs.pl execution failed


第一节点执行root.sh最后报错

检查下oraagent_grid.log发现以下错误
无法解析 (:CLSN00010:)无法解析 localhost (为接口 any) 都是这种报错

[iyunv@tip01 oraagent_grid]# more oraagent_grid.log

2012-05-23 19:36:40.711: [    AGFW][1394043200] {1:31151:202} Agent sending reply for: RESOURCE_START[ora.ons tip01 1] ID 409
8:562
2012-05-23 19:36:40.711: [ora.ons][1360484672] {1:31151:202} [start] execCmd ret = 2
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)getaddrinfo(localhost, 6100, 1) 失败 (Tempo
rary failure in name resolution): Connection refused
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)无法解析 localhost (为接口 any)
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)getaddrinfo(localhost, 6100, 1) 失败 (Tempo
rary failure in name resolution): Connection refused
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)无法解析 localhost (为接口 any)
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)onsctl start: ons failed to start
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] OnsAgent::start }
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00107:) clsn_agent::start }
2012-05-23 19:36:40.712: [    AGFW][1360484672] {1:31151:202} Command: start for resource: ora.ons tip01 1 completed with sta
tus: SUCCESS
2012-05-23 19:36:40.714: [ora.ons][1360484672] {1:31151:202} [check] OnsAgent::check {
2012-05-23 19:36:40.714: [ora.ons][1360484672] {1:31151:202} [check] getOracleHomeAttrib: oracle_home = /u01/app/11.2.0/grid/
product/db_1
2012-05-23 19:36:40.714: [    AGFW][1394043200] {1:31151:202} Agent sending reply for: RESOURCE_START[ora.ons tip01 1] ID 409
8:562
2012-05-23 19:36:40.715: [ora.ons][1360484672] {1:31151:202} [check] Utils:execCmd action = 3 flags = 6 ohome = /u01/app/11.2
.0/grid/product/db_1/opmn/ cmdname = onsctli.
2012-05-23 19:36:40.820: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)getaddrinfo(localhost, 6100, 1) 失败 (Tempo
rary failure in name resolution): Connection refused
2012-05-23 19:36:40.820: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)无法解析 localhost (为接口 any)
2012-05-23 19:36:40.820: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)ons is not running ...
2012-05-23 19:36:40.820: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)Utils:execCmd scls_process_join() uret 2

2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] execCmd ret = 2
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)getaddrinfo(localhost, 6100, 1) 失败 (Tempo
rary failure in name resolution): Connection refused
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)无法解析 localhost (为接口 any)
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)ons is not running ...
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)
2012-05-23 19:36:40.824: [ USRTHRD][1360484672] {1:31151:202} Ocr Context init default level -1408463520


怀疑是hosts问题

[iyunv@tip01 ~]# more /etc/hosts

#eth0-Public IP
162.20.1.228   tip01
162.20.1.229   tip02

#eth1 鈥PRIVATE IP
192.168.99.228  tip01-priv
192.168.99.229  tip02-priv

#VIP
162.20.1.230  tip01-vip
162.20.1.231  tip02-vip

#SCAN
162.20.1.232  rac-scan

原hosts文件缺少127.0.0.1 localhost
于是尝试在两个节点添加localhost

[iyunv@tip01 ~]# more /etc/hosts
127.0.0.1       localhost
::1             localhost6.localdomain6 localhost6

#eth0-Public IP
162.20.1.228   tip01
162.20.1.229   tip02

#eth1 鈥PRIVATE IP
192.168.99.228  tip01-priv
192.168.99.229  tip02-priv

#VIP
162.20.1.230  tip01-vip
162.20.1.231  tip02-vip

#SCAN
162.20.1.232  rac-scan


重新执行root.sh

[iyunv@tip01 db_1]# ./root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid/product/db_1

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.


Creating /etc/oratab file...
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/app/11.2.0/grid/product/db_1/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation

OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding Clusterware entries to inittab
CRS-2672: Attempting to start 'ora.mdnsd' on 'tip01'
CRS-2676: Start of 'ora.mdnsd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'tip01'
CRS-2676: Start of 'ora.gpnpd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'tip01'
CRS-2672: Attempting to start 'ora.gipcd' on 'tip01'
CRS-2676: Start of 'ora.cssdmonitor' on 'tip01' succeeded
CRS-2676: Start of 'ora.gipcd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'tip01'
CRS-2672: Attempting to start 'ora.diskmon' on 'tip01'
CRS-2676: Start of 'ora.diskmon' on 'tip01' succeeded
CRS-2676: Start of 'ora.cssd' on 'tip01' succeeded

已成功创建并启动 ASM。

已成功创建磁盘组OCR。

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 232a38e7c66c4fc4bf5a66145114ea3d.
Successful addition of voting disk 7bee34f239d74f92bf4cbb5773000b81.
Successful addition of voting disk 0329e1ba14914fd1bf7bd7bc86aac045.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   232a38e7c66c4fc4bf5a66145114ea3d (ORCL:OCR_VOL1) [OCR]
2. ONLINE   7bee34f239d74f92bf4cbb5773000b81 (ORCL:OCR_VOL2) [OCR]
3. ONLINE   0329e1ba14914fd1bf7bd7bc86aac045 (ORCL:OCR_VOL3) [OCR]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'tip01'
CRS-2676: Start of 'ora.asm' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'tip01'
CRS-2676: Start of 'ora.OCR.dg' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.registry.acfs' on 'tip01'
CRS-2676: Start of 'ora.registry.acfs' on 'tip01' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

安装GRID时,在执行root.sh报错时,首先检查下两个节点的hosts文件IP与主机对应关系是否正确完整,本例就是因为hosts文件不完整导致root.sh执行失败

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-20037-1-1.html 上篇帖子: 执行srvctl报错 :error while loading shared libraries: libpthread.so.0: 下篇帖子: 11g RAC 更改归档模式 ,归档文件存放在ASM 磁盘组
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表