11g crsctl start/stop crs 和 crsctl start/stop cluster 的关系


oracle 的数据库版本是 11.2.0.3,研究了下  crsctl start/stop  crs 和 crsctl start/stop cluster 的关系。

11gr2  oracle 把一些grid类的组件进行了打包,叫做 grid infrastructure ,简称GI,主要包括如下组件:


1) ohas :新增的 oracle high availability service。

2) crs:原有的clusterware 组件,功能有很大改变。

3) asm:以前是集成在dbca,现在单独抽了出来,添加了asmca,增强了asmcmd,增强了advm,acfs。

3) oracle net:就是以前数据库的监听那部分,增加了scan。


知道了这些后,就好理解 crsctl start/stop  crs 和 crsctl start/stop cluster 的关系


1) crsctl start/stop  crs  是对当前节点的相关资源进行操作的,是包含ohas的,通过check 可以查看结果

        [grid@node1 bin]$ ./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 start/stop  crs 是会影响到 这4种进程的


2) crsctl start/stop  cluster 可对集群的所有节点(当然包括当前节点)的相关资源进行操作的,前提是目标节点ohas必需是OK的,通过check 可以查看结果

        [grid@node1 bin]$ ./crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

        添加 -all  或者 -n node1,node2 参数 可对集群的所有节点或者指定 的 node1,node2 节点操作

[grid@node1 bin]$ ./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
**************************************************************


        crsctl start/stop  cluster  只会影响到 这三种进程,不会影响到 ohas。


        可以通过 crsctl enable/disable has 来控制has的是否随OS的启动而启动。类似crs 也有 crsctl enable/disable crs

        


原文地址:https://www.cnblogs.com/ctypyb2002/p/9793178.html