-
看看测试库,没启动,查查进程状态
-
-
[oracle@db01 ~]$ ps -ef|grep d.bin
-
root 18365 1 1 Jun27 ? 10:24:18 /u01/app/19.0.0/grid/bin/ohasd.bin reboot
-
grid 23070 1 0 Jun27 ? 03:34:40 /u01/app/19.0.0/grid/bin/oraagent.bin
-
grid 23353 1 0 Jun27 ? 02:56:17 /u01/app/19.0.0/grid/bin/mdnsd.bin
-
grid 23354 1 0 Jun27 ? 06:44:10 /u01/app/19.0.0/grid/bin/evmd.bin
-
grid 24010 1 0 Jun27 ? 04:23:14 /u01/app/19.0.0/grid/bin/gpnpd.bin
-
grid 24201 23354 0 Jun27 ? 02:56:51 /u01/app/19.0.0/grid/bin/evmlogger.bin -o /u01/app/19.0.0/grid/log/[HOSTNAME]/evmd/evmlogger.info -l /u01/app/19.0.0/grid/log/[HOSTNAME]/evmd/evmlogger.log
-
grid 24665 1 0 Jun27 ? 07:36:27 /u01/app/19.0.0/grid/bin/gipcd.bin
-
root 28274 1 0 Jun27 ? 03:42:05 /u01/app/19.0.0/grid/bin/cssdmonitor
-
root 28417 1 0 Jun27 ? 03:44:19 /u01/app/19.0.0/grid/bin/cssdagent
-
grid 28659 1 1 Jun27 ? 11:16:26 /u01/app/19.0.0/grid/bin/ocssd.bin
-
oracle 236493 235970 0 14:51 pts/0 00:00:00 grep --color=auto d.bin
-
root 269856 1 0 Aug08 ? 00:06:27 /u01/app/19.0.0/grid/bin/orarootagent.bin
-
[oracle@db01 ~]$ exit
-
logout
-
You have new mail in /var/spool/mail/root
-
[root@db01 ~]# su - grid
-
Last login: Tue Aug 9 14:46:19 CST 2022
-
c[grid@db01 ~]$ crsctl stat res -t
-
CRS-4535: Cannot communicate with Cluster Ready Services
-
CRS-4000: Command Status failed, or corclleted with errors.
-
[grid@db01 ~]$ crsctl stat res -t -init
-
--------------------------------------------------------------------------------
-
Name Target State Server State details
-
--------------------------------------------------------------------------------
-
Cluster Resources
-
--------------------------------------------------------------------------------
-
ora.asm
-
1 ONLINE OFFLINE STABLE
-
ora.cluster_interconnect.haip
-
1 ONLINE ONLINE db01 STABLE
-
ora.crf
-
1 OFFLINE OFFLINE STABLE
-
ora.crsd
-
1 ONLINE OFFLINE STABLE
-
ora.cssd
-
1 ONLINE ONLINE db01 STABLE
-
ora.cssdmonitor
-
1 ONLINE ONLINE db01 STABLE
-
ora.ctssd
-
1 ONLINE OFFLINE STABLE
-
ora.diskmon
-
1 OFFLINE OFFLINE STABLE
-
ora.drivers.acfs
-
1 ONLINE ONLINE db01 STABLE
-
ora.evmd
-
1 ONLINE ONLINE db01 STABLE
-
ora.gipcd
-
1 ONLINE ONLINE db01 STABLE
-
ora.gpnpd
-
1 ONLINE ONLINE db01 STABLE
-
ora.mdnsd
-
1 ONLINE ONLINE db01 STABLE
-
ora.storage
-
1 ONLINE ONLINE db01 STABLE
-
--------------------------------------------------------------------------------
-
-
cssd没问题,crsd异常,嗯问题不大,看看日志报啥错
-
-
[grid@db01 ~]$ cd $ORACLE_BASE
-
[grid@db01 grid]$ ls
-
admin audit cfgtoollogs checkpoints crsdata diag oracle.ahf
-
[grid@db01 grid]$ cd diag
-
[grid@db01 diag]$ ls
-
afdboot asm asmtool clients diagtool em ios lsnrctl ofm plsqlapp tnslsnr
-
apx asmcmd bdsql crs dps gsm kfod netcman plsql rdbms
-
[grid@db01 diag]$ cd crs
-
[grid@db01 crs]$ ls
-
db01
-
[grid@db01 crs]$ cd *
-
[grid@db01 db01]$ ls
-
crs
-
[grid@db01 db01]$ cd crs
-
[grid@db01 crs]$ ls
-
alert cdump incident incpkg lck log metadata metadata_dgif metadata_pv stage sweep trace
-
[grid@db01 crs]$ cd trace
-
[grid@db01 trace]$ ls -lt|head
-
total 5549444
-
-rw-rw---- 1 root oinstall 897 Dec 17 2022 crsctl_95477.trm
-
-rw-rw---- 1 root oinstall 1372 Dec 17 2022 crsctl_95477.trc
-
-rw-rw---- 1 root oinstall 1372 Dec 17 2022 crsctl_94868.trc
-
-rw-rw---- 1 root oinstall 897 Dec 17 2022 crsctl_94868.trm
-
-rw-rw---- 1 root oinstall 1372 Dec 17 2022 crsctl_94255.trc
-
-rw-rw---- 1 root oinstall 897 Dec 17 2022 crsctl_94255.trm
-
-rw-rw---- 1 root oinstall 1372 Dec 17 2022 crsctl_93924.trc
-
-rw-rw---- 1 root oinstall 897 Dec 17 2022 crsctl_93924.trm
-
-rw-rw---- 1 root oinstall 1372 Dec 17 2022 crsctl_93634.trc
-
[grid@db01 trace]$ ls -l |grep ocss
-
-rw-rw---- 1 grid oinstall 6455323 Jul 27 01:51 ocssd_250.trm
-
-rw-rw---- 1 grid oinstall 52429032 Jul 30 03:56 ocssd_251.trc
-
-rw-rw---- 1 grid oinstall 6465250 Jul 30 03:56 ocssd_251.trm
-
-rw-rw---- 1 grid oinstall 52429199 Aug 2 06:06 ocssd_252.trc
-
-rw-rw---- 1 grid oinstall 6457074 Aug 2 06:06 ocssd_252.trm
-
-rw-rw---- 1 grid oinstall 52429272 Aug 5 08:02 ocssd_253.trc
-
-rw-rw---- 1 grid oinstall 6470686 Aug 5 08:02 ocssd_253.trm
-
-rw-rw---- 1 grid oinstall 52429061 Aug 8 09:47 ocssd_254.trc
-
-rw-rw---- 1 grid oinstall 6479333 Aug 8 09:47 ocssd_254.trm
-
-rw-rw---- 1 grid oinstall 20792521 Aug 9 14:51 ocssd.trc
-
-rw-rw---- 1 grid oinstall 2565627 Aug 9 14:51 ocssd.trm
-
-
找crsd 的日志文件
-
[grid@db01 trace]$ ls -lt ocrsd*.trc
-
ls: cannot access ocrsd*.trc: No such file or directory
-
[grid@db01 trace]$ ls -lt|grep crsd
-
-rw-rw---- 1 root oinstall 11068718 Jun 27 10:49 crsd.trc
-
-rw-rw---- 1 root oinstall 1692558 Jun 27 10:49 crsd.trm
-
-rw-rw---- 1 grid oinstall 10886426 Jun 27 10:49 crsd_scriptagent_grid.trc
-
-rw-rw---- 1 grid oinstall 2171435 Jun 27 10:49 crsd_scriptagent_grid.trm
-
-rw-rw---- 1 grid oinstall 24928461 Jun 27 10:49 crsd_jagent_grid.trc
-
-rw-rw---- 1 grid oinstall 4835526 Jun 27 10:49 crsd_jagent_grid.trm
-
[grid@db01 trace]$ tail -100 crsd.trc
-
Oracle Database 19c Clusterware Release 19.0.0.0.0 - Production
-
Version 19.14.0.0.0 Copyright 1996, 2021 Oracle. All rights reserved.
-
KGFCHECK kgfnStmtExecute01c: (ret == OCI_SUCCESS): FAILED at kgfn.c:3697
-
2022-06-27 10:49:18.149 : OCRRAW:4160478976: kgfnRecordErr 15056 OCI error:
-
ORA-15056: additional error message
-
ORA-06512: at line 4
-
ORA-17503: ksfdopn:2 Failed to open file +OCR.255.4294967295
-
ORA-15001: diskgroup "OCR" does not exist or is not mounted
-
ORA-06512: at "SYS.X$DBMS_DISKGROUP", line 405
-
ORA-06512: at line 2
-
-
-
2022-06-27 10:49:18.149*:kgfn.c@1804: kgfnRecordErrPriv: 15056 error=ORA-15056: additional error message
-
ORA-06512: at line 4
-
ORA-17503: ksfdopn:2 Failed to open file +OCR.255.4294967295
-
ORA-15001: diskgroup "OCR" does not exist or is not mounted
-
ORA-06512: at "SYS.X$DBMS_DISKGROUP", line 405
-
ORA-06512: at line 2
-
-
2022-06-27 10:49:18.149*:kgfn.c@3692: kgfnStmtExecute: OCIStmtExecute failed, ret=-1
-
2022-06-27 10:49:18.149*:kgfo.c@1016: kgfo_kge2slos error stack at kgfoOpen01: ORA-15056: additional error message
-
ORA-06512: at line 4
-
ORA-17503: ksfdopn:2 Failed to open file +OCR.255.4294967295
-
ORA-15001: diskgroup "OCR" does not exist or is not mounted
-
ORA-06512: at "SYS.X$DBMS_DISKGROUP", line 405
-
ORA-06512: at line 2
-
-
2022-06-27 10:49:18.149 : OCRRAW:4160478976: -- trace dump on error exit --
-
-
2022-06-27 10:49:18.149 : OCRRAW:4160478976: Error [kgfoOpen01] in [kgfokge] at kgfo.c:2380
-
-
2022-06-27 10:49:18.150 : OCRRAW:4160478976: ORA-06512: at line 4
-
ORA-17503: ksfdopn:2 Failed to open file +OCR.255.4294967295
-
ORA-15001: diskgroup "OCR" does not exist or is not mounted
-
ORA-06512: at "SYS
-
-
2022-06-27 10:49:18.150 : OCRRAW:4160478976: Category: 8
-
-
2022-06-27 10:49:18.150 : OCRRAW:4160478976: DepInfo: 15056
-
-
2022-06-27 10:49:18.150 : OCRRAW:4160478976: -- trace dump end --
-
-
2022-06-27 10:49:18.151 : OCRRAW:4160478976: -- trace dump on error exit --
-
-
2022-06-27 10:49:18.151 : OCRRAW:4160478976: Error [kgfoOpen01] in [kgfokge] at kgfo.c:2178
-
-
2022-06-27 10:49:18.151 : OCRRAW:4160478976: ORA-06512: at line 4
-
ORA-17503: ksfdopn:2 Failed to open file +OCR.255.4294967295
-
ORA-15001: diskgroup "OCR" does not exist or is not mounted
-
ORA-06512: at "SYS
-
-
2022-06-27 10:49:18.151 : OCRRAW:4160478976: Category: 8
-
-
2022-06-27 10:49:18.151 : OCRRAW:4160478976: DepInfo: 15056
-
-
2022-06-27 10:49:18.151 : OCRRAW:4160478976: -- trace dump end --
-
-
2022-06-27 10:49:18.151 : OCRASM:4160478976: proprasmo: Failed to open the file in DG [OCR]
-
2022-06-27 10:49:18.151 : OCRASM:4160478976: proprasmo: Error in open/create file in dg [OCR]
-
OCRASM:4160478976: SLOS : SLOS: cat=8, opn=kgfoOpen01, dep=15056, loc=kgfokge
-
-
2022-06-27 10:49:18.151 : OCRASM:4160478976: ASM Error Stack :
-
default:4160478976: u_set_gbl_corcl_error: corcltype '108' : error '8'
-
2022-06-27 10:49:18.156 : OCRRAW:4160478976: kgfnConnect2Int: cstr=(DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/u01/app/19.0.0/grid/bin/oracle)(ARGV0=oracle+ASM1_ocr)(ENVS='ORACLE_HOME=/u01/app/19.0.0/grid,ORACLE_SID=+ASM1,ORA_SERVER_BROKER_MODE=NONE')(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(PRIVS=(USER=grid)(GROUP=oinstall)))(CONNECT_DATA=(ORACLE_HOME=/u01/app/19.0.0/grid)(SID=+ASM1))(SECURITY=(AUTHENTICATION_SERVICE=beq))(enable=setuser))
-
-
2022-06-27 10:49:18.156*:kgfn.c@7000: kgfnConnect2Int: cstr=(DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/u01/app/19.0.0/grid/bin/oracle)(ARGV0=oracle+ASM1_ocr)(ENVS='ORACLE_HOME=/u01/app/19.0.0/grid,ORACLE_SID=+ASM1,ORA_SERVER_BROKER_MODE=NONE')(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(PRIVS=(USER=grid)(GROUP=oinstall)))(CONNECT_DATA=(ORACLE_HOME=/u01/app/19.0.0/grid)(SID=+ASM1))(SECURITY=(AUTHENTICATION_SERVICE=beq))(enable=setuser))
-
2022-06-27 10:49:18.156*:kgfn.c@3966: kgfnStmtSingle res=0 []
-
2022-06-27 10:49:18.199 : OCRRAW:4160478976: -- trace dump on error exit --
-
-
2022-06-27 10:49:18.199 : OCRRAW:4160478976: Error [kgfo] in [kgfoCkMt03] at kgfo.c:3182
-
-
2022-06-27 10:49:18.199 : OCRRAW:4160478976: diskgroup OCR not mounted ()
-
-
2022-06-27 10:49:18.199 : OCRRAW:4160478976: Category: 6
-
-
2022-06-27 10:49:18.199 : OCRRAW:4160478976: DepInfo: 0
-
-
2022-06-27 10:49:18.200 : OCRRAW:4160478976: -- trace dump end --
-
-
OCRASM:4160478976: SLOS : SLOS: cat=6, opn=kgfo, dep=0, loc=kgfoCkMt03
-
-
2022-06-27 10:49:18.200 : OCRASM:4160478976: ASM Error Stack :
-
2022-06-27 10:49:18.200 : OCRASM:4160478976: proprasmo: kgfoCheckMount returned [6]
-
2022-06-27 10:49:18.200 : OCRASM:4160478976: proprasmo: The ASM disk group OCR is not found or not mounted
-
2022-06-27 10:49:18.201 : OCRRAW:4160478976: proprioo: Failed to open [+OCR/cs-shdb-cluster/OCRFILE/registry.255.1038930357]. Returned proprasmo() with [26]. Marking location as UNAVAILABLE.
-
2022-06-27 10:49:18.201 : OCRRAW:4160478976: proprioo: No OCR/OLR devices are usable
-
OCRUTL:4160478976: u_fill_errorbuf: Error Info : [Insufficient quorum to open OCR devices]
-
default:4160478976: u_set_gbl_corcl_error: corcltype '107' : error '0'
-
2022-06-27 10:49:18.201 : default:4160478976: clsvactversion:4: Retrieving Active Version from local storage.
-
2022-06-27 10:49:18.206 : CSSCLNT:4160478976: clssgsgrppubdata: group (ocr_cs-shdb-cluster) not found
-
2022-06-27 10:49:18.206 : OCRRAW:4160478976: proprio_repairconf: Failed to retrieve the group public data. CSS ret code [20]
-
2022-06-27 10:49:18.206 : OCRRAW:4160478976: proprioo: Failed to auto repair the OCR configuration.
-
2022-06-27 10:49:18.206 : OCRRAW:4160478976: proprinit: Could not open raw device
-
2022-06-27 10:49:18.215 : OCRAPI:4160478976: a_init: Backend init unsuccessful : [26]
-
2022-06-27 10:49:18.215 : OCRAPI:4160478976: estack 'PROC-00026: Error while accessing the physical storage'
-
2022-06-27 10:49:18.216 : CRSOCR:4160478976: [ ERROR] OCR context init failure. Error: PROC-26: Error while accessing the physical storage Storage layer error [Insufficient quorum to open OCR devices] [0]
-
2022-06-27 10:49:18.218 : CRSD:4160478976: [ NONE] Created alert : (:CRSD00111:) : Could not init OCR, error: PROC-26: Error while accessing the physical storage Storage layer error [Insufficient quorum to open OCR devices] [0]
-
2022-06-27 10:49:18.218 : CRSD:4160478976: [ ERROR] [PANIC] CRSD exiting: Could not init OCR, code: 26
-
2022-06-27 10:49:18.218 : CRSD:4160478976: [ INFO] Done.
-
-
貌似ocr无法读取,检查一下
-
-
[root@db01 ~]# ocrcheck
-
Status of Oracle Cluster Registry is as follows :
-
Version : 4
-
Total space (kbytes) : 491684
-
Used space (kbytes) : 84868
-
Available space (kbytes) : 406816
-
ID : 1078669969
-
Device/File Name : +OCR
-
Device/File integrity check succeeded
-
-
Device/File not configured
-
-
Device/File not configured
-
-
Device/File not configured
-
-
Device/File not configured
-
-
Cluster registry integrity check succeeded
-
-
Logical corruption check succeeded
-
-
[root@db01 ~]# crsctl check crs
-
CRS-4638: Oracle High Availability Services is online
-
CRS-4535: Cannot communicate with Cluster Ready Services
-
CRS-4529: Cluster Synchronization Services is online
-
CRS-4533: Event Manager is online
原因不明确,那就手工启动一下试试
-
[root@db01 ~]# crsctl start res ora.crsd -init
-
CRS-2672: Attempting to start 'ora.ctssd' on 'db01'
-
The clock on host db01 differs from mean cluster time by 1449496153 microseconds. The Cluster Time Synchronization Service will not perform time synchronization because the time difference is beyond the permissible offset of 600 seconds. Details in /u01/app/grid/diag/crs/db01/crs/trace/octssd.trc.
-
CRS-2674: Start of 'ora.ctssd' on 'db01' failed
-
CRS-4000: Command Start failed, or corclleted with errors.
-
哦吼,很明显了,RAC两节点间的主机时钟又不同步了,测试环境就是差,连ntp也没有,手工调一下
-
[root@db01 ~]# date
-
Tue Aug 9 14:54:41 CST 2022
-
[root@db01 ~]# date -s "2022-08-09 14:39:00"
-
Tue Aug 9 14:39:00 CST 2022
-
-
再次启动
-
[root@db01 ~]# crsctl start res ora.crsd -init
-
CRS-2672: Attempting to start 'ora.ctssd' on 'db01'
-
CRS-2676: Start of 'ora.ctssd' on 'db01' succeeded
-
CRS-2672: Attempting to start 'ora.asm' on 'db01'
-
CRS-2672: Attempting to start 'ora.crsd' on 'db01'
-
CRS-2676: Start of 'ora.crsd' on 'db01' succeeded
-
CRS-2676: Start of 'ora.asm' on 'db01' succeeded
-
[root@db01 ~]#
-
-
[root@db01 ~]# crsctl stat res -t
-
--------------------------------------------------------------------------------
-
Name Target State Server State details
-
--------------------------------------------------------------------------------
-
Local Resources
-
--------------------------------------------------------------------------------
-
ora.LISTENER.lsnr
-
ONLINE ONLINE db01 STABLE
-
ONLINE ONLINE db02 STABLE
-
ora.LISTENER_ADG.lsnr
-
ONLINE ONLINE db01 STABLE
-
ONLINE ONLINE db02 STABLE
-
ora.chad
-
ONLINE ONLINE db01 STABLE
-
ONLINE ONLINE db02 STABLE
-
ora.helper
-
OFFLINE OFFLINE db01 IDLE,STABLE
-
OFFLINE OFFLINE db02 IDLE,STABLE
-
ora.net1.network
-
ONLINE ONLINE db01 STABLE
-
ONLINE ONLINE db02 STABLE
-
ora.ons
-
ONLINE ONLINE db01 STABLE
-
ONLINE ONLINE db02 STABLE
-
ora.proxy_advm
-
OFFLINE OFFLINE db01 STABLE
-
OFFLINE OFFLINE db02 STABLE
-
--------------------------------------------------------------------------------
-
Cluster Resources
-
--------------------------------------------------------------------------------
-
ora.ARCHDG.dg(ora.asmgroup)
-
1 ONLINE ONLINE db01 STABLE
-
2 ONLINE ONLINE db02 STABLE
-
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
-
1 ONLINE ONLINE db01 STABLE
-
2 ONLINE ONLINE db02 STABLE
-
ora.DATADG.dg(ora.asmgroup)
-
1 ONLINE ONLINE db01 STABLE
-
2 ONLINE ONLINE db02 STABLE
-
ora.LISTENER_SCAN1.lsnr
-
1 ONLINE ONLINE db02 STABLE
-
ora.MGMTLSNR
-
1 OFFLINE OFFLINE 169.254.20.76 77.77.
-
77.2,STABLE
-
ora.OCR.dg(ora.asmgroup)
-
1 ONLINE ONLINE db01 STABLE
-
2 ONLINE ONLINE db02 STABLE
-
ora.asm(ora.asmgroup)
-
1 ONLINE ONLINE db01 Started,STABLE
-
2 ONLINE ONLINE db02 Started,STABLE
-
ora.asmnet1.asmnetwork(ora.asmgroup)
-
1 ONLINE ONLINE db01 STABLE
-
2 ONLINE ONLINE db02 STABLE
-
ora.db01.vip
-
1 ONLINE ONLINE db01 STABLE
-
ora.db02.vip
-
1 ONLINE ONLINE db02 STABLE
-
ora.cvu
-
1 ONLINE ONLINE db02 STABLE
-
ora.orcl.db
-
1 ONLINE OFFLINE Mounted (Closed),Ope
-
n Initiated,HOME=/u0
-
1/app/oracle/product
-
/19.0.0/db_1,STABLE
-
2 ONLINE OFFLINE Mounted (Closed),Ope
-
n Initiated,HOME=/u0
-
1/app/oracle/product
-
/19.0.0/db_1,STABLE
-
ora.orcl.orclprim.svc
-
1 ONLINE OFFLINE STABLE
-
2 ONLINE OFFLINE STABLE
-
ora.orcl.orclprim.svc
-
1 ONLINE OFFLINE STABLE
-
2 ONLINE OFFLINE STABLE
-
ora.qosmserver
-
1 ONLINE ONLINE db02 STABLE
-
ora.rhpserver
-
1 OFFLINE OFFLINE STABLE
-
ora.scan1.vip
-
1 ONLINE ONLINE db02 STABLE
-
--------------------------------------------------------------------------------
-
[root@db01 ~]#