Oracle Study之--Oracle 11gR2构建RAC之hosts文件故障
Oracle Study之--Oracle 11gR2构建RAC之hosts文件故障
系统环境:RedHat EL55
Oracle: Oracle 11gR2 +GI
在安装GI,运行root.sh script时,其中一个node出现以下错误:
[root@node2 ctssd]# /u01/11.2.0/grid/root.sh
RunningOracle11groot.shscript...Thefollowingenvironmentvariablesaresetas:ORACLE_OWNER=gridORACLE_HOME=/u01/11.2.0/gridEnterthefullpathnameofthelocalbindirectory:[/usr/local/bin]:Thefile"dbhome"alreadyexistsin/usr/local/bin.Overwriteit?(y/n)[n]:yCopyingdbhometo/usr/local/bin...Thefile"oraenv"alreadyexistsin/usr/local/bin.Overwriteit?(y/n)[n]:yCopyingoraenvto/usr/local/bin...Thefile"coraenv"alreadyexistsin/usr/local/bin.Overwriteit?(y/n)[n]:yCopyingcoraenvto/usr/local/bin...Entrieswillbeaddedtothe/etc/oratabfileasneededbyDatabaseConfigurationAssistantwhenadatabaseiscreatedFinishedrunninggenericpartofroot.shscript.Nowproduct-specificrootactionswillbeperformed.2016-03-1616:18:11:Parsingthehostname2016-03-1616:18:11:Checkingforsuperuserprivileges2016-03-1616:18:11:UserhassuperuserprivilegesUsingconfigurationparameterfile:/u01/11.2.0/grid/crs/install/crsconfig_paramsLOCALADDMODECreatingOCRkeysforuser'root',privgrp'root'..Operationsuccessful.AddingdaemontoinittabCRS-4123:OracleHighAvailabilityServiceshasbeenstarted.ohasdisstartingCRS-4402:TheCSSdaemonwasstartedinexclusivemodebutfoundanactiveCSSdaemononnodenode1,number1,andisterminatingAnactiveclusterwasfoundduringexclusivestartup,restartingtojointheclusterCRS-2672:Attemptingtostart'ora.mdnsd'on'node2'CRS-2676:Startof'ora.mdnsd'on'node2'succeededCRS-2672:Attemptingtostart'ora.gipcd'on'node2'CRS-2676:Startof'ora.gipcd'on'node2'succeededCRS-2672:Attemptingtostart'ora.gpnpd'on'node2'CRS-2676:Startof'ora.gpnpd'on'node2'succeededCRS-2672:Attemptingtostart'ora.cssdmonitor'on'node2'CRS-2676:Startof'ora.cssdmonitor'on'node2'succeededCRS-2672:Attemptingtostart'ora.cssd'on'node2'CRS-2672:Attemptingtostart'ora.diskmon'on'node2'CRS-2676:Startof'ora.diskmon'on'node2'succeededCRS-2676:Startof'ora.cssd'on'node2'succeededCRS-2672:Attemptingtostart'ora.ctssd'on'node2'
Failure with signal 2 from command: /u01/11.2.0/grid/bin/crsctl start resource ora.ctssd -init -env USR_ORA_ENV=CTSS_REBOOT=TRUE
Start of resource "ora.ctssd -init -env USR_ORA_ENV=CTSS_REBOOT=TRUE" failed
Failed to start CTSS
Failed to start Oracle Clusterware stack
Oracle root script execution aborted!
----- 启动ctssd 进程失败 !
经检查发现,在node2的hosts文件出现以下错误:
[oracle@node2 ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 node1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.3.101 node1
192.168.3.111 node1-vip
10.10.10.1 node1-priv
192.168.3.102 node2
192.168.3.112 node2-vip
10.10.10.2 node2-priv
192.168.3.12 rac-scan
------- 127.0.0.1 被解析成另一个node的主机名(node1)
改为:
127.0.0.1 localhost.localdomain localhost
重新运行root.sh脚本后成功!
[root@node2 install]# crsctl check crs
CRS-4638:OracleHighAvailabilityServicesisonlineCRS-4537:ClusterReadyServicesisonlineCRS-4529:ClusterSynchronizationServicesisonlineCRS-4533:EventManagerisonline
[root@node2 install]# crs_stat -t
NameTypeTargetStateHost------------------------------------------------------------ora....N1.lsnrora....er.typeONLINEONLINEnode1ora....VOTE.dgora....up.typeONLINEONLINEnode1ora.asmora.asm.typeONLINEONLINEnode1ora.eonsora.eons.typeONLINEONLINEnode1ora.gsdora.gsd.typeOFFLINEOFFLINEora....networkora....rk.typeONLINEONLINEnode1ora....SM1.asmapplicationONLINEONLINEnode1ora.node1.gsdapplicationOFFLINEOFFLINEora.node1.onsapplicationONLINEONLINEnode1ora.node1.vipora....t1.typeONLINEONLINEnode1ora....SM2.asmapplicationONLINEONLINEnode2ora.node2.gsdapplicationOFFLINEOFFLINEora.node2.onsapplicationONLINEONLINEnode2ora.node2.vipora....t1.typeONLINEONLINEnode2ora.oc4jora.oc4j.typeOFFLINEOFFLINEora.onsora.ons.typeONLINEONLINEnode1ora....ry.acfsora....fs.typeONLINEONLINEnode1ora.scan1.vipora....ip.typeONLINEONLINEnode1
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。