crsctl stop crs 与 crsctl stop resources的区别
crsctl stop crs 与 crsctl stop resources的区别
1.crsctl stop crs操作过程
C:/oracle/product/10.2.0/crs/BIN>crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
C:/oracle/product/10.2.0/crs/BIN>crs_stat -p
CRS-0184: 无法与 CRS 守护程序通信。
从这里可以知道,CRS的相关守护进程已经停止
C:/oracle/product/10.2.0/crs/BIN>crsctl start crs
Attempting to start CRS stack
^C
启动了半天也没启动,不知道是何原因,于是终止了这个命令运行ctrl+c
于是在运行如下命令:
C:/oracle/product/10.2.0/crs/BIN>crsctl stop crs
Stopping resources.
Error while stopping resources. Possible cause: CRSD is down
Stopping CSSD.
Unable to communicate with the CSS daemon.
C:/oracle/product/10.2.0/crs/BIN>crs_stat -t
CRS-0184: 无法与 CRS 守护程序通信。
C:/oracle/product/10.2.0/crs/BIN>crsctl start resources
Starting resources.
^C
半天也没响应,于是想通过crs_stop和crs_start来尝试下,结果因为crs相关的守护进程已经停止,所以无法执行命令
C:/oracle/product/10.2.0/crs/BIN>
C:/oracle/product/10.2.0/crs/BIN>crs_stop -all
CRS-0184: 无法与 CRS 守护程序通信。
C:/oracle/product/10.2.0/crs/BIN>crs_start -all
CRS-0184: 无法与 CRS 守护程序通信。
于是又尝试运行crsctl start crs,不把crs守护进程启动,就无法运行相关命令,没想到这次运行成功了
C:/oracle/product/10.2.0/crs/BIN>crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
C:/oracle/product/10.2.0/crs/BIN>crs_stat -t
名称 类型 目标 状态 主机
------------------------------------------------------------
ora.rac.db application ONLINE ONLINE rac2
ora....c1.inst application ONLINE OFFLINE
ora....c2.inst application ONLINE ONLINE rac2
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE OFFLINE
ora.rac1.gsd application ONLINE OFFLINE
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
有三个个资源没有启动,于是运行下面的命令,启动下crs资源
C:/oracle/product/10.2.0/crs/BIN>crsctl start resources
Starting resources.
Successfully started CRS resources
C:/oracle/product/10.2.0/crs/BIN>crs_stat -t
名称 类型 目标 状态 主机
---------------------------------------------------------
ora.rac.db application ONLINE ONLINE rac2
ora....c1.inst application ONLINE ONLINE rac1
ora....c2.inst application ONLINE ONLINE rac2
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
至此,一切正常
2.crsctl stop resources操作过程
C:/oracle/product/10.2.0/crs/BIN>crsctl stop resources
Stopping resources.
Successfully stopped CRS resources
C:/oracle/product/10.2.0/crs/BIN>crs_stat -t
名称 类型 目标 状态 主机
------------------------------------------------------------
ora.rac.db application ONLINE ONLINE rac2
ora....c1.inst application ONLINE OFFLINE
ora....c2.inst application ONLINE ONLINE rac2
ora....SM1.asm application ONLINE OFFLINE
ora....C1.lsnr application ONLINE OFFLINE
ora.rac1.gsd application ONLINE OFFLINE
ora.rac1.ons application ONLINE OFFLINE
ora.rac1.vip application ONLINE OFFLINE
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
C:/oracle/product/10.2.0/crs/BIN>crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
C:/oracle/product/10.2.0/crs/BIN>
注意crsctl stop resources 只停止了所操作节点的CRS resources,但是crs的相关进程并未停止
crsctl stop crs 不但停止了所操作节点的CRS resources,crs的相关进程也停止
-----end---