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

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

相关内容

热门资讯

报告:今年一季度AI原生APP... 中国青年网北京5月12日电(记者 高蕾)近日,第三方智能数据服务商QuestMobile发布了《中国...
七大新品发布!国轩高科第15届... 央广网合肥5月13日消息(记者徐鹏)5月16日至17日,电池龙头企业国轩高科将在合肥举办第15届全球...
百度伐谋2.0发布,李彦宏:能... 5月13日举办的Create2026百度AI开发者大会开幕式上,自我演化决策智能体百度伐谋升级至2....
泰顶级豪门曝性侵丑闻!哥哥侵犯... 泰国最有影响力的巨头之一Singha集团(胜狮集团),这两天爆出性侵丑闻。集团第四代成员,环保活动家...
什么信号?多地要求干部带头缴纳... 多地要求干部带头缴纳物业费。最近一段时间,物业费成了社会关注的焦点。原因竟然是多地密集出台文件,号召...
“这不是威胁而是绝佳机遇”,默... 【文/观察者网 张菁娟】“当下挑战之所以如此巨大,是因为我们长期以来为自己制造了太多问题,而这些问题...
老杜盟友半路杀出,“闪电夺权”... 最近两天,马尼拉的政治温度直接爆表。5月11日上午,菲律宾众议院以255票赞成、26票反对、9票弃权...
“六张网”项目密集启动 进一步... 新华社北京5月13日电 题:“六张网”项目密集启动 进一步释放内需潜力经济参考报记者汪子旭近期,一批...
豪华邮轮病毒,横跨三大洲始末 5月11日,泛海探险公司确认,隶属于该公司的“洪迪厄斯”号邮轮抵达西班牙特内里费岛后,全部87名乘客...
苏泊尔球釜电饭煲不通电是什么原... 1、有可能是温度保险管出现了问题,每个电饭煲都有温度保险管,而不是家常用的保险丝,如果保险管出现了问...