一、集群與資源啟動順序
啟動流程步驟層次梳理
第一層:OHASD 啟動:
- cssdagent - 負責啟動 CSSD 的 Agent。
- orarootagent - 負責啟動所有 root 用戶下的 ohasd 資源 的Agent。
- oraagent - 負責啟動所有 Oracle 用戶下的 ohasd 資源的 Agent。
- cssdmonitor - 監控 CSSD 以及節點健康(和 cssdagent 一起)。
第二層:OHASD rootagent 啟動:
- CRSD - 管理集群資源的主要后臺進程。
- CTSSD - Cluster Time Synchronization Services Daemon
- Diskmon
- ACFS (ASM Cluster File System)驅動
第二層:OHASD oraagent 啟動:
- MDNSD - 用來實現 DNS 查詢
- GIPCD - 用來做節點間通信
- GPNPD - Grid Plug & Play Profile Daemon
- EVMD - Event Monitor Daemon
- ASM - ASM 資源
第三層:CRSD 啟動:
- orarootagent - 負責啟動所有 root 用戶下的 crsd 資源的 Agent。
- oraagent - 負責啟動所有 oracle 用戶下的 crsd 資源的 Agent。
第四層:CRSD rootagent 啟動:
- SCAN VIP(s) - Single Client Access Name Virtual IPs
- Node VIPs - 每個節點1個
- ACFS Registery - 掛載 ASM Cluster File System
- GNS VIP (optional) - VIP for GNS
第四層:CRSD oraagent 啟動:
- ASM Resouce - ASM 資源
- Diskgroup - 用來管理/監控 ASM 磁盤組
- DB Resource - 用來管理/監控數據庫和實例
- SCAN Listener - SCAN 監聽,監聽在 SCAN VIP 上
- Listener - 節點監聽,監聽在 Node VIP 上
- Services - 用來管理/監控 services
- ONS - Oracle Notification Service
- eONS - 加強版 Oracle Notification Service
- GSD - 為了向下兼容 9i
- GNS (optional) - Grid Naming Service - 處理域名解析
集群與資源啟動順序表
二、Oracle 體系結構
三、GI與DB日志結構
四、啟動完成后的服務狀態
五、啟動過程日志
1、ohasd日志摘要
2021-09-14 15:13:05.271: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.mdnsd’ on ‘node1’ succeeded 2021-09-14 15:13:06.383: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.gpnpd’ on ‘node1’ succeeded 2021-09-14 15:13:07.414: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.gipcd’ on ‘node1’ succeeded 2021-09-14 15:13:07.476: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.crf’ on ‘node1’ succeeded 2021-09-14 15:13:07.600: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.cssdmonitor’ on ‘node1’ succeeded 2021-09-14 15:13:07.615: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.diskmon’ on ‘node1’ succeeded 2021-09-14 15:13:38.814: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.cssd’ on ‘node1’ succeeded 2021-09-14 15:13:40.836: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.ctssd’ on ‘node1’ succeeded 2021-09-14 15:13:42.052: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.evmd’ on ‘node1’ succeeded 2021-09-14 15:13:49.217: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.cluster_interconnect.haip’ on ‘node1’ succeeded 2021-09-14 15:13:50.235: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.drivers.acfs’ on ‘node1’ succeeded 2021-09-14 15:14:07.436: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.asm’ on ‘node1’ succeeded 2021-09-14 15:14:08.459: [ CRSPE][493405952]{0:0:2} CRS-2676: Start of ‘ora.crsd’ on ‘node1’ succeeded
2、crsd日志摘要
Received the reply to the message: RESTYPE_ADD[ora.cvu.type] ID 8196:189 [ora.ARCH.dg node1 1] ID 4097:400 [ora.DATA.dg node1 1] ID 4097:401 [ora.FRA.dg node1 1] ID 4097:402 [ora.FS.dg node1 1] ID 4097:403 [ora.LISTENER.lsnr node1 1] ID 4097:404 [ora.LISTENER_SCAN1.lsnr 1 1] ID 4097:405 [ora.LISTENER_SCAN2.lsnr 1 1] ID 4097:406 [ora.OCR.dg node1 1] ID 4097:407 [ora.asm node1 1] ID 4097:408 [ora.fs.sv.acfs node1 1] ID 4097:409 [ora.net1.network node1 1] ID 4097:410 [ora.node1.vip 1 1] ID 4097:411 [ora.node2.vip 1 1] ID 4097:412 [ora.oc4j 1 1] ID 4097:413 [ora.ons node1 1] ID 4097:414 [ora.registry.acfs node1 1] ID 4097:415 [ora.scan1.vip 1 1] ID 4097:416 [ora.scan2.vip 1 1] ID 4097:417 [ora.xttsa.db 1 1] ID 4097:418 [ora.xttsa.lb.svc 1 1] ID 4097:419
六、參考鏈接https://blog.csdn.net/weixin_45773690/article/details/120419133 https://blog.csdn.net/zwjzqqb/article/details/80679508