随笔:Crs,Has和Cluster在RAC环境里的区别
crsctl start/stop crs
crsctl start/stop has
crsctl start/stop cluster
这三个是在oracle集群里常用的命令,他们的使用也有一些区别
Has是在11g里新出的概念,10g里只有Crs.
以下测试都是在12c的环境里进行的:
1.单机环境里只能使用crsctl start/stop has,不能使用crsctl start/stop crs.
2.在停集群的时候,crsctl stop has/crs能有效的完成工作(只能停单节点),而crsctl stop cluster却不能停干净(可以同时停所有节点),还剩下has进程.
3.在起集群的过程里, crsctl start has/crs 也可以完成使命。crsctl start cluster却压根不作用(原因是无法连接Has).
原因其实很容易理解,看下面的命令:
crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
crsctl check has
CRS-4638: Oracle High Availability Services is online
crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
可以发现Crs=Has+Cluster,其中Has是主进程,Cluster都是
集群交互的进程。
writen by Caozhenyu