zoukankan      html  css  js  c++  java
  • ORACLE 11.2.0.4 OCR VOTING DISK 模拟恢复场景

    ① 备份
       ocrconfig -export 文件名
       或者
       ocrconfig -manualbackup
       或者
       找到备份   
       ocrconfig -local -showbackup manual

    ② 故意弄坏文件
       例如我的ocr的存放位置在
       DISKGROUP OCR 上
       可以使用ocrcheck,检查到 ocr存放位置
       清除OCR所在裸设备的磁盘信息
       dd if=/dev/zero of=/dev/raw/raw1 bs=1024k count=400
       dd if=/dev/zero of=/dev/raw/raw2 bs=1024k count=400

    ③ 查看状态
       crsctl status resource -t ,有可能已经不能查了

    ④ 更改OCR的位置,指定到一个裸设备上
       /etc/oracle/ocr.loc,例如
       ocrconfig_loc=/dev/raw/raw1
       local_only=false
       每个节点,都必须改成一样的

    ⑤ 重新导入,或者恢复备份
      ocrconfig -restore backup_20140228_153207.ocr
      或者ocrconfig -import ocr201402281534
      恢复后,可以使用
      ocrcheck 检查

    ⑥ 独占模式启动crs
       crsctl stop crs -f
       crsctl start crs -excl -nocrs

    ⑦ 恢复votedisk
       crsctl replace votedisk /dev/raw/raw2
       可以使用,查看状态
       crsctl query css votedisk

    ⑧ 重新启动crs
       
       强制关闭crs
       crsctl stop crs -f
       启动
       crsctl start crs
       
       请耐心等待crs,有时候要几分钟,甚至十几分钟的

      如果有问题,可以使用

      crsctl start cluster -all

    ⑨ grid 用户下,

       asmca,对磁盘组进行处理,尤其是对之前的ocr存放的所在的磁盘组,进行处理

       例如增加磁盘、删除磁盘等等,某些特别的情况下,也许原来的所在的磁盘组已经不存在

       但是在crs的resource还能看见。则需要使用crsctl delete resource ora.OCR.dg

    10、重置OCR的位置

         ocrconfig -add +OCR

         ocrconfig -delete /dev/raw/raw1

    11. 重置Votedisk

        crsctl replace vodetedisk +OCR

  • 相关阅读:
    [Web Security] Create a hash salt password which can stored in DB
    [Angular] Stagger animation v4.3.3
    [D3] Make D3 v4 Charts Responsive with the viewBox attribute
    [D3] Create Chart Axes with D3 v4
    [D3] Margin Convention with D3 v4
    [D3] Better Code Organization with selection.call() with D3 v4
    [D3] Basic Interactivity with D3 v4
    [Angular] Reactive Store and AngularFire Observables
    Google Play和基于Feature的过滤
    Three Swaps DFS
  • 原文地址:https://www.cnblogs.com/SharkXu/p/OCR_VOTEDISK_RESTORE.html
Copyright © 2011-2022 走看看