专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 数据库

11gR2 GI小结(一)

发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
11gR2 GI总结(一)

11gR2 GI变化还是蛮大的,出了问题找log,感觉都比较乱,有必要总结一下,对GI的software stack有一个理解。
一.11g clusterware resource
1.Networks
2.VIP addresses
3.Local listeners
4.SCAN listeners
5.ASM instances
6.Databases
7.Database instances
8.Services
9.User-defined resources
二.OCR包含资源
1.ASM disk groups, volumes, file systems, and instances
2.RAC databases and instances
3.SCAN listeners and local listeners
4.SCAN VIPs and local VIPs
5.Nodes and node applications
6.User-defined resources
7.Its own backups
三.Grid Infrastructure process overview:


 

1.Oracle agent include the following(不要求Root权限):
EVMD and EVMLOGGER
the gipc daemon
the gpnp daemon
The mDNS daemon
2.Oracle root Agent include(Root privige):
CRS daemon
CTSS daemon
Disk Monitoring daemon
ACFS drivers
3.CRS started,将创建另外的oracle agent and oracle root agent,这里如果GI是在grid账户下,grid agent include:
Starting and monitoring the local ASM instance
ONS and eONS daemons
The SCAN listener, where applicable
The Node listener
4,oracle root agent最终include:
GNS, if configured
GNS VIP if GNS enabled
ACFS Registry
Network
SCAN VIP, if applicable
Node VIP

一.11g rac oracle clusterware key service essential:
1,group service,manage cluster service
2,node monitor or the 'heartbeat' monitor the status of nodes in RAC
3,locking service performed by the LMS database process to manage concurrency activities for RAC
4,HA resource management for failover or load-balance

Oracle Clusterware consists of:
1,oracle cluster registry(包含db配置信息和crs信息,比如node list,cluster database instance  mapping information,crs resource profiles.
相关命令:ocrcheck.


ce/File not configured Device/File not configured Device/File not configured Cluster registry integrity check succeeded

2,voting disk(所有节点读写心跳信息的重要机制,used to shutdown,fence,or reboot either nodes when network communication is lost.in order to prevet thesplit-brain,protect the db infomation.check configuration information:

3,control files(scls_src) for clusterware(these control files enable and disable processes,such as enable or disable Oprocd and Oslsvmon process,
 stop key daemons for crsd.bin and ocssd.bin,prevent the cluster startup when the reboots is occur.
For linux OS is located:
[grid@node1 scls_scr]$ pwd
/etc/oracle/scls_scr
[grid@node1 scls_scr]$ ls
node1

二.11G Cluster backgroud process

OHAS包含一下守护进程和服务
1.The Grid Plug And Play (GPnP) daemon:
maintains the Grid Plug and Play profile and coordinates distribution of updates across all nodes in the cluster.
The Grid Plug and Playprofile essentially contains sufficient information to start Clusterware。
之前的版本,以上信息是存储在OCR中,11gR2 OCR可以存储在ASM中,所以以上信息需要在启动ASM之前能够获得。
2.The Grid Interprocess Communication (GIPC) daemon
此守护进程支持GI通信。
3.The multicast DNS (mDNS) service
4.The Grid Naming Service (GNS)
Cluster Ready Serevice Stack包含一下daemons and service
1.Cluster Ready Services (CRS):
Cluster Ready Service Daemon:CRSD(manage the culsterware resource ofr app and handle the process for starting,stopping,
and failing,maintail all configuration profiles,monitoring instance,listeners service).
2.Oracle Cluster Synchronization Service Daemon:OCSSD
provide the mechanism that grants access to node membership(group service,locking,concurrency operation.这个daemon终止,将引起机器重启)
3.The Cluster Synchronization Services Agent (cssdagent):
start,stop monitor the status of the ocssd daemon,if the cssdagent discovers the ocssd daemon has stopped,it shutdown the node.
4.The Cluster Synchronization Services Monitor (cssdmonitor) process
monitors the scheduling of CPU on the node,如果发现节点HANG,shutdown the node 保证数据一致性 .
5.The Disk Monitor (diskmon) daemon
The diskmon daemon monitors and performs I/O fencing for Exadata storage. On the basis that Exadata storage could be added
to any RAC node at any time, the diskmon daemon is always started when ocssd starts.
Therefore, the diskmon daemon will always be present, regardless of whether the cluster uses Exadata storage
6.The Oracle Clusterware Kill (oclskd) daemon
is used by CSS to stop processes associated with CSS group members for which stop requests have been received from other nodes in the cluster
7.The Cluster Time Synchronization Service (CTSS)
8.Event Monitor Daemon:EVMD
9.The Event Manager Logger (EVMLOGGER) daemon
The evmlogger daemon is started by the evmd daemon. It subscribes to a list of events read from a
configuration file, and it runs user-defined actions when those events occur. This daemon is intended to maintain backward compatibility
10.The Oracle Notification Service (ONS, eONS)
This publish-and-subscribe service distributes Fast Application Notification (FAN) events to interested clients in the
environment. Oracle plans to merge ONS and eONS into the evmd daemon with one of the next patchsets for 11.2
RAC事件和信息管理,EVMD产生一个持久的子进程evmlogger,此进程产生各种logfile,配置文件located:$ORACLE_HOME/evm/admin/conf/evmlogger.conf
四.启动顺序
1.initialization and shutdown scripts for clusterware
before 11G R2:
orginate from>init daemon(/etc/inittab)=
# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon
h1:35:respawn:/etc/init.d/init.evmd run >/dev/null 2>&1 </dev/null
h2:35:respawn:/etc/init.d/init.cssd fatal >/dev/null 2>&1 </dev/nul l
h3:35:respawn:/etc/init.d/init.crsd run >/dev/null 2>&1 </dev/null

1.启动守护进程
h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null.
2.调用/etc/init.d/ohasd script,启动$GRID_HOME/bin/ohasd.bin
3.ohasd.bin调用$GRID_HOME/bin/下相关文件,产生:
oraagent.bin, started as the Grid software owner
cssdmonitor, started as root
cssdagent, started as root
orarootagent.bin, started as root
4.Oracle Root Agent启动以下执行文件,来自于$GRID_HOME/bin/
crsd.bin: started as root
diskmon.bin: started as the Grid software owner
octssd.bin: started as root
5.Oracle Agent作为Grid用户启动如下:
evmd.bin: started as the Grid software owner
evmlogger.bin: started as the Grid software owner
gipcd.bin: started as the Grid software owner
gpnpd.bin: started as the Grid software owner
mdnsd.bin: started as the Grid software owner
6,一旦CRS守护进程被Oracel Root Agent创建,CRS开始启动,将创建Oracle Agent和root agent,
这个里的agent区别于OHASD创建的agent,可以通过log的位置来判断,$LOG_HOME/agent/crsd/,OHASD创建的agent log位于$LOG_HOME/agent/ohasd。
crsd.bin创建如下:
oraagent.bin: started as the Grid software owner
oraagent.bin: started as oracle
oraarootgent.bin: started as root
7,grid software owner的oracle agent(oraagent.bin)创建如下,拥有者为grid
Clustered ASM instance
ons
enhanced ONS (eONS), a Java process
tnslsnr: a SCAN listener
tnslsnr: a node listener
8,最后Oracle Root Agent will start the following resources:
The network resource
The SCAN virtual IP address
The Node virtual IP address
The GNS virtual IP address if GNS is configured
The GNS daemon if the cluster is configured to use GNS
The ASM Cluster File System Registry

五.管理工具介绍
1,Clusterware Control Utility
手动启动和停止clusterware
[root@node1]# ./crsctl start cluster -all
[root@node1]# ./crsctl stop cluster –all
检查状态
crsctl check cluster -all
**************************************************************
node1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
node2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
查看HA Service Stack状态:
[grid@node2 ~]$ crsctl status resource -t -init
--------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------
Cluster Resources
--------------------------------------------
ora.asm
      1        ONLINE  ONLINE       node2                    Started            
ora.cluster_interconnect.haip
      1        ONLINE  ONLINE       node2                                       
ora.crf
      1        ONLINE  ONLINE       node2                                       
ora.crsd
      1        ONLINE  ONLINE       node2                                       
ora.cssd
      1        ONLINE  ONLINE       node2                                       
ora.cssdmonitor
      1        ONLINE  ONLINE       node2                                       
ora.ctssd
      1        ONLINE  ONLINE       node2                    OBSERVER           
ora.diskmon
      1        OFFLINE OFFLINE                                                  
ora.drivers.acfs
      1        ONLINE  ONLINE       node2                                       
ora.evmd
      1        ONLINE  ONLINE       node2                                       
ora.gipcd
      1        ONLINE  ONLINE       node2                                       
ora.gpnpd
      1        ONLINE  ONLINE       node2                                       
ora.mdnsd
      1        ONLINE  ONLINE       node2       

使用SRVCTL管理resource

 

enable

disable

start

stop

relocate

status

add

remove

modify

config

getenv

setenv

unsetenv

Database

Y

Y

Y

Y

 

Y

Y

Y

Y

Y

Y

Y

Y

Instance

Y

Y

Y

Y

 

Y

Y

Y

Y

 

 

 

 

Service

Y

Y

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

Nodeapps

Y

Y

Y

Y

 

Y

Y

Y

Y

Y

Y

Y

Y

Vip

Y

Y

Y

Y

 

Y

Y

Y

 

Y

Y

Y

Y

Asm

Y

Y

Y

Y

 

Y

Y

Y

Y

Y

Y

Y

Y

Diskgroup

Y

Y

Y

Y

 

Y

 

Y

 

 

 

 

 

Listener

Y

Y

Y

Y

 

Y

Y

Y

Y

Y

Y

Y

Y

Scan

Y

Y

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

Scan_listener

Y

Y

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

Srvpool

 

 

 

 

 

Y

Y

Y

Y

Y

 

 

 

Server

 

 

 

 

Y

Y

 

 

 

 

 

 

 

Oc4j

Y

Y

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

Home

 

 

Y

Y

 

Y

 

 

 

 

 

 

 

Filesystem

Y

Y

Y

Y

 

Y

Y

Y

Y

Y

 

 

 

gns

Y

Y

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

其它工具续二.

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: