how to add/delete OCR disks/Voting disks in 11g R2 database


Please see below command output where we’ve ocr and ocr mirror in ASM DG and raw device respectively.
[oracle@RAC2 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 1039908
Used space (kbytes) : 4012
Available space (kbytes) : 1035896
ID : 2141770140
Device/File Name : +DATADG
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw1
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 bypassed due to non-privileged user
Now we’ll delete ocr mirror device using below command and please note that while deleting OCR was online in my case.
[root@RAC2 bin]# ./ocrconfig -delete /dev/raw/raw1 (CRS was online)
Verify OCR locations again and now ocr mirror is removed from the output.
[root@RAC2 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 1039908
Used space (kbytes) : 4012
Available space (kbytes) : 1035896
ID : 2141770140
Device/File Name : +DATADG
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
Also note that ocr.loc is updated accordingly.
[root@RAC2 bin]# cat /etc/oracle/ocr.loc
#Device/file /dev/raw/raw1 being deleted
ocrconfig_loc=+DATADG
Adding RAW OCR device again (CRS was online) : Now we’ll add ocr mirror device again using raw device using below command.
=============================
local_only=false[root@RAC2 bin]# ./ocrconfig -add /dev/raw/raw1
Please note that ocr.loc is again updated mentioning about mirrorconfig location.
[root@RAC2 bin]# cat /etc/oracle/ocr.loc
#Device/file getting replaced by device /dev/raw/raw1
ocrconfig_loc=+DATADG
ocrmirrorconfig_loc=/dev/raw/raw1
local_only=false[cd /u01/app/11.2.0/grid/
[root@RAC2 grid]# cd bin
[root@RAC2 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 1039908
Used space (kbytes) : 4012
Available space (kbytes) : 1035896
ID : 2141770140
Device/File Name : +DATADG
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw1
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
The same is not the case with Voting device. Once you move voting devices from raw devices to ASM Diskgroup, it’s not possible to add or delete voting files from ASM diskgroup as shown below.
[root@RAC2 bin]# ./crsctl add css votedisk /dev/raw/raw2
CRS-4258: Addition and deletion of voting files are not allowed because the voting files are on ASM

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