Oracle Study之--AIX RAC下OCR磁盘故障(PROT-602)
admin
2023-05-04 14:41:44
0

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.                                  *
*******************************************************************************
故障现象

[root@aix208 /]#crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
EVM appears healthy


[root@aix208 /]#ocrcheck
PROT-602: Failed to retrieve data from the cluster registry


----OCR disk被用户误删除 !


解决方法:

通过ocrconfig工具恢复:

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

1) 通过repair修复
[root@aix208 /]#ocrconfig -repair ocr

[root@aix208 /]#ocrcheck
PROT-601: Failed to initialize ocrcheck


查看ocr设备文件:

[root@aix208 /]#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


[root@aix208 /]#ocrconfig -repair ocr /dev/rrac_ocr
[root@aix208 /]#ocrcheck
PROT-601: Failed to initialize ocrcheck


[root@aix208 /]#ocrconfig -replace ocr /dev/rrac_ocr
PROT-1: Failed to initialize ocrconfig

2)通过ocr备份修复:
[root@aix208 /]#ocrconfig -showbackup


查看备份数据:
[root@aix208 /]#cd /u01/crs_1/cdata/crs

[root@aix208 crs]#ls
backup00.ocr  day.ocr       week.ocr
[root@aix208 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
[root@aix208 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工具修复:
[root@aix208 crs]#ocrconfig -restore /u01/crs_1/cdata/crs/day.ocr


[root@aix208 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

[root@aix208 crs]#crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy


[root@aix208 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

------ 修复成功!!!

相关内容

热门资讯

Google在港推出AI代理G... 观点网讯:7月29日,Google在香港推出AI代理Gemini Spark,该代理可全天候在后台运...
5G+165Hz!联想新品官宣... 近两年来,小屏平板一直是比较有趣的一个品类。 不同于大平板注重效率、手机追求万能的特点,拯救者Y70...
原创 马... 马斯克又出来了。这次说2036年钱就没用了。 理由是人工智能加机器人,东西多到你用不完,还拿钱干嘛...
美的集团:我国智能家居互联互通... IT之家 7 月 30 日消息,美的集团今日发布公告,7 月 21 日至 23 日,智能家居互联互通...
华为新款MatePad Pro... 【CNMO科技消息】7月30日,@华为终端 官宣全新旗舰平板华为MatePad Pro。 新款华为...
从实验室到实景验证:6G光子太... 全息通信是第六代移动通信(6G)的典型应用场景之一,旨在通过融合无线传输与全息三维成像技术,实现超大...
从“能对话”到“能干活”——人... 【经济界面】 光明日报记者 刘坤 李晓东 周洪双 人工智能(AI)眼镜化身为个人“助理”,实时进行...
【全新发布】UminiP Pr... (来源:洲明科技)
日本通过“H3火箭8号”发射失... △H3火箭(资料图) 日本文部科学省30日召开关于去年“H3火箭8号”发射失败的会议。会议通过的最终...
互联网巨头抢滩健康硬件,上游芯... 封面新闻记者 付文超 当下,互联网巨头对健康硬件的押注,正在成为产业现实,加速拉动整个产业链步入新一...