Oracle Study之--AIX RAC下OCR磁碟故障(PROT-602)

來源:互聯網
上載者:User

標籤:oracle

Oracle Study之--AIX RAC下OCR磁碟故障(PROT-602)

*******************************************************************************
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*******************************************************************************
故障現象

[[email protected] /]#crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
EVM appears healthy


[[email protected] /]#ocrcheck
PROT-602: Failed to retrieve data from the cluster registry


----OCR disk被使用者誤刪除 !


解決方案:

通過ocrconfig工具恢複:

[[email protected] /]#ocrconfig
Name:
        ocrconfig - Configuration tool for Oracle Cluster Registry.
Synopsis:
        ocrconfig [option]
        option:
                -export <filename> [-s online]
                                                    - Export cluster register contents to a file
                -import <filename>                  - Import cluster registry contents from a file
                -upgrade [<user> [<group>]]
                                                    - Upgrade cluster registry from previous version
                -downgrade [-version <version string>]
                                                    - Downgrade cluster registry to the specified version
                -backuploc <dirname>                - Configure periodic backup location
                -showbackup                         - Show backup information
                -restore <filename>                 - Restore from physical backup
                -replace ocr|ocrmirror [<filename>] - Add/replace/remove a OCR device/file
                -overwrite                          - Overwrite OCR configuration on disk
                -repair ocr|ocrmirror <filename>    - Repair local OCR configuration
                -help                               - Print out this help information
Note:
        A log file will be created in
        $ORACLE_HOME/log/<hostname>/client/ocrconfig_<pid>.log. Please ensure
        you have file creation privileges in the above directory before
        running this tool.

1) 通過repair修複
[[email protected] /]#ocrconfig -repair ocr

[[email protected] /]#ocrcheck
PROT-601: Failed to initialize ocrcheck


查看ocr裝置檔案:

[[email protected] /]#ls -l /dev |grep ocr
brw-rw----    1 oracle   dba         123,  1 Feb 24 14:54 rac_ocr
brw-rw----    1 root     system      123, 20 Feb 25 12:01 rac_ocr2
crw-r-----    1 root     dba         123,  1 Feb 25 12:16 rrac_ocr
-rw-r--r--    1 root     system    139264000 Feb 22 13:50 rrac_ocr1
crw-rw----    1 oracle   dba         123, 20 Feb 25 12:16 rrac_ocr2


[[email protected] /]#ocrconfig -repair ocr /dev/rrac_ocr
[[email protected] /]#ocrcheck
PROT-601: Failed to initialize ocrcheck


[[email protected] /]#ocrconfig -replace ocr /dev/rrac_ocr
PROT-1: Failed to initialize ocrconfig

2)通過ocr備份修複:
[[email protected] /]#ocrconfig -showbackup


查看備份資料:
[[email protected] /]#cd /u01/crs_1/cdata/crs

[[email protected] crs]#ls
backup00.ocr  day.ocr       week.ocr
[[email protected] crs]#ls -l
total 20256
-rw-r--r--    1 root     system      3457024 Feb 25 11:48 backup00.ocr
-rw-r--r--    1 root     system      3457024 Feb 25 11:48 day.ocr
-rw-r--r--    1 root     system      3457024 Feb 25 11:48 week.ocr
[[email protected] crs]#ls -lt
total 20256
-rw-r--r--    1 root     system      3457024 Feb 25 11:48 week.ocr
-rw-r--r--    1 root     system      3457024 Feb 25 11:48 day.ocr
-rw-r--r--    1 root     system      3457024 Feb 25 11:48 backup00.ocr

通過備份,使用restore工具修複:
[[email protected] crs]#ocrconfig -restore /u01/crs_1/cdata/crs/day.ocr


[[email protected] crs]#ocrcheck 
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     130984
         Used space (kbytes)      :       3252
         Available space (kbytes) :     127732
         ID                       :  133619783
         Device/File Name         : /dev/rrac_ocr
                                    Device/File integrity check succeeded
                                    Device/File not configured
         Cluster registry integrity check succeeded

[[email protected] crs]#crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy


[[email protected] crs]#crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....07.lsnr application    ONLINE    ONLINE    aix207      
ora.aix207.gsd application    ONLINE    ONLINE    aix207      
ora.aix207.ons application    ONLINE    ONLINE    aix207      
ora.aix207.vip application    ONLINE    ONLINE    aix207      
ora....08.lsnr application    ONLINE    ONLINE    aix208      
ora.aix208.gsd application    ONLINE    ONLINE    aix208      
ora.aix208.ons application    ONLINE    ONLINE    aix208      
ora.aix208.vip application    ONLINE    ONLINE    aix208      
ora.prod.db    application    ONLINE    ONLINE    aix207      
ora....d1.inst application    ONLINE    ONLINE    aix207      
ora....d2.inst application    ONLINE    OFFLINE   aix208

------ 修複成功!!!

本文出自 “天涯客的blog” 部落格,請務必保留此出處http://tiany.blog.51cto.com/513694/1745001

Oracle Study之--AIX RAC下OCR磁碟故障(PROT-602)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.