实验内容如下:
检查集群状态:
[grid@rac122 ~]$ crsctl check cluster -all ************************************************************** rac121: CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online ************************************************************** rac122: CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online **************************************************************
查看资源状态:
[grid@rac122 ~]$ crsctl status resource -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATA.dg ONLINE ONLINE rac121 ONLINE ONLINE rac122 ora.FRA.dg ONLINE ONLINE rac121 ONLINE ONLINE rac122 ora.LISTENER.lsnr ONLINE ONLINE rac121 ONLINE ONLINE rac122 ora.NEW_RACDB_LISTENER.lsnr ONLINE ONLINE rac121 ONLINE ONLINE rac122 ora.RACDB_DATA.dg ONLINE ONLINE rac121 ONLINE ONLINE rac122 ora.RACDB_LISTENER.lsnr ONLINE ONLINE rac121 ONLINE ONLINE rac122 ora.asm ONLINE ONLINE rac121 Started ONLINE ONLINE rac122 Started ora.gsd ONLINE OFFLINE rac121 ONLINE OFFLINE rac122 ora.net1.network ONLINE ONLINE rac121 ONLINE ONLINE rac122 ora.ons ONLINE ONLINE rac121 ONLINE ONLINE rac122 ora.registry.acfs ONLINE ONLINE rac121 ONLINE ONLINE rac122 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE rac122 ora.cvu 1 ONLINE ONLINE rac122 ora.oc4j 1 ONLINE ONLINE rac122 ora.rac121.vip 1 ONLINE ONLINE rac121 ora.rac122.vip 1 ONLINE ONLINE rac122 ora.racdb.db 1 ONLINE ONLINE rac121 Open 2 ONLINE ONLINE rac122 Open ora.scan1.vip 1 ONLINE ONLINE rac122
停止集群【要用root用户执行】:-all 停止所以,不加只停止本地。
[root@rac121 ~]# /oradata/oracleapp/11.2.0/grid/bin/crsctl stop cluster -all CRS-2673: Attempting to stop 'ora.crsd' on 'rac121' CRS-2673: Attempting to stop 'ora.crsd' on 'rac122' CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac122' CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac122' CRS-2673: Attempting to stop 'ora.NEW_RACDB_LISTENER.lsnr' on 'rac122' CRS-2673: Attempting to stop 'ora.RACDB_LISTENER.lsnr' on 'rac122' CRS-2673: Attempting to stop 'ora.oc4j' on 'rac122' CRS-2673: Attempting to stop 'ora.cvu' on 'rac122' CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'rac122' CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac122' CRS-2673: Attempting to stop 'ora.racdb.db' on 'rac122' CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac122' CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac121' CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac121' CRS-2673: Attempting to stop 'ora.NEW_RACDB_LISTENER.lsnr' on 'rac121' CRS-2673: Attempting to stop 'ora.RACDB_LISTENER.lsnr' on 'rac121' CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac121' CRS-2673: Attempting to stop 'ora.racdb.db' on 'rac121' CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac121' CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac122' succeeded CRS-2677: Stop of 'ora.NEW_RACDB_LISTENER.lsnr' on 'rac122' succeeded CRS-2677: Stop of 'ora.RACDB_LISTENER.lsnr' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.rac122.vip' on 'rac122' CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.scan1.vip' on 'rac122' CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac121' succeeded CRS-2677: Stop of 'ora.NEW_RACDB_LISTENER.lsnr' on 'rac121' succeeded CRS-2677: Stop of 'ora.scan1.vip' on 'rac122' succeeded CRS-2677: Stop of 'ora.rac122.vip' on 'rac122' succeeded CRS-2677: Stop of 'ora.RACDB_LISTENER.lsnr' on 'rac121' succeeded CRS-2673: Attempting to stop 'ora.rac121.vip' on 'rac121' CRS-2677: Stop of 'ora.rac121.vip' on 'rac121' succeeded CRS-2677: Stop of 'ora.registry.acfs' on 'rac122' succeeded CRS-2677: Stop of 'ora.registry.acfs' on 'rac121' succeeded CRS-2677: Stop of 'ora.racdb.db' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.FRA.dg' on 'rac122' CRS-2673: Attempting to stop 'ora.RACDB_DATA.dg' on 'rac122' CRS-2677: Stop of 'ora.racdb.db' on 'rac121' succeeded CRS-2673: Attempting to stop 'ora.FRA.dg' on 'rac121' CRS-2673: Attempting to stop 'ora.RACDB_DATA.dg' on 'rac121' CRS-2677: Stop of 'ora.FRA.dg' on 'rac122' succeeded CRS-2677: Stop of 'ora.FRA.dg' on 'rac121' succeeded CRS-2677: Stop of 'ora.RACDB_DATA.dg' on 'rac122' succeeded CRS-2677: Stop of 'ora.RACDB_DATA.dg' on 'rac121' succeeded CRS-2677: Stop of 'ora.oc4j' on 'rac122' succeeded CRS-2677: Stop of 'ora.cvu' on 'rac122' succeeded CRS-2677: Stop of 'ora.DATA.dg' on 'rac121' succeeded CRS-2673: Attempting to stop 'ora.asm' on 'rac121' CRS-2677: Stop of 'ora.asm' on 'rac121' succeeded CRS-2673: Attempting to stop 'ora.ons' on 'rac121' CRS-2677: Stop of 'ora.ons' on 'rac121' succeeded CRS-2673: Attempting to stop 'ora.net1.network' on 'rac121' CRS-2677: Stop of 'ora.net1.network' on 'rac121' succeeded CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac121' has completed CRS-2677: Stop of 'ora.DATA.dg' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.asm' on 'rac122' CRS-2677: Stop of 'ora.asm' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.ons' on 'rac122' CRS-2677: Stop of 'ora.ons' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.net1.network' on 'rac122' CRS-2677: Stop of 'ora.net1.network' on 'rac122' succeeded CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac122' has completed CRS-2677: Stop of 'ora.crsd' on 'rac121' succeeded CRS-2673: Attempting to stop 'ora.ctssd' on 'rac121' CRS-2677: Stop of 'ora.crsd' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.evmd' on 'rac121' CRS-2673: Attempting to stop 'ora.asm' on 'rac121' CRS-2673: Attempting to stop 'ora.ctssd' on 'rac122' CRS-2673: Attempting to stop 'ora.evmd' on 'rac122' CRS-2673: Attempting to stop 'ora.asm' on 'rac122' CRS-2677: Stop of 'ora.evmd' on 'rac121' succeeded CRS-2677: Stop of 'ora.evmd' on 'rac122' succeeded CRS-2677: Stop of 'ora.asm' on 'rac121' succeeded CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac121' CRS-2677: Stop of 'ora.asm' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac122' CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac122' succeeded CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac121' succeeded CRS-2677: Stop of 'ora.ctssd' on 'rac121' succeeded CRS-2673: Attempting to stop 'ora.cssd' on 'rac121' CRS-2677: Stop of 'ora.ctssd' on 'rac122' succeeded CRS-2673: Attempting to stop 'ora.cssd' on 'rac122' CRS-2677: Stop of 'ora.cssd' on 'rac121' succeeded CRS-2677: Stop of 'ora.cssd' on 'rac122' succeeded [root@rac121 ~]#
起动集群【要用root用户执行】:-all 停止所以;不加只停止本地;也可指定启动几个:crsctl start cluster -n rac121 rac122
[root@rac121 ~]# /oradata/oracleapp/11.2.0/grid/bin/crsctl start cluster -all CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac121' CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac122' CRS-2676: Start of 'ora.cssdmonitor' on 'rac122' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'rac122' CRS-2672: Attempting to start 'ora.diskmon' on 'rac122' CRS-2676: Start of 'ora.diskmon' on 'rac122' succeeded CRS-2676: Start of 'ora.cssdmonitor' on 'rac121' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'rac121' CRS-2672: Attempting to start 'ora.diskmon' on 'rac121' CRS-2676: Start of 'ora.diskmon' on 'rac121' succeeded CRS-2676: Start of 'ora.cssd' on 'rac122' succeeded CRS-2672: Attempting to start 'ora.ctssd' on 'rac122' CRS-2676: Start of 'ora.cssd' on 'rac121' succeeded CRS-2672: Attempting to start 'ora.ctssd' on 'rac121' CRS-2676: Start of 'ora.ctssd' on 'rac122' succeeded CRS-2672: Attempting to start 'ora.evmd' on 'rac122' CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac122' CRS-2676: Start of 'ora.ctssd' on 'rac121' succeeded CRS-2672: Attempting to start 'ora.evmd' on 'rac121' CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac121' CRS-2676: Start of 'ora.evmd' on 'rac122' succeeded CRS-2676: Start of 'ora.evmd' on 'rac121' succeeded CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'rac122' succeeded CRS-2672: Attempting to start 'ora.asm' on 'rac122' CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'rac121' succeeded CRS-2672: Attempting to start 'ora.asm' on 'rac121' CRS-2676: Start of 'ora.asm' on 'rac121' succeeded CRS-2672: Attempting to start 'ora.crsd' on 'rac121' CRS-2676: Start of 'ora.crsd' on 'rac121' succeeded CRS-2676: Start of 'ora.asm' on 'rac122' succeeded CRS-2672: Attempting to start 'ora.crsd' on 'rac122' CRS-2676: Start of 'ora.crsd' on 'rac122' succeeded