测试重启crs
[grid@rac01 ~]$ crsctl stat res -t
——————————————————————————–
NAME TARGET STATE SERVER STATE_DETAILS
——————————————————————————–
Local Resources
——————————————————————————–
ora.ARCH.dg
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.DATA.dg
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.DATA1.dg
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.LISTENER.lsnr
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.asm
ONLINE ONLINE rac01 Started
ONLINE ONLINE rac02 Started
ora.gsd
OFFLINE OFFLINE rac01
OFFLINE OFFLINE rac02
ora.net1.network
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.ons
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.registry.acfs
ONLINE ONLINE rac01
ONLINE ONLINE rac02
——————————————————————————–
Cluster Resources
——————————————————————————–
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac02
ora.cvu
1 ONLINE ONLINE rac01
ora.dzdz.db
1 OFFLINE OFFLINE Instance Shutdown
2 OFFLINE OFFLINE Instance Shutdown
ora.oc4j
1 ONLINE ONLINE rac02
ora.rac01.vip
1 ONLINE ONLINE rac01
ora.rac02.vip
1 ONLINE ONLINE rac02
ora.scan1.vip
1 ONLINE ONLINE rac02
___________________________________________________________________________________
[grid@rac01 ~]$ crs_stat -t
Name Type Target State Host
————————————————————
ora.ARCH.dg ora….up.type ONLINE ONLINE rac01
ora.DATA.dg ora….up.type ONLINE ONLINE rac01
ora.DATA1.dg ora….up.type ONLINE ONLINE rac01
ora….ER.lsnr ora….er.type ONLINE ONLINE rac01
ora….N1.lsnr ora….er.type ONLINE ONLINE rac02
ora.asm ora.asm.type ONLINE ONLINE rac01
ora.cvu ora.cvu.type ONLINE ONLINE rac01
ora.dzdz.db ora….se.type OFFLINE OFFLINE
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora….network ora….rk.type ONLINE ONLINE rac01
ora.oc4j ora.oc4j.type ONLINE ONLINE rac02
ora.ons ora.ons.type ONLINE ONLINE rac01
ora….SM1.asm application ONLINE ONLINE rac01
ora….01.lsnr application ONLINE ONLINE rac01
ora.rac01.gsd application OFFLINE OFFLINE
ora.rac01.ons application ONLINE ONLINE rac01
ora.rac01.vip ora….t1.type ONLINE ONLINE rac01
ora….SM2.asm application ONLINE ONLINE rac02
ora….02.lsnr application ONLINE ONLINE rac02
ora.rac02.gsd application OFFLINE OFFLINE
ora.rac02.ons application ONLINE ONLINE rac02
ora.rac02.vip ora….t1.type ONLINE ONLINE rac02
ora….ry.acfs ora….fs.type ONLINE ONLINE rac01
ora.scan1.vip ora….ip.type ONLINE ONLINE rac02
__________________________________________________________________
关闭crs
[root@rac01 bin]# ./crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘rac01’
CRS-2673: Attempting to stop ‘ora.crsd’ on ‘rac01’
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ‘rac01’
CRS-2673: Attempting to stop ‘ora.cvu’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.registry.acfs’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.ARCH.dg’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.DATA1.dg’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ‘rac01’
CRS-2677: Stop of ‘ora.DATA.dg’ on ‘rac01’ succeeded
CRS-2677: Stop of ‘ora.cvu’ on ‘rac01’ succeeded
CRS-2672: Attempting to start ‘ora.cvu’ on ‘rac02’
CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ‘rac01’ succeeded
CRS-2673: Attempting to stop ‘ora.rac01.vip’ on ‘rac01’
CRS-2676: Start of ‘ora.cvu’ on ‘rac02’ succeeded
CRS-2677: Stop of ‘ora.DATA1.dg’ on ‘rac01’ succeeded
CRS-2677: Stop of ‘ora.ARCH.dg’ on ‘rac01’ succeeded
CRS-2677: Stop of ‘ora.registry.acfs’ on ‘rac01’ succeeded
CRS-2673: Attempting to stop ‘ora.asm’ on ‘rac01’
CRS-2677: Stop of ‘ora.rac01.vip’ on ‘rac01’ succeeded
CRS-2672: Attempting to start ‘ora.rac01.vip’ on ‘rac02’
CRS-2677: Stop of ‘ora.asm’ on ‘rac01’ succeeded
CRS-2676: Start of ‘ora.rac01.vip’ on ‘rac02’ succeeded
CRS-2673: Attempting to stop ‘ora.ons’ on ‘rac01’
CRS-2677: Stop of ‘ora.ons’ on ‘rac01’ succeeded
CRS-2673: Attempting to stop ‘ora.net1.network’ on ‘rac01’
CRS-2677: Stop of ‘ora.net1.network’ on ‘rac01’ succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on ‘rac01’ has completed
CRS-2677: Stop of ‘ora.crsd’ on ‘rac01’ succeeded
CRS-2673: Attempting to stop ‘ora.mdnsd’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.crf’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.ctssd’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.evmd’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.asm’ on ‘rac01’
CRS-2673: Attempting to stop ‘ora.drivers.acfs’ on ‘rac01’
CRS-2677: Stop of ‘ora.crf’ on ‘rac01’ succeeded
CRS-2677: Stop of ‘ora.mdnsd’ on ‘rac01’ succeeded
CRS-2677: Stop of ‘ora.evmd’ on ‘rac01’ succeeded
CRS-2677: Stop of ‘ora.ctssd’ on ‘rac01’ succeeded
CRS-2677: Stop of ‘ora.drivers.acfs’ on ‘rac01’ succeeded
CRS-2677: Stop of ‘ora.asm’ on ‘rac01’ succeeded
CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ‘rac01’
CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ‘rac01’ succeeded
CRS-2673: Attempting to stop ‘ora.cssd’ on ‘rac01’
CRS-2677: Stop of ‘ora.cssd’ on ‘rac01’ succeeded
CRS-2673: Attempting to stop ‘ora.gipcd’ on ‘rac01’
CRS-2677: Stop of ‘ora.gipcd’ on ‘rac01’ succeeded
CRS-2673: Attempting to stop ‘ora.gpnpd’ on ‘rac01’
CRS-2677: Stop of ‘ora.gpnpd’ on ‘rac01’ succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘rac01’ has completed
CRS-4133: Oracle High Availability Services has been stopped.
检查crs的状态
[grid@rac01 bin]$ ./crsctl stat res -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
[grid@rac01 bin]$ ./crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
重新启动crs
[root@rac01 bin]# ./crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
检查crs的状态
[grid@rac01 bin]$ ./crsctl stat res -t
——————————————————————————–
NAME TARGET STATE SERVER STATE_DETAILS
——————————————————————————–
Local Resources
——————————————————————————–
ora.ARCH.dg
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.DATA.dg
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.DATA1.dg
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.LISTENER.lsnr
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.asm
ONLINE ONLINE rac01 Started
ONLINE ONLINE rac02 Started
ora.gsd
OFFLINE OFFLINE rac01
OFFLINE OFFLINE rac02
ora.net1.network
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.ons
ONLINE ONLINE rac01
ONLINE ONLINE rac02
ora.registry.acfs
ONLINE ONLINE rac01
ONLINE ONLINE rac02
——————————————————————————–
Cluster Resources
——————————————————————————–
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac02
ora.cvu
1 ONLINE ONLINE rac02
ora.dzdz.db
1 OFFLINE OFFLINE Instance Shutdown
2 OFFLINE OFFLINE Instance Shutdown
ora.oc4j
1 ONLINE ONLINE rac02
ora.rac01.vip
1 ONLINE ONLINE rac01
ora.rac02.vip
1 ONLINE ONLINE rac02
ora.scan1.vip
1 ONLINE ONLINE rac02
[grid@rac01 bin]$ ./crs_stat -t
Name Type Target State Host
————————————————————
ora.ARCH.dg ora….up.type ONLINE ONLINE rac01
ora.DATA.dg ora….up.type ONLINE ONLINE rac01
ora.DATA1.dg ora….up.type ONLINE ONLINE rac01
ora….ER.lsnr ora….er.type ONLINE ONLINE rac01
ora….N1.lsnr ora….er.type ONLINE ONLINE rac02
ora.asm ora.asm.type ONLINE ONLINE rac01
ora.cvu ora.cvu.type ONLINE ONLINE rac02
ora.dzdz.db ora….se.type OFFLINE OFFLINE
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora….network ora….rk.type ONLINE ONLINE rac01
ora.oc4j ora.oc4j.type ONLINE ONLINE rac02
ora.ons ora.ons.type ONLINE ONLINE rac01
ora….SM1.asm application ONLINE ONLINE rac01
ora….01.lsnr application ONLINE ONLINE rac01
ora.rac01.gsd application OFFLINE OFFLINE
ora.rac01.ons application ONLINE ONLINE rac01
ora.rac01.vip ora….t1.type ONLINE ONLINE rac01
ora….SM2.asm application ONLINE ONLINE rac02
ora….02.lsnr application ONLINE ONLINE rac02
ora.rac02.gsd application OFFLINE OFFLINE
ora.rac02.ons application ONLINE ONLINE rac02
ora.rac02.vip ora….t1.type ONLINE ONLINE rac02
ora….ry.acfs ora….fs.type ONLINE ONLINE rac01
ora.scan1.vip ora….ip.type ONLINE ONLINE rac02