Generally, for the Oracle Cluster Registry and Vote Disks, the disk group where the database files are stored is used in RAC Systems.
The need to move OCR and Vote disks to different ASM disk groups arises because we don’t want to be affected by the i / o load in the databases, or we want them to be included in safer disks.
You can follow the steps below to move.
In the following example, OCR and VOTE disks will be moved from the “+ DATA” disk group to the “+ DBFS” disk group.
All operations must be done with root.
Moving OCR:
Check OCR information first:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | bash-4.3# /u01/app/11.2.0/grid/bin/ocrcheck Status of Oracle Cluster Registry is as follows : Version : 3 Total space (kbytes) : 262120 Used space (kbytes) : 3508 Available space (kbytes) : 258612 ID : 378679931 Device/File Name : +DATA Device/File integrity check succeeded Device/File not configured Device/File not configured Device/File not configured Device/File not configured Cluster registry integrity check succeeded Logical corruption check bypassed due to non-privileged user |
Include the new disk group to the configuration:
1 | bash-4.3# /u01/app/11.2.0/grid/bin/ocrconfig -add +DBFS |
When we check again, both disk groups will be seen:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | bash-4.3# /u01/app/11.2.0/grid/bin/ocrcheck Status of Oracle Cluster Registry is as follows : Version : 3 Total space (kbytes) : 262120 Used space (kbytes) : 3508 Available space (kbytes) : 258612 ID : 378679931 Device/File Name : +DATA Device/File integrity check succeeded Device/File Name : +DBFS Device/File integrity check succeeded Device/File not configured Device/File not configured Device/File not configured Cluster registry integrity check succeeded Logical corruption check succeeded |
We delete the group that will not be used from the configuration:
1 | bash-4.3# /u01/app/11.2.0/grid/bin/ocrconfig -delete +DBFS |
In the last case, it should only be included in the new disk group:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | bash-4.3# /u01/app/11.2.0/grid/bin/ocrcheck Status of Oracle Cluster Registry is as follows : Version : 3 Total space (kbytes) : 262120 Used space (kbytes) : 3508 Available space (kbytes) : 258612 ID : 378679931 Device/File Name : +DBFS Device/File integrity check succeeded Device/File not configured Device/File not configured Device/File not configured Device/File not configured Cluster registry integrity check succeeded Logical corruption check succeeded |
Moving VOTE Disks:
Check VOTE Disks first:
1 2 3 4 5 | bash-4.3# /u01/app/11.2.0/grid/bin/crsctl query css votedisk ## STATE File Universal Id File Name Disk group -- ----- ----------------- --------- --------- 1. ONLINE 95c4c1ab1bab4fddbf34daa27cd6ee7c (/dev/rhdiskpower0) [DATA] Located 1 voting disk(s). |
Move to the new disk group:
1 2 3 4 5 | bash-4.3# /u01/app/11.2.0/grid/bin/crsctl replace votedisk +DBFS Successful addition of voting disk b125f08f5b0b4f98bfe15e624264cdc1. Successful deletion of voting disk 95c4c1ab1bab4fddbf34daa27cd6ee7c. Successfully replaced voting disk group with +DBFS. CRS-4266: Voting file(s) successfully replaced |
When we check again, we need to see it is in the new disk group.
1 2 3 4 5 | bash-4.3# /u01/app/11.2.0/grid/bin/crsctl query css votedisk ## STATE File Universal Id File Name Disk group -- ----- ----------------- --------- --------- 1. ONLINE b125f08f5b0b4f98bfe15e624264cdc1 (/dev/rhdiskpower3) [DBFS] Located 1 voting disk(s). |