11GR2 replacing OCR and vote

Source: Internet
Author: User

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

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.