启动和停止CRS(oracle11gR2)
CRS-2677: Stop of 'ora DATA.dg' succeededCRS-2677: Stop of ' ora. oCRVotE dg on 'node2 succeededCRS-2673: Attempting to stop ora. asm on ' node2CRS-2677: Stop of ora asmon 'node 2 succeededCRS-2677: Stop of ora oc4j on 'node2 succeededCRS-2673: Attempting to stop 'ora. ons'on ' node2CRS-2677: Stop of ' ora. ons'on node2 succeededCRS-2673: Attempting to stop ora. net 1 network on 'node2CRS-2677: Stop of ora net1 networkon 'node succeededCRS-2792: Shutdown of Cluster Ready services- managed resources on node 2 has completedCRS-2677: Stop of ' ora crsd on 'node 2 succeededCRS-2673: Attempting to stop ora. mdns on ' node2CRS-2673: Attempting to stop ora crf on ' node2CRS-2673: Attempting to stop ora. ctssd' on ' node2CRS-2673: Attempting to stop 'ora. evmd' on ' node2CRS-2673: Attempting to stop 'ora. asm on ' node2CRS-2673: Attempting to stop 'ora. drivers. acfs' on node2CRS-2677: Stop of 'ora crf on 'node2 succeededCRS-2677: Stop of ' ora mdsd on 'node2 succeededCRS-2677: Stop of ora.evmdon'node2 ' succeededCRS-2677: Stop of ora asmon 'node succeededCRS-2673: Attempting to stop 'ora cluster_ interconnect haip on 'node2CRS-2677: Stop of'ora.drivers. acfs'on'node2'succeedede 2'succeededCRS-2677: Stop of ' ora cluster interconnect haip on nodCRS-2677: Stop of 'ora ctss 'on node2 succeededCRS-2673: Attempting to stop ora. cssd'on node2CRS-2677: Stop of ora cssd on ' node 2 succeededCRS-2673: Attempting to stop ora. gipcd'on'node2CRS-2677: Stop of ora.gipcd on 'node2'succeededCRS-2673: Attempting to stop ora. gpnpd on node2CRS-2677: Stop of 'ora. gpnpd'on ' succeededCRS-2793: Shutdown of Oracle high availability services- managed resources on 'node 2hascompletedCRS-4133: Oracle high availability services has been stopped要停止在所有节点上运行的全部集群资源[root@nodel bin]# / crsctl stop cluster -allCRS-2673: Attempting to stop ora. crsd'on'node1CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on node1CRS-2673: Attempting to stop 'ora cvu 'node1CRS-2673: Attempting to stop ora. oc4j'on ' node1CRS-2673: Attempting to stop ora. LIsTENER SCAN1.snr'on node 1CRS-2673: Attempting to stop 'ora. OCRVOTEdg on ' node1CRS-2673: Attempting to stop ' ora registry. acfs on node1CRS-2673: Attempting to stop 'ora node. db'on 'node1CRS-2673: Attempting to stop ora. LISTENER. Isnr'on ' node1CRS-2673: Attempting to stop ora crsd on node 2CRS-2790: Starting shutdown of Cluster Ready services-managed resources on ' node2CRS-2673: Attempting to stop ora. OCRVOTEdgon node2CRS-2673: Attempting to stop ora registry. acfs on node2CRS-2673: Attempting to stop ora node. db' on node2CRS-2673: Attempting to stop ora. LISTENER. Isnr'on ' node2CRS-2677: Stop of 'ora. LISTENER. Isnron 'node2 succeededCRS-2673: Attempting to stop ora node2. vip on 'node 2CRS-2677: Stop of ora. LISTENER SCAN1snr on 'nodel succeededCRS-2673: Attempting to stop ora scan 1.vipon node1CRS-2677: Stop of 'ora. LISTENER.Isnr'onnodel succeededCRS-2673: Attempting to stop ora node 1.vipon ' node1CRS-2677: Stop of ora node db on 'node2 succeededCRS-2673: Attempting to stop ora dAtA. dg on 'node2CRS-2677: Stop of ora registry. acfs on node2'succeededCRS-2677: Stop of ora node2. vipon 'node2 succeededCRS-2677: Stop of 'ora node 1. vipon 'node 1 succeededCRS-2677: Stop of 'ora DATA.dg an ' node2 succeededCRS-2677: Stop of 'ora scan 1. vip on 'node 1 succeededCRS-2677: Stop of ' ora.cvu'on ' node1'succeededCRS-2677: Stop of ora. OCRVOTEdg on 'node2'succeededCRS-2673: Attempting to stop ora asmon node2CRS-2677: Stop of ora asmon 'node2 succeededCRS-2673: Attempting to stop ora. ons'on'node2CRS-2677: Stop of 'ora node. db'on 'nodel' succeededCRS-2673: Attempting to stop 'ora DATA. dg on node 1CRS-2677: Stop of 'ora. ons'onnode2 succeededCRS-2673: Attempting to stop ora net1. network'on'node2CRS-2677: Stop of ora net1 networkon ' node 2 succeededCRS-2792: Shutdown of Cluster Ready services- managed resources on node has completedCRS-2677: Stop of ora crsd 2 succeededCRS-2673: Attempting to stop ora ctss on 'node 2CRS-2673: Attempting to stop 'ora. evmd'on ' node2CRS-2673: Attempting to stop ora. asm on ' node2CRS-2677: Stop of ora datA.dg on node 1 succeededCRS-2677: Stop of ora. evmd'on node2 succeededCRS-2677: Stop of 'ora. ctssd'on ' succeededCRS-2677: Stop of ora registry. acfs' on node l succeededCRS-2677: Stop of ora. OCRVOTE dg on 'node1 succeededCRS-2673: Attempting to stop 'ora. asm on node1CRS-2677: Stop of 'ora asmon ' nodel succeededCRS-2677: Stop of ora. asm'on node2 succeededCRS-2673: Attempting to stop ora cluster interconnect haip on node2CRS-2677: Stop of 'ora cluster interconnect haip' on node 2 succeededCRS-2673: Attempting to stop ora. cssd'on 'node2CRS-2677: Stop of ora.cssdon'node succeededCRS-2677: Stop of ora oc4j on'nodel succeededCRS-2673: Attempting to stop ora. ons' on 'node1CRS-2677: Stop of 'ora.ons'on node l'succeededCRS-2673: Attempting to stop 'ora. net 1. networkon 'node1CRS-2677: Stop of 'ora net1 networkon 'node1' succeededCRS-2792: Shutdown of Cluster Ready services- managed resources on node 1 has completedCRS-2677: Stop of oracrsd on 'nodel succeededCRS-2673: Attempting to stop ora ctss on node1CRS-2673: Attempting to stop 'ora. evmdon'nodelCRS-2673: Attempting to stop ora asmon ' node1CRS-2677: Stop of ' ora. evmd on node l succeededCRS-2677: Stop of ora. ctssd on'node1 succeededCRS-2677: Stop of 'ora. asmon'node1'succeededCRS-2673: Attempting to stop ora cluster interconnect. haip'on 'node1CRS-2677: Stop of ora cluster interconnect haip on node 1'succeededCRS-2673: Attempting to stop ora cssd on 'node 1CRS-2677: Stop of 'ora. cssd'on 'nodel succeeded要启动左右节点上的所有集群资沥root@nodel bin]#. crsctl start cluster-allCRS-2672: Attempting to start ' ora. cssdmonitor'on 'node 2CRS-2672: Attempting to start ora. cssdmonitor'on node1CRS-2676: Start of 'ora cssdmonitor on 'node1 succeededCRS-2676: Start of ora cssdmonitor on 'node2 succeededCRS-2672: Attempting to start ora.cssd'on 'node 2CRS-2672: Attempting to start ' ora. diskmon on ' node2CRS-2672: Attempting to start oracssd on 'node1CRS-2676 Start of ora diskmon ' on 'node 2 succeededCRS-2672: Attempting to start ora. diskmon'on ' node1CRS-2676: Start of 'ora diskmon on 'node1 succeededCRS-2676: Start of ' ora, cssd on 'node2 succeededCRS-2672: Attempting to start 'ora. ctssd'on 'node2CRS-2676: Start of ora cssd on 'node1 succeededCRS-2672: Attempting to start 'ora. ctssd'on nodelCRS-2672: Attempting to start 'ora cluster interconnect. haip'on 'node1CRS-2676: Start of ora, ctssd' on 'node 2 succeededCRS-2672: Attempting to start 'ora.evmd'on 'node 2CRS-2676: Start of ora ctss on 'node1 succeededCRS-2672: Attempting to start ' oracluster interconnect. haip'on 'node2CRS-2672: Attempting to start ora.evmd 'node 1CRS-2676: Start of 'ora. evmd on 'node2 succeededCRS-2676: Start of ora, emd on 'node 1 succeededCRS-2676: Start of ora cluster interconnect haip on node l succeededCRS-2672: Attempting to start ora. asm on'nodelCRS-2676: Start of ora cluster_ interconnect haip' on node2 succeededCRS-2672: Attempting to start ora. asm on 'node 2CRS-2676: Start of ora asm ' on ' node1 succeededCRS-2672: Attempting to start oracrsd node1CRS-2676: Start of 'ora, asm 'on 'node 2 succeededCRS-2672: Attempting to start ora.crsd'on 'node 2CRS-2676: Start of ora, crsd on 'node l succeededCRS-2676: Start of ora crsd' on 'node2 succeeded验证CRS以下命令可以用于验证集群及相关CRS守护进稈的状态。要检查一个集群的当前状态root@nodel bin]# /crsctl check clusterCRS-4537: Cluster Ready services is onlineCRS-4529: Cluster Synchronization Services is onlineCRS-4533 Event Manager is online检查CRS的状态:[root@nodel bin]# crsctl check crsCRS-4638: Oracle High Availability services is onlineCRS-4537: Cluster Ready services is onlineCRS-4529: Cluster Synchronization Services is onlineCRS-4533: Event Manager is online要检查 OHASD守护进程的当前状态root@node1 bin]# crsctl check hasCRS- 4638: Oracle High Availability Services is online[root@nodel bin#禁用和启用CRS[root@nodel bin]# crsctl disable crsCRS-4621: Oracle High Availability services autostart is disabled[root@node1 bin]# crsctl enable crsCRS-4622: Oracle high Availability services autostart is enabled要显小集群资源的状态root@nodel bin]# /crsctl stat res-tNAME TARGET STATE SERVERSTATE DETAILSLocal resources======-==========ora DATA.dgONLINE ONLINE node1ONLINE ONLINE node2ora listener isnrONLINE ONLINE node1ONLINE ONLINE node2ora.OCRVOTE dgONLINE ONLINE node1ONLINE ONLINE node2ora. asmONLINE ONLINE node1StartedONLINE ONLINE node2Startedora. gsOFFLINE OFFLINE node1OFFLINE OFFLINE node2ora. net1 networkONLINE ONLINE node1ONLINE ONLINE node2ora. onsONLINE ONLINE node1ONLINE ONLINE node2ora registry. actsONLINE ONLINE node1ONLINE ONLINE node2Cluster resourcesora, LISTENER SCAN 1.snr1 ONLINE ONLINE node2ora. cvu1 ONLINE ONLINE node2ora node db1 ONLINE ONLINE node1Open2 ONLINE ONLINE node2Openora nodel vip1 ONLINE ONLINE node1ora node2. vip1 ONLINE ONLINE node2ora.oC4j1 ONLINE ONLINE node2ora scanl vip1 ONLINEONLINE node2查看一个集群的脚本[root@nodel bin]# crsctl query crs softwareversionOracle Clusterware version on node [node l] is [ 11.2.0.4.0管理OCROCR是 oracle rac配置信息仓库.1imux中位」/etc/ oracle, Solaris系统中位于/var/opt/ oracleroot@node l oracle cat ocr.lococrconfig loc=+OCRVOTElocal only=FALSE1、检查0CR的完整性[root@nodel bin ]# /ocrcheckStatus of oracle Cluster Registry is as followsVersionTotal space(kbytes): 262120Used space(kbytes)Available space(kbytes): 259032D151188908Device/ File Name+OCRVOTEDevice/file integrity check succeededDevice/ File not configuredDevice/File not configuredDevice/File not configuredDevice File not configuredCluster registry inte grity check succeededLogical corruption check succeeded这条命令还在SGR| D HOME/og/< hostname>/ client目录中创建一个日志文件;这个日志文件的内容反映了在输出中显示的内容root@nodel client more ocrcheck 10785logOracle Database 11g Clusterware release 11.2.0.4.0-Production Copyright 1996, 2011 oracleAll rights reserved201403-2422:05:51.624:[ OCRCHECK[2052440880] ocrcheck starts…CLWALJ[2052440880]clsw Initialize: OLR initlevel [300002014-03-2422:06:14.950:[ OCRCHECK][2052440880] protchcheck: OCR status:tota=[262120],used=[3088], avail=[259032]2014-03-2422:06:15.127:[ OCRCHECK][2052440880] Exiting[ status= success]…[root@nodel client#2、转储OCR信息下面说明如何将OCR文件内容转储到一个XML文件中[root@node1 bin # ocrdump 1 xml -xml
暂无评论