Monday, 9 December 2013

Oracle RAC Clusterware startup sequence 11gR2

Clusterware startup sequence 11gR2


Don't let this picture scare you too much.  You aren't responsible for managing all of these processes, that is the Clusterware's job!
Short summary of the startup sequence: INIT spawns init.ohasd (with respawn) which in turn starts the OHASD process (Oracle High Availability Services Daemon).  This daemon spawns 4 processes.
Level 1: OHASD Spawns:
  • cssdagent - Agent responsible for spawning CSSD.
  • orarootagent - Agent responsible for managing all root owned ohasd resources.
  • oraagent - Agent responsible for managing all oracle owned ohasd resources.
  • cssdmonitor - Monitors CSSD and node health (along wth the cssdagent).
Level 2: OHASD rootagent spawns:
  • CRSD - Primary daemon responsible for managing cluster resources.
  • CTSSD - Cluster Time Synchronization Services Daemon
  • Diskmon
  • ACFS (ASM Cluster File System) Drivers 
Level 2: OHASD oraagent spawns:
  • MDNSD - Used for DNS lookup
  • GIPCD - Used for inter-process and inter-node communication
  • GPNPD - Grid Plug & Play Profile Daemon
  • EVMD - Event Monitor Daemon
  • ASM - Resource for monitoring ASM instances
Level 3: CRSD spawns:
  • orarootagent - Agent responsible for managing all root owned crsd resources.
  • oraagent - Agent responsible for managing all oracle owned crsd resources.
Level 4: CRSD rootagent spawns:
  • Network resource - To monitor the public network
  • SCAN VIP(s) - Single Client Access Name Virtual IPs
  • Node VIPs - One per node
  • ACFS Registery - For mounting ASM Cluster File System
  • GNS VIP (optional) - VIP for GNS
Level 4: CRSD oraagent spawns:
  • ASM Resouce - ASM Instance(s) resource
  • Diskgroup - Used for managing/monitoring ASM diskgroups.  
  • DB Resource - Used for monitoring and managing the DB and instances
  • SCAN Listener - Listener for single client access name, listening on SCAN VIP
  • Listener - Node listener listening on the Node VIP
  • Services - Used for monitoring and managing services
  • ONS - Oracle Notification Service
  • eONS - Enhanced Oracle Notification Service
  • GSD - For 9i backward compatibility
  • GNS (optional) - Grid Naming Service - Performs name resolution
This image shows the various levels more clearly:



OHASD Phase:-
OHASD Agent Phase:-
  • OHASD Agent starts and in turn this will start
gipcdGrid interprocess communication daemon, used for monitoring cluster interconnect
mdnsdMulticast DNS service It resolves DNS requests on behalf of GNS
gnsThe Grid Naming Service (GNS), a gateway between DNS and mdnsd, resolves DNS requests
gpnpdGrid Plug and Play Daemon, Basically a profile similar like OCR contents stored in XML format in $GI_HOME/gpnp/profiles/ etc., this is where used by OCSSD also to read the ASM disk locations to start up with out having ASM to be up, moreover this also provides the plug and play profile where this can be distributed across nodes to cluster
evmd/
evmlogger
Evm service will be provided by evmd daemon, which is a information about events happening in cluster, stop node,start node, start instance etc.
  • cssdagent (cluster synchronization service agent), in turn starts
ocssdCluster synchronization service daemon which manages node membership in the cluster
If cssd found that ocssd is down, it will reboot the node to protect the data integrity.

  • cssdmonitor (cluster synchronization service monitor), replaces oprocd and provides I/O fencing

  • OHASD orarootagent starts and in turn starts
crsd.binCluster ready services, which manages high availability of cluster resources , like stopping , starting, failing over etc.
diskmon.bindisk monitor (diskdaemon monitor) provides I/O fencing for exadata storage
octssd.binCluster synchronization time services , provides Network time protocol services but manages its own rather depending on OS
CRSD Agent Phase:- crsd.bin starts two more agents
crsd orarootagent(Oracle root agent) starts and in turn this will start
gnsGrid interprocess communication daemon, used for monitoring cluster interconnect
gns vipMulticast DNS service It resolves DNS requests on behalf of GNS
NetworkMonitor the additional networks to provide HAIP to cluster interconnects
Scan vipMonitor the scan vip, if found fail or unreachable failed to other node
Node vipMonitor the node vip, if found fail or unreachable failed to other node
crsd oraagent(Oracle Agent) starts and in turn it will start (the same functionality in 11gr1 and 10g managed by racgmain and racgimon background process) which is now managed by crs Oracle agent itself.
·
ASM & disk groupsStart & monitor local asm instance
ONSFAN feature, provides notification to interested client
eONSFAN feature, provides notification to interested client
SCAN ListenerStart & Monitor scan listener
Node ListenerStart & monitor the node listener (rdbms?)

No comments:

Post a Comment