Oracle 11g rac中關於crsctl stop cluster/crs/has的區別


轉載至http://www.oracleplus.net/arch/1203.html,整理后得。

1 通過命令查看cluster/has/crs管理的內容

[root@11rac1 ~]# 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

[root@11rac1 ~]# crsctl check has

CRS-4638: Oracle High Availability Services is online

[root@11rac1 ~]# 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顯示的內容

 

2 分別執行3條命令查看結果顯示

2.1 crsctl stop cluster

root@11rac1 ~]# crsctl stop cluster

CRS-2673: Attempting to stop ‘ora.crsd’ on ’11rac1′

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.LISTENER_SCAN1.lsnr’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.CRS.dg’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.power.db’ on ’11rac1′

CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.11rac1.vip’ on ’11rac1′

CRS-2677: Stop of ‘ora.LISTENER_SCAN1.lsnr’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.scan1.vip’ on ’11rac1′

CRS-2677: Stop of ‘ora.scan1.vip’ on ’11rac1′ succeeded

CRS-2672: Attempting to start ‘ora.scan1.vip’ on ’11rac2′

CRS-2677: Stop of ‘ora.11rac1.vip’ on ’11rac1′ succeeded

CRS-2672: Attempting to start ‘ora.11rac1.vip’ on ’11rac2′

CRS-2677: Stop of ‘ora.power.db’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ’11rac1′

CRS-2676: Start of ‘ora.11rac1.vip’ on ’11rac2′ succeeded

CRS-2676: Start of ‘ora.scan1.vip’ on ’11rac2′ succeeded

CRS-2672: Attempting to start ‘ora.LISTENER_SCAN1.lsnr’ on ’11rac2′

CRS-2677: Stop of ‘ora.DATA.dg’ on ’11rac1′ succeeded

CRS-2676: Start of ‘ora.LISTENER_SCAN1.lsnr’ on ’11rac2′ succeeded

CRS-2677: Stop of ‘ora.CRS.dg’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.ons’ on ’11rac1′

CRS-2677: Stop of ‘ora.ons’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network’ on ’11rac1′

CRS-2677: Stop of ‘ora.net1.network’ on ’11rac1′ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ’11rac1′ has completed

CRS-2677: Stop of ‘ora.crsd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.ctssd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.evmd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2677: Stop of ‘ora.evmd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.ctssd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ’11rac1′

CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cssd’ on ’11rac1′

CRS-2677: Stop of ‘ora.cssd’ on ’11rac1′ succeeded

 

[root@11rac1 ~]# crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4530: Communications failure contacting Cluster Synchronization Services daemon

CRS-4534: Cannot communicate with Event Manager

 

[root@11rac1 ~]# crsctl check has

CRS-4638: Oracle High Availability Services is online

 

[root@11rac1 ~]# crsctl check cluster

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4530: Communications failure contacting Cluster Synchronization Services daemon

CRS-4534: Cannot communicate with Event Manager

這里可以看到stop cluster停了Clusterware stack,其實也就是官方文檔中指的Cluster Ready Services Stack。

2.2 crsctl stop has

繼續上面的操作

[root@11rac1 ~]# crsctl stop has

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.mdnsd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.crf’ on ’11rac1′

CRS-2677: Stop of ‘ora.crf’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd’ on ’11rac1′

CRS-2677: Stop of ‘ora.mdnsd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.gipcd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gpnpd’ on ’11rac1′ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ’11rac1′ has completed

CRS-4133: Oracle High Availability Services has been stopped.

 

stop has停的就是官方文檔中的Oracle High Availability Services Stack,但是Oracle High Availability Services Stack屬於Cluster Ready Services Stack依賴的底層,所以在停Oracle High Availability Services Stack會自動停Cluster Ready Services Stack,如下:

 

[root@11rac1 ~]# crsctl stop has

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.crsd’ on ’11rac1′

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.CRS.dg’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.power.db’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ’11rac1′

CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.11rac1.vip’ on ’11rac1′

CRS-2677: Stop of ‘ora.11rac1.vip’ on ’11rac1′ succeeded

CRS-2672: Attempting to start ‘ora.11rac1.vip’ on ’11rac2′

CRS-2677: Stop of ‘ora.power.db’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ’11rac1′

CRS-2676: Start of ‘ora.11rac1.vip’ on ’11rac2′ succeeded

CRS-2677: Stop of ‘ora.DATA.dg’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.CRS.dg’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.ons’ on ’11rac1′

CRS-2677: Stop of ‘ora.ons’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network’ on ’11rac1′

CRS-2677: Stop of ‘ora.net1.network’ on ’11rac1′ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ’11rac1′ has completed

CRS-2677: Stop of ‘ora.crsd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.crf’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.ctssd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.evmd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.mdnsd’ on ’11rac1′

CRS-2677: Stop of ‘ora.crf’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.evmd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.mdnsd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.ctssd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ’11rac1′

CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cssd’ on ’11rac1′

CRS-2677: Stop of ‘ora.cssd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gipcd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gpnpd’ on ’11rac1′ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ’11rac1′ has completed

CRS-4133: Oracle High Availability Services has been stopped.

這里可以看到在停has的時候,自動把上層服務也停了。

 

2.3 crsctl stop crs

這里的CRS其實指的是整個ORACLE集群,也不是 Cluster Ready Services Stack的簡寫。

[root@11rac1 ~]# crsctl stop crs

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.crsd’ on ’11rac1′

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.CRS.dg’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.power.db’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ’11rac1′

CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.11rac1.vip’ on ’11rac1′

CRS-2677: Stop of ‘ora.11rac1.vip’ on ’11rac1′ succeeded

CRS-2672: Attempting to start ‘ora.11rac1.vip’ on ’11rac2′

CRS-2677: Stop of ‘ora.power.db’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ’11rac1′

CRS-2676: Start of ‘ora.11rac1.vip’ on ’11rac2′ succeeded

CRS-2677: Stop of ‘ora.DATA.dg’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.CRS.dg’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.ons’ on ’11rac1′

CRS-2677: Stop of ‘ora.ons’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network’ on ’11rac1′

CRS-2677: Stop of ‘ora.net1.network’ on ’11rac1′ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ’11rac1′ has completed

CRS-2677: Stop of ‘ora.crsd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.crf’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.ctssd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.evmd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.mdnsd’ on ’11rac1′

CRS-2677: Stop of ‘ora.crf’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.evmd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.mdnsd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.ctssd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ’11rac1′

CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cssd’ on ’11rac1′

CRS-2677: Stop of ‘ora.cssd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gipcd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gpnpd’ on ’11rac1′ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ’11rac1′ has completed

CRS-4133: Oracle High Availability Services has been stopped.

 

通過上面的簡單測試,可以得出兩點:

1,crsctl stop cluster=crsctl stop crs+crsctl stop has,前提是先停cluster后,再停has

2,crsctl stop crs=crsctl stop has,如果之前沒有Oracle手動停cluster,那么crsctl stop crs與crsctl stop has的效果一樣

另外crsctl stop crs與crsctl stop has都只能操作當前節點,crsctl stop cluster可以一次操作集群中多個節點,前提是HAS服務正常運行。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM