DELETE ASMDISK from DISKGROUP with VOTEDISK

Recent Oracle community conversation on replacing disk from a diskgroup having votedisk triggered me to test the scenario

https://community.oracle.com/thread/3785252?sr=stream

Currently OCR/Votedisk is on External redundancy diskgroup

[oracle@VM2 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
— —– —————– ——— ———
1. ONLINE 0d67c8c5c1754fe5bfb3e4513cdad2f5 (ORCL:ASMDISK1) [DATA]

Created new Normal Redundancy diskgroup with 3 ASM Disks and Added OCR to this diskgroup, later removed the OCR from DATA diskgroup.

[root@VM1 ~]# ocrconfig -add +OCR_GROUP
[root@VM1 ~]# crsctl replace votedisk +OCR_GROUP
Successful addition of voting disk 8af044a05e624f15bfdd42383d299f79.
Successful addition of voting disk 4822dd1445194fffbf876bac9a8ac588.
Successful addition of voting disk 5c60703bc2d64f9abf5d65cb5157f4c1.
Successful deletion of voting disk 0d67c8c5c1754fe5bfb3e4513cdad2f5.
Successfully replaced voting disk group with +OCR_GROUP.
CRS-4266: Voting file(s) successfully replaced

[root@VM1 ~]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
— —– —————– ——— ———
1. ONLINE 8af044a05e624f15bfdd42383d299f79 (ORCL:ASMDISK5) [OCR_GROUP]
2. ONLINE 4822dd1445194fffbf876bac9a8ac588 (ORCL:ASMDISK6) [OCR_GROUP]
3. ONLINE 5c60703bc2d64f9abf5d65cb5157f4c1 (ORCL:ASMDISK7) [OCR_GROUP]
Located 3 voting disk(s).

Add 4th ASMDISK to normal redundancy diskgroup.

SQL> alter diskgroup OCR_GROUP add disk ‘ORCL:ASMDISK8’;

Diskgroup altered.

[root@VM1 ~]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
— —– —————– ——— ———
1. ONLINE 8af044a05e624f15bfdd42383d299f79 (ORCL:ASMDISK5) [OCR_GROUP]
2. ONLINE 4822dd1445194fffbf876bac9a8ac588 (ORCL:ASMDISK6) [OCR_GROUP]
3. ONLINE 5c60703bc2d64f9abf5d65cb5157f4c1 (ORCL:ASMDISK7) [OCR_GROUP]
Located 3 voting disk(s).

Drop one of ASMDISK which has votedisk.

SQL> alter diskgroup OCR_GROUP drop disk ASMDISK7;

Diskgroup altered.

ASM will choose the available Disk for placing the votedisk.

[root@VM1 ~]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
— —– —————– ——— ———
1. ONLINE 8af044a05e624f15bfdd42383d299f79 (ORCL:ASMDISK5) [OCR_GROUP]
2. ONLINE 4822dd1445194fffbf876bac9a8ac588 (ORCL:ASMDISK6) [OCR_GROUP]
3. ONLINE 1537fcd557584fd9bf349fb94dddc486 (ORCL:ASMDISK8) [OCR_GROUP]
Located 3 voting disk(s).

Conclusion: So as long as you have sufficient failgroups to maintain the required number of votedisk , ASM will move the votedisk to available disks after dropping any of the ASM DISK

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s