ocr磁盘组故障

ocr磁盘组故障
1,有自动备份,恢复
dd命令复制
首先备份
 dd if=/dev/raw/raw1 of=/home/grid/voting.2017
恢复
 dd if=/home/oracle/voting.2017 of=/dev/raw/raw1
md_backup命令备份磁盘组
asmcmd -p
md_backup /home/grid/ocrvote2.bak -G OCR

手工导出
 ./ocrconfig -export /home/grid/ocr2.bak

2、模拟损坏
 dd if=/dev/zero of=/dev/raw/raw1 bs=8192 count=12800
 报错
 [grid@rac1 rac1]$ ocrcheck
PROT-602: Failed to retrieve data from the cluster registry
PROC-26: Error while accessing the physical storage
集群状态正常
[grid@rac1 rac1]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
2017-10-07 16:19:38.269:
[/u01/app/11.2.0/grid/bin/orarootagent.bin(3040)]CRS-5822:Agent '/u01/app/11.2.0/grid/bin/orarootagent_root' disconnected from server. Details at (:CRSAGF00117:) {0:3:307} in /u01/app/11.2.0/grid/log/rac1/agent/crsd/orarootagent_root/orarootagent_root.log.
2017-10-07 16:19:38.274:
[/u01/app/11.2.0/grid/bin/scriptagent.bin(17425)]CRS-5822:Agent '/u01/app/11.2.0/grid/bin/scriptagent_grid' disconnected from server. Details at (:CRSAGF00117:) {0:13:3} in /u01/app/11.2.0/grid/log/rac1/agent/crsd/scriptagent_grid/scriptagent_grid.log.
2017-10-07 16:19:38.287:
[/u01/app/11.2.0/grid/bin/oraagent.bin(3036)]CRS-5822:Agent '/u01/app/11.2.0/grid/bin/oraagent_grid' disconnected from server. Details at (:CRSAGF00117:) {0:1:7} in /u01/app/11.2.0/grid/log/rac1/agent/crsd/oraagent_grid/oraagent_grid.log.
2017-10-07 16:19:38.298:
[/u01/app/11.2.0/grid/bin/oraagent.bin(3272)]CRS-5822:Agent '/u01/app/11.2.0/grid/bin/oraagent_oracle' disconnected from server. Details at (:CRSAGF00117:) {0:11:843} in /u01/app/11.2.0/grid/log/rac1/agent/crsd/oraagent_oracle/oraagent_oracle.log.
2017-10-07 16:19:38.305:
[ohasd(2103)]CRS-2765:Resource 'ora.crsd' has failed on server 'rac1'.
2017-10-07 16:19:39.738:
[crsd(17471)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /u01/app/11.2.0/grid/log/rac1/crsd/crsd.log.
2017-10-07 16:19:39.757:
[crsd(17471)]CRS-0804:Cluster Ready Service aborted due to Oracle Cluster Registry error [PROC-26: Error while accessing the physical storage
]. Details at (:CRSD00111:) in /u01/app/11.2.0/grid/log/rac1/crsd/crsd.log.
2017-10-07 16:19:44.785:
[ohasd(2103)]CRS-2765:Resource 'ora.crsd' has failed on server 'rac1'.
2017-10-07 16:19:46.138:
[crsd(17484)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /u01/app/11.2.0/grid/log/rac1/crsd/crsd.log.
2017-10-07 16:19:46.147:
[crsd(17484)]CRS-0804:Cluster Ready Service aborted due to Oracle Cluster Registry error [PROC-26: Error while accessing the physical storage
]. Details at (:CRSD00111:) in /u01/app/11.2.0/grid/log/rac1/crsd/crsd.log.
2017-10-07 16:19:48.171:
[ctssd(2629)]CRS-2407:The new Cluster Time Synchronization Service reference node is host rac1.
2017-10-07 16:19:51.185:
[ohasd(2103)]CRS-2765:Resource 'ora.crsd' has failed on server 'rac1'.
2017-10-07 16:19:51.303:
[cssd(2549)]CRS-1625:Node rac2, number 2, was manually shut down
查看自动备份
 ./ocrconfig -showbackup
检查
crsctl check crs
crsctl query css votedisk
ocrcheck

3、恢复(root用户下)
所有节点停止crs
./crsctl stop crs -f
./crsctl stop has -f
./crsctl disable has
./crsctl disable crs--关闭开机重启

crsctl start crs -excl
以独占的方式打开crs
crsctl start crs -excl -nocrs
创建磁盘组
select name ,COMPATIBILITY from v$asm_diskgroup;
create diskgroup ocr external redundancy DISK '/dev/raw/raw1' ATTRIBUTE 'compatible.asm'='11.2.0.0.0';

drop diskgroup ocr force including contents;
ocrconfig -restore /u01/app/11.2.0/grid/cdata/rac-cluster/backup_20171007_153630.ocr
./ocrconfig -restore /u01/app/11.2.0/grid/cdata/rac-cluster/backup00.ocr

执行ocrcheck

是否需要恢复votingdisk
恢复表决磁盘
./crsctl replace votedisk +OCR


停止独占模式运行的clusterware

crsctl stop crs -f

所有节点正常启动crs
crsctl start crs


CVU验证所有RAC节点OCR的完整性
 cluvfy comp ocr -n all -verbose


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31324783/viewspace-2145742/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31324783/viewspace-2145742/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值