sitemap

RSS地图

收藏本站

设为首页

Oracle研究中心

当前位置:Oracle研究中心 > 故障案例 >

【案例】Oracle RAC报错CLSU-00104 更改主机名后has服务不能启动

时间:2016-10-20 19:01   来源:Oracle研究中心   作者:HTZ   点击:

天萃荷净 运维DBA反映根据需求要将Oracle 11G RAC主机名进行更改.导致HAS服务无法启动.结合MOS分析发现日志中提示目录不存在导致。
环境:OS:RHEL 5 DB:11.2.0.3(GI)

客户修改了主机名后.重启主机.has服务不能正常启动

1.查看has状态


[root@qywdb bin]# ./crsctl config has
CRS-4621: Oracle High Availability Services autostart is disabled.
[root@qywdb bin]# ./crsctl enable has
CLSU-00100: Operating System function: opendir failed with error data: 2
CLSU-00101: Operating System error message: No such file or directory
CLSU-00103: error location: scrsearch1
CLSU-00104: additional error information: cant open scr home dir scls_scr_getval
CRS-4000: Command Enable failed, or completed with errors.

这里看到在目录scls_scr_getval报错。

创建相关的目录

[root@qywdb oracle]# cd scls_scr
[root@qywdb scls_scr]# ls
as511g  qywdb
[root@qywdb scls_scr]# pwd
/etc/oracle/scls_scr
[root@qywdb scls_scr]#
创建gird日志相关的目录

[root@qywdb grid]# cd log
[root@qywdb log]# ls
crs  diag  as511g

mv as511g qywdb
这里我是直接通过MV原主机名下面的日志过来的
再次执行enable的时候成功了

2.ohasd日志报下面的错误


2013-09-10 13:24:42.213: [ CRSCEVT][1145841984] {0:4:5} ClusterPublisher::connect error connecting to EVMd 13
2013-09-10 13:24:42.213: [  CRSRPT][1145841984] {0:4:5} Connection exception in reporter when connecting to ClusterPublisher
2013-09-10 13:24:42.213: [  CRSRPT][1145841984] {0:4:5} No publisher available, Not publishing events
2013-09-10 13:24:56.250: [ COMMCRS][1080830272]Authentication OSD error, op: dirpathloc: authprep4
info: directory (/oracle/app/11.2/grid/auth/ohasd/qywdb) for (/oracle/app/11.2/grid/auth/ohasd/qywdb/A1733644) does not existdep: 2
2013-09-10 13:24:56.250: [UiServer][1080830272] clscanswer returned error: 2
2013-09-10 13:25:12.193: [ COMMCRS][1080830272]Authentication OSD error, op: dirpathloc: authprep4
info: directory (/oracle/app/11.2/grid/auth/ohasd/qywdb) for (/oracle/app/11.2/grid/auth/ohasd/qywdb/A3124766) does not existdep: 2
2013-09-10 13:25:12.193: [UiServer][1080830272] clscanswer returned error: 2
2013-09-10 13:25:15.650: [ COMMCRS][1080830272]Authentication OSD error, op: dirpathloc: authprep4
info: directory (/oracle/app/11.2/grid/auth/ohasd/qywdb) for (/oracle/app/11.2/grid/auth/ohasd/qywdb/A1920034) does not existdep: 2
2013-09-10 13:25:15.650: [UiServer][1080830272] clscanswer returned error: 2
创建/oracle/app/11.2/grid/auth/ohasd/qywdb目录.并给与原主机名一样的权限

3.has已经正常启动.但是资源没有自动启动.下面是手动启动资源


[root@qywdb bin]# ./crsctl start resource -all
CRS-5702: Resource 'ora.evmd' is already running on 'qywdb'
CRS-2501: Resource 'ora.ons' is disabled
CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'qywdb'
CRS-2Oracleо672: Attempting to start 'ora.cssd' on 'qywdb'
CRS-2672: Attempting to start 'ora.diskmon' on 'qywdb'
CRS-2676: Start of 'ora.diskmon' on 'qywdb' succeeded
CRS-2676: Start of 'ora.LISTENER.lsnr' on 'qywdb' succeeded

这里hang死了
hang
查看一下资源的状态.看到正在启动cssd资源
[grid@qywdb ohasd]$ crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DG01.dg
               ONLINE  OFFLINE      qywdb                                       
ora.DG02.dg
               ONLINE  OFFLINE      qywdb                                       
ora.LISTENER.lsnr
               ONLINE  ONLINE       qywdb                                       
ora.asm
               ONLINE  OFFLINE      qywdb                                       
ora.ons
               OFFLINE OFFLINE      qywdb                                       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
      1        ONLINE  OFFLINE                               STARTING           
ora.diskmon
      1        OFFLINE OFFLINE                                                  
ora.evmd
      1        ONLINE  ONLINE       qywdb                                       
ora.qywes.db
      1        ONLINE  OFFLINE

查看css日志报下面的错误

2013-09-10 13:32:00.139: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos info:  directory (/oracle/app/11.2/grid/auth/css/qywdb) for (/oracle/app/11.2/grid/auth/css/qywdb/A8240272) does not exist
2013-09-10 13:32:00.139: [GIPCXCPT][1082046784] gipcmodMuxTransferAccept: internal accept request failed endp 0x19082620, child 0x2aaaad216870, ret gipcretAuthFail (22)
2013-09-10 13:32:00.140: [ GIPCMUX][1082046784] gipcmodMuxTransferAccept: EXCEPTION[ ret gipcretAuthFail (22) ]  error during accept on endp 0x19082620
2013-09-10 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: failed on clsaauthstart ret clsaretOSD (8), endp 0x2aaaad239660 [00000000000011aa] { gipcEndpoint : localAddr 'clsc://(ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_qywdb_)(GIPCID=89666e84-6f4ec692-7657))', remoteAddr 'clsc://(ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_qywdb_)(GIPCID=6f4ec692-89666e84-7628))', numPend 5, numReady 1, numDone 0, numDead 3, numTransfer 0, objFlags 0x0, pidPeer 7628, flags 0x603710, usrFlags 0x14000 }
2013-09-10 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos op  :  dirpath
2013-09-10 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos dep :  No such file or directory (2)
2013-09-10 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos loc :  authprep4
2013-09-10 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos info:  directory (/oracle/app/11.2/grid/auth/css/qywdb) for (/oracle/app/11.2/grid/auth/css/qywdb/A2568215) does not exist
2013-09-10 13:32:01.146: [GIPCXCPT][1082046784] gipcmodMuxTransferAccept: internal accept request failed endp 0x19082620, child 0x2aaaad239660, ret gipcretAuthFail (22)
2013-09-10 13:32:01.146: [ GIPCMUX][1082046784] gipcmodMuxTransferAccept: EXCEPTION[ ret gipcretAuthFail (22) ]  error during accept on endp 0x19082620

4.创建相应的目录.并授予相应的权限


[root@qywdb scls_scr]# mkdir /oracle/app/11.2/grid/auth/css/qywdb
[root@qywdb scls_scr]# chown grid:dba /oracle/app/11.2/grid/auth/css/qywdb

再回过来看
[root@qywdb bin]# ./crsctl start resource -all
CRS-5702: Resource 'ora.evmd' is already running on 'qywdb'
CRS-2501: Resource 'ora.ons' is disabled
CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'qywdb'
CRS-2672: Attempting to start 'ora.cssd' on 'qywdb'
CRS-2672: Attempting to start 'ora.diskmon' on 'qywdb'
CRS-2676: Start of 'ora.diskmon' on 'qywdb' succeeded
CRS-2676: Start of 'ora.LISTENER.lsnr' on 'qywdb' succeeded
CRS-2676: Start of 'ora.cssd' on 'qywdb' succeeded
CRS-2679: Attempting to clean 'ora.asm' on 'qywdb'
CRS-2681: Clean of 'ora.asm' on 'qywdb' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'qywdb'
CRS-2676: Start of 'ora.asm' on 'qywdb' succeeded
CRS-2672: Attempting to start 'ora.DG01.dg' on 'qywdb'
CRS-2672: Attempting to start 'ora.DG02.dg' on 'qywdb'
CRS-2676: Start of 'ora.DG01.dg' on 'qywdb' succeeded
CRS-2676: Start of 'ora.DG02.dg' on 'qywdb' succeeded
CRS-2672: Attempting to start 'ora.qywes.db' on 'qywdb'
CRS-2676: Start of 'ora.qywes.db' on 'qywdb' succeeded
CRS-4000: Command Start failed, or completed with errors.

本文固定链接: http://www.htz.pw/2013/09/11/11gr2-gi-asm%e7%8e%af%e5%a2%83%e4%bf%ae%e6%94%b9%e4%b8%bb%e6%9c%ba%e5%90%8d.html | 认真就输

--------------------------------------ORACLE-DBA----------------------------------------

最权威、专业的Oracle案例资源汇总之【案例】Oracle RAC报错CLSU-00104 更改主机名后has服务不能启动

本文由大师惜分飞原创分享,网址:http://www.oracleplus.net/arch/1014.html

Oracle研究中心

关键词:

CLSU-00100 CLSU-00101 CLSU-00103 CLSU-00104

Oracle 11gr2 gi asm环境修改主机名后has服务不能正常启动

Oracle 11G更改主机名对RAC的影响