Oracle11g RAC集群启动流程

一、集群与资源启动顺序

这里写图片描述

启动流程步骤层次梳理

第一层: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 启动:

  • Network resource - 监控公共网络

  • 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 - 处理域名解析

组件与系统进程关联表

image-20221116151949962

集群与资源启动顺序表

img

 

二、Oracle 体系结构

img

 

三、GI与DB日志结构

img

四、启动完成后的服务状态

img

五、启动过程日志

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
 
posted @ 2022-11-16 15:15  雪竹子  阅读(1462)  评论(0编辑  收藏  举报