标签:替换ocr_vote
11gR2开始,OCR和VOTE都存储在ASM磁盘组,因此替换OCR有两种方法,第一种是利用ASM磁盘组drop disk后数据重组,第二种是将OCR迁移至其他磁盘组
第一种:add disk 再 drop disk
SQL> select group_number,name,path from v$asm_disk;
GROUP_NUMBER NAME PATH
------------ ---------- ------------------------------
0 ORCL:OCR_VOTE2 <<<<<<<<<<<<<<<<<<<新的磁盘
1 ASM1 ORCL:ASM1
1 ASM2 ORCL:ASM2
2 OCR_VOTE1 ORCL:OCR_VOTE1
SQL> alter diskgroup ocr_vote add disk ‘ORCL:OCR_VOTE2‘; <<<<添加新磁盘至磁盘组
Diskgroup altered.
SQL> select group_number,name,path from v$asm_disk;
GROUP_NUMBER NAME PATH
------------ ---------- ------------------------------
1 ASM1 ORCL:ASM1
1 ASM2 ORCL:ASM2
2 OCR_VOTE1 ORCL:OCR_VOTE1 <<<<<<<<<<<<<<<<<<<<一会儿将这块旧磁盘剔除出来
2 OCR_VOTE2 ORCL:OCR_VOTE2
SQL> alter diskgroup ocr_vote drop disk OCR_VOTE1; <<<删除旧的
Diskgroup altered.
SQL> select * from v$asm_operation;
no rows selected
以上演示了通过add new disk 再 drop old disk来替换OCR
第二种: 迁移至其他磁盘组(附带VOTE的迁移)
如以下将OCR从+OCR_VOTE磁盘组迁移至+OCR_VOTING
以root用户执行:
# ocrcheck
# ocrconfig -add +OCR_VOTING
# ocrconfig -delete +OCR_VOTE
$ crsctl query css votedisk
$ crsctl replace votedisk +OCR_VOTING
$ crsctl query css votedisk
---------------------------------------------------
道行尚浅,欢迎拍砖。
标签:替换ocr_vote
原文地址:http://blog.csdn.net/robo23/article/details/44421793