Relocating the OCR/Voting disks for a 12c RAC

There are many examples of this one, this is again more for my benefit than anyone else’s.

The following shows relocating the OCR and voting disks on a 12c RAC.

No downtime is needed.  You only need to execute these commands on one node.  Log in as root and source the Grid Infrastructure environment to make these changes:

First, check what the current OCR location is set to:

[root@unirac01 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 409568
Used space (kbytes) : 1532
Available space (kbytes) : 408036
ID : 1519454396
Device/File Name : +DATA
Device/File integrity check succeeded

Cluster registry integrity check succeeded

Logical corruption check succeeded

Next, we want to move the OCR config files to the OCR ASM diskgroup, so let’s add that and then delete the DATA diskgroup from the configuration:

[root@unirac01 ~]# ocrconfig -add +OCR
[root@unirac01 ~]# ocrconfig -delete +DATA

Now check again and the OCR files have been moved to the OCR diskgroup.

[root@unirac01 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 409568
Used space (kbytes) : 1532
Available space (kbytes) : 408036
ID : 1519454396
Device/File Name : +OCR
Device/File integrity check succeeded

Cluster registry integrity check succeeded

Logical corruption check succeeded

Next, check the location of the voting disk:

[root@unirac01 ~]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 0efaeece29644fcbbf3c08317f6979f6 (/dev/oracleasm/grid1) [DATA]
Located 1 voting disk(s).

Replace the current voting disk with a new one on the OCR diskgroup:

[root@unirac01 ~]# crsctl replace votedisk +OCR
Successful addition of voting disk 1b91155be7d64ff8bf09803125219079.
Successful deletion of voting disk 0efaeece29644fcbbf3c08317f6979f6.
Successfully replaced voting disk group with +OCR.
CRS-4266: Voting file(s) successfully replaced

And finally check that the changes have taken place.

[root@unirac01 ~]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 1b91155be7d64ff8bf09803125219079 (/dev/oracleasm/ocr1) [OCR]
Located 1 voting disk(s).
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