11GR2 start, OCR and vote they are stored in ASM disk groups, so there are two ways to replace OCR, the first is to use ASM Disk Group drop disk data reorganization, another method is OCR migration to another disk group
The first type: Add Disk and Drop disk
Sql> select Group_number,name,path from V$asm_disk;
Group_number NAME PATH
------------ ---------- ------------------------------
0 Orcl:ocr_vote2 <<<<<<<<<<<<<<<<<<< New disk
1 ASM1 orcl:asm1
1 ASM2 orcl:asm2
2 ocr_vote1 orcl:ocr_vote1
Sql> alter DiskGroup ocr_vote add disk ' Orcl:ocr_vote2 '; <<<< adding a new disk to a disk group
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 <<<<<<<<<<<<<<<<<<<< To remove the old disk for a while.
2 Ocr_vote2 Orcl:ocr_vote2
sql> alter diskgroup ocr_vote drop disk ocr_vote1; <<< Delete the old
DiskGroup altered.
Sql> select * from V$asm_operation;
No rows selected
The above demonstrates replacing OCR with add new disk and drop old disk
Another: Migrating to another disk group (with vote migration)
For example, use the following to migrate OCR from the +ocr_vote disk group to the +ocr_voting
Run as Root User:
# Ocrcheck
# Ocrconfig-add +ocr_voting
# Ocrconfig-delete +ocr_vote
$ crsctl Query CSS Votedisk
$ crsctl Replace Votedisk +ocr_voting
$ crsctl Query CSS Votedisk
---------------------------------------------------
Daoxing is still shallow, welcome to shoot bricks.
Reprint please indicate the source.
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
11GR2 replacing OCR and vote