Oracle Study之--AIX RAC下OCR磁盘故障(PROT-602)
来源:互联网 发布:有赞 知乎 编辑:程序博客网 时间:2024/06/05 18:47
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
* 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 <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修复
[root@aix208 /]#ocrconfig -repair ocr
[root@aix208 /]#ocrcheck
PROT-601: Failed to initialize ocrcheck
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修复
[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
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 /]#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
------ 修复成功!!!
0 0
- Oracle Study之--AIX RAC下OCR磁盘故障(PROT-602)
- Oracle Study之--Oracle RAC添加OCR DISK MIRROR
- Oracle Study之--Oracle 11gR2 RAC crs启动故障
- Oracle Study之案例--AIX安装RAC错误之(rootpre)
- Oracle Study之--Oracle 11g RAC故障(Failed to create or upgrade OLR)
- Oracle Study之--AIX install RAC运行root.sh(PRKR-1062)错误
- AIX系统下RAC故障之-VIPCA 错误
- Oracle RAC Study之--Oracle 10g RAC 故障之--CRS启动失败
- Unix Study之--AIX系统构建RAC通过ASM磁盘共享
- AIX 5.3 Install Oracle 10g RAC 错误集锦--磁盘I/O 故障
- Oracle RAC OCR 磁盘组异常恢复
- 【ORACLE RAC】oracle 10g rac更换共享磁盘(ocr,vote)的方法
- Oracle Study之--Oracle 11gR2构建RAC之hosts文件故障
- Oracle Study之--Oracle 11g RAC之scan ip访问故障
- AIX系统Oracle 10g RAC 维护之--OCR和 VOTE disk 管理
- Oracle Study之--Oracle 11gR2 RAC crs启动故障(CRS-4000)
- Oracle RAC Study之--10gR2 RAC环境中在线添加、删除Votedisk和在线替换OCR的探讨
- AIX 5.3下Oracle 10g RAC 启动故障--vip漂移
- 当 ITOA 遇上 OneAlert,企业可以至少每年节省 3600 小时!
- [leetcode]Longest Valid Parentheses
- 【SPOJ-AGGRCOW】【BZOJ1734】【POJ2456】Aggressive cows【二分】【贪心】
- mybatis之高级查询
- 李航博士:浅谈我对机器学习的理解
- Oracle Study之--AIX RAC下OCR磁盘故障(PROT-602)
- 数组元素删除与排序
- AppDelegate文件的介绍和使用
- dataset和datareader的区别
- 【Android效果集】学习ExplosionField之粒子破碎效果
- [UVA202]Repeating Decimals
- SAP 已经释放的TR,如何改为可编辑状态,删除已释放的TR
- yarn内存配置
- mooc data structure 韩永楷 HW1.2(homework)