重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2674|回复: 0
打印 上一主题 下一主题

修改主机后导致GI无法启动,报:CLSU-00104

[复制链接]
跳转到指定楼层
楼主
发表于 2020-2-20 17:55:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 郑全 于 2020-2-20 18:01 编辑

在安装了GI后,修改了主机名,由LOCALHOST变为 DBSERVER.重启主机.has服务不能正常启动

1.查看has状态
[root@dbserver bin]# ./crsctl config has
CRS-4621: Oracle High Availability Services autostart is disabled.
[root@dbserver 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@dbserver oracle]# cd scls_scr
[root@dbserver scls_scr]# ls
as511g  dbserver
[root@dbserver scls_scr]# pwd
/etc/oracle/scls_scr
[root@dbserver scls_scr]#
创建gird日志相关的目录
[root@dbserver grid]# cd log
[root@dbserver log]# ls
crs  diag  as511g
mv as511g dbserver
这里我是直接通过MV原主机名下面的日志过来的
再次执行enable的时候成功了
2.ohasd日志报下面的错误
2020-02-20 13:24:42.213: [ CRSCEVT][1145841984] {0:4:5} ClusterPublisher::connect error connecting to EVMd 13
2020-02-20 13:24:42.213: [  CRSRPT][1145841984] {0:4:5} Connection exception in reporter when connecting to ClusterPublisher
2020-02-20 13:24:42.213: [  CRSRPT][1145841984] {0:4:5} No publisher available, Not publishing events
2020-02-20 13:24:56.250: [ COMMCRS][1080830272]Authentication OSD error, op: dirpathloc: authprep4
info: directory (/u01/app/12.1.0/grid/auth/ohasd/dbserver) for (/u01/app/12.1.0/grid/auth/ohasd/dbserver/A1733644) does not existdep: 2
2020-02-20 13:24:56.250: [UiServer][1080830272] clscanswer returned error: 2
2020-02-20 13:25:12.193: [ COMMCRS][1080830272]Authentication OSD error, op: dirpathloc: authprep4
info: directory (/u01/app/12.1.0/grid/auth/ohasd/dbserver) for (/u01/app/12.1.0/grid/auth/ohasd/dbserver/A3124766) does not existdep: 2
2020-02-20 13:25:12.193: [UiServer][1080830272] clscanswer returned error: 2
2020-02-20 13:25:15.650: [ COMMCRS][1080830272]Authentication OSD error, op: dirpathloc: authprep4
info: directory (/u01/app/12.1.0/grid/auth/ohasd/dbserver) for (/u01/app/12.1.0/grid/auth/ohasd/dbserver/A1920034) does not existdep: 2
2020-02-20 13:25:15.650: [UiServer][1080830272] clscanswer returned error: 2
创建/u01/app/12.1.0/grid/auth/ohasd/dbserver目录.并给与原主机名一样的权限
3.has已经正常启动.但是资源没有自动启动.下面是手动启动资源
[root@dbserver bin]# ./crsctl start resource -all
CRS-5702: Resource 'ora.evmd' is already running on 'dbserver'
CRS-2501: Resource 'ora.ons' is disabled
CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'dbserver'
CRS-2Oracleо672: Attempting to start 'ora.cssd' on 'dbserver'
CRS-2672: Attempting to start 'ora.diskmon' on 'dbserver'
CRS-2676: Start of 'ora.diskmon' on 'dbserver' succeeded
CRS-2676: Start of 'ora.LISTENER.lsnr' on 'dbserver' succeeded
这里hang死了
hang
查看一下资源的状态.看到正在启动cssd资源
[grid@dbserver ohasd]$ crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  OFFLINE      dbserver                                       
ora.FRA.dg
               ONLINE  OFFLINE      dbserver                                       
ora.LISTENER.lsnr
               ONLINE  ONLINE       dbserver                                       
ora.asm
               ONLINE  OFFLINE      dbserver                                       
ora.ons
               OFFLINE OFFLINE      dbserver                                       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
      1        ONLINE  OFFLINE                               STARTING           
ora.diskmon
      1        OFFLINE OFFLINE                                                  
ora.evmd
      1        ONLINE  ONLINE       dbserver                                       
ora.orcl.db
      1        ONLINE  OFFLINE
查看css日志报下面的错误
2020-02-20 13:32:00.139: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos info:  directory (/u01/app/12.1.0/grid/auth/css/dbserver) for (/u01/app/12.1.0/grid/auth/css/dbserver/A8240272) does not exist
2020-02-20 13:32:00.139: [GIPCXCPT][1082046784] gipcmodMuxTransferAccept: internal accept request failed endp 0x19082620, child 0x2aaaad216870, ret gipcretAuthFail (22)
2020-02-20 13:32:00.140: [ GIPCMUX][1082046784] gipcmodMuxTransferAccept: EXCEPTION[ ret gipcretAuthFail (22) ]  error during accept on endp 0x19082620
2020-02-20 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_dbserver_)(GIPCID=89666e84-6f4ec692-7657))', remoteAddr 'clsc://(ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_dbserver_)(GIPCID=6f4ec692-89666e84-7628))', numPend 5, numReady 1, numDone 0, numDead 3, numTransfer 0, objFlags 0x0, pidPeer 7628, flags 0x603710, usrFlags 0x14000 }
2020-02-20 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos op  :  dirpath
2020-02-20 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos dep :  No such file or directory (2)
2020-02-20 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos loc :  authprep4
2020-02-20 13:32:01.145: [GIPCXCPT][1082046784] gipcmodClsaAuthInit: slos info:  directory (/u01/app/12.1.0/grid/auth/css/dbserver) for (/u01/app/12.1.0/grid/auth/css/dbserver/A2568215) does not exist
2020-02-20 13:32:01.146: [GIPCXCPT][1082046784] gipcmodMuxTransferAccept: internal accept request failed endp 0x19082620, child 0x2aaaad239660, ret gipcretAuthFail (22)
2020-02-20 13:32:01.146: [ GIPCMUX][1082046784] gipcmodMuxTransferAccept: EXCEPTION[ ret gipcretAuthFail (22) ]  error during accept on endp 0x19082620
4.创建相应的目录.并授予相应的权限
[root@dbserver scls_scr]# mkdir /u01/app/12.1.0/grid/auth/css/dbserver
[root@dbserver scls_scr]# chown grid:dba /u01/app/12.1.0/grid/auth/css/dbserver
再回过来看
[root@dbserver bin]# ./crsctl start resource -all
CRS-5702: Resource 'ora.evmd' is already running on 'dbserver'
CRS-2501: Resource 'ora.ons' is disabled
CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'dbserver'
CRS-2672: Attempting to start 'ora.cssd' on 'dbserver'
CRS-2672: Attempting to start 'ora.diskmon' on 'dbserver'
CRS-2676: Start of 'ora.diskmon' on 'dbserver' succeeded
CRS-2676: Start of 'ora.LISTENER.lsnr' on 'dbserver' succeeded
CRS-2676: Start of 'ora.cssd' on 'dbserver' succeeded
CRS-2679: Attempting to clean 'ora.asm' on 'dbserver'
CRS-2681: Clean of 'ora.asm' on 'dbserver' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'dbserver'
CRS-2676: Start of 'ora.asm' on 'dbserver' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'dbserver'
CRS-2672: Attempting to start 'ora.FRA.dg' on 'dbserver'
CRS-2676: Start of 'ora.DATA.dg' on 'dbserver' succeeded
CRS-2676: Start of 'ora.FRA.dg' on 'dbserver' succeeded
CRS-2672: Attempting to start 'ora.orcl.db' on 'dbserver'
CRS-2676: Start of 'ora.orcl.db' on 'dbserver' succeeded
CRS-4000: Command Start failed, or completed with errors.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-24 22:03 , Processed in 0.112011 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

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