日期:2014-05-16  浏览次数:20535 次

如何恢复损坏的表决磁盘(votedisk)和OCR

今天是2014-03-28,继续写RAC的内容,今天写的是如何恢复损坏的表决磁盘(votedisk)和OCR。

 首先查看目前状态:

[root@rac-two bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3472
         Available space (kbytes) :     258648
         ID                       :  152256349
         Device/File Name         :      +GIDG
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check succeeded

[root@rac-two bin]# ./crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   af2fed5d6ac54f1bbf19e4982e364c57 (/dev/asm-diske) [GIDG]
 2. ONLINE   34b65f2e3db14f23bf88e689b55058b7 (/dev/asm-diskd) [GIDG]
 3. ONLINE   07bf3ce9af7d4ff6bf38d160255c671c (/dev/asm-diskc) [GIDG]
Located 3 voting disk(s).
[root@rac-two bin]# ./crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATADG.dg
               ONLINE  ONLINE       rac-one                                      
               ONLINE  ONLINE       rac-two                                      
ora.GIDG.dg
               ONLINE  ONLINE       rac-one                                      
               ONLINE  ONLINE       rac-two                                      
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac-one                                      
               ONLINE  ONLINE       rac-two                                      
ora.TESTDG.dg
               OFFLINE OFFLINE      rac-one                                      
               ONLINE  OFFLINE      rac-two                                      
ora.asm
               ONLINE  ONLINE       rac-one                  Started             
               ONLINE  ONLINE       rac-two                  Started             
ora.gsd
               OFFLINE OFFLINE      rac-one                                      
               OFFLINE OFFLINE      rac-two                                      
ora.net1.network
               ONLINE  ONLINE       rac-one                                      
               ONLINE  ONLINE       rac-two                                      
ora.ons
               ONLINE  ONLINE       rac-one                                      
               ONLINE  ONLINE       rac-two                                      
ora.registry.acfs
               ONLINE  ONLINE       rac-one                                      
               ONLINE  ONLINE       rac-two                                      
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac-two                                      
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       rac-one                                      
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       rac-one                                      
ora.cvu
      1        ONLINE  ONLINE       rac-one                                      
ora.oc4j