11GR2 replacing OCR and vote

Source: Internet
Author: User

11GR2 start, both OCR and vote are stored in ASM disk groups, so there are two ways to replace OCR, the first is to use ASM Disk Group drop disk after data reorganization, the second is to migrate OCR 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

Second: Migrating to another disk group (with vote migration)
Migrate OCR from the +ocr_vote disk group to +ocr_voting as follows

Execute 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.