oracle 11gr2 针对ocr/vote asm diskgroup损坏的处理方法

原创 Oracle 作者:paulyibinyi 时间:2016-03-16 16:36:41 0 删除 编辑

The following procedure describe the steps to recreate the diskgroup where OCR and Voting disks are stored and restore the OCR data from a backup.

1. List the backups of the OCR

# $GI/bin/ocrconfig -showbackup

2. Validate the integrity of the backup

# $GI/bin/ocrdump -backupfile backup_file_name

3. Stop clusterware in all the nodes

# $GI/bin/crsctl stop crs [-f]

4. Before In one node, start crs in exclusive mode

          # $GI/bin/crsctl start crs –excl

and then apply step 5

   Since In one node, start crs in exclusive mode without crsd

         # $CRS_HOME/bin/crsctl start crs -excl -nocrs

         and then continue at step 6 (skip step 5).

A new option '-nocrs' has been introduced with, which prevents the start of the ora.crsd resource.
It is vital that this option is specified, otherwise the failure to start the ora.crsd resource will tear down ora.cluster_interconnect.haip, which in turn will cause ASM to crash.

5. Stop crsd

# $GI/bin/crsctl stop resource ora.crsd -init

6. Create Diskgroup

sql>create diskgroup <name normal redundancy disk '<path to disks' FORCE ATTRIBUTE 'compatible.asm'='','compatible.rdbms'='','au_size'='4M','cell.smart_scan_capable'='TRUE';

7. Restore OCR from one of the backups

# $GI/bin/ocrconfig -restore file_name

8. Validate OCR integrity

# $GI/bin/ocrcheck

9. Validate the list of voting disks. If the diskgroup was rebuilt,it will report empty

#$GI/bin/crsctl start resource ora.crsd -init
# $GI/bin/crsctl query css votedisk

10. Add the voting disk:

# $GI/bin/crsctl replace votedisk <DISKGROUP NAME

11. Restart the CRS in normal mode

# $GI/bin/crsctl stop crs
# $GI/bin/crsctl start crs

12. Validate Voting disks and OCR

# $GRI/bin/crsctl query css votedisk
# $GI/bin/ocrcheck

13. Start cluster:

#$GRI/bin/crsctl start cluster

来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
oracle 10g ocm oracle 10g/11g/12c ocp aix 6.1 administrator,ogg expert,ITSS 技术交流群 201703254 微信公众号 paulyibin 探讨技术,开心工作 电话 13719354869 ,深入研究数据库和开始研究big data


  • 博文量
  • 访问量