I want to add a mirrored voting disk after migration from ASM to OCFS2.
The following is my current configuration:
/u01/app/11.2.0/grid/bin/crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 353efdf9e50d4f93bf71c6aa84b9e19b (/u02/ocfs2/css/vdisk) []
Located 1 voting disk(s).
Create a new directory on mirrored location
Set the right permissions, as I did:
touch css/vdisk
chown -R oracle.oinstall css/
and check if all is right
Now execute the command to add another voting disk:
/u01/app/11.2.0/grid/bin/crsctl add css votedisk /u02/ocfs2_mirror/css/vdisk
Now formatting voting disk: /u02/ocfs2_mirror/css/vdisk.
CRS-4603: Successful addition of voting disk /u02/ocfs2_mirror/css/vdisk.
As you can see, I have now two voting disk files.
/u01/app/11.2.0/grid/bin/crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 353efdf9e50d4f93bf71c6aa84b9e19b (/u02/ocfs2/css/vdisk) []
2. ONLINE 0c254a5cdcd14f9bbfef2866447e908c (/u02/ocfs2_mirror/css/vdisk) []
Located 2 voting disk(s).
But what about if I want to have a mirrored copy also on Oracle ASM ?
It's simply not possible even if from the documentation I didn't find about it.
/u01/app/11.2.0/grid/bin/crsctl add css votedisk +DATA_RAC3
CRS-4671: This command is not supported for ASM diskgroups.
CRS-4000: Command Add failed, or completed with errors.
The command is not supported. I can mention this documentation note from "Clusterware Administration and Deployment Guide" (e10717.pdf):
Oracle does not support storing the OCR on different storage types simultaneously, such as storing OCR on both Oracle ASM and a shared file system, except during a migration.
That's all.
My own Oracle journey. Technical information and guidance on real world scenarios. I hope you enjoy this blog.
Pages
▼
Friday, April 23, 2010
11gR2: removing a mirrored Oracle Cluster Registry and adding again
I want to test a scenario where one of my OCR file is lost.
This is what I have done. Now let's have a look at my OCR configuration.
/u01/app/11.2.0/grid/bin/ocrcheckStatus of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2708
Available space (kbytes) : 259412
ID : 2044210075
Device/File Name : /u02/ocfs2/ocr/OCRFile
Device/File integrity check succeeded
Device/File Name : /u02/ocfs2_mirror/ocr/OCRFile
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
As you can see I've two mirrored OCR files one on /u02/ocfs2/ path and another on /u02/ocfs2_mirror/. For your information, these paths are on two different LUNs formed by several disks and on a RAID-1 configuration
Now I delete it
Issuing:
/u01/app/11.2.0/grid/bin/ocrcheck
PROT-602: Failed to retrieve data from the cluster registry
PROC-26: Error while accessing the physical storage
it says it's no more able to get data from OCR, even if my cluster is still up.
At first I simply tried to add the new OCR file, but I got:
/u01/app/11.2.0/grid/bin/ocrconfig -add /u02/ocfs2_mirror/ocr/OCRFile
PROT-29: The Oracle Cluster Registry location is already configured
/u01/app/11.2.0/grid/bin/ocrconfig -add /u02/ocfs2_mirror/ocr/OCRFile
PROT-29: The Oracle Cluster Registry location is already configured
Clear... I have to first remove from the configuration the "old" location of lost OCR file and then add it again.
/u01/app/11.2.0/grid/bin/ocrconfig -delete /u02/ocfs2_mirror/ocr/OCRFile
/u01/app/11.2.0/grid/bin/ocrconfig -add /u02/ocfs2_mirror/ocr/OCRFile
/u01/app/11.2.0/grid/bin/ocrconfig -delete /u02/ocfs2_mirror/ocr/OCRFile
/u01/app/11.2.0/grid/bin/ocrconfig -add /u02/ocfs2_mirror/ocr/OCRFile
As you can see my OCR configuration is mirrored again:
/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) : 2708
Available space (kbytes) : 259412
ID : 2044210075
Device/File Name : /u02/ocfs2/ocr/OCRFile
Device/File integrity check succeeded
Device/File Name : /u02/ocfs2_mirror/ocr/OCRFile
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
That's all.
/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) : 2708
Available space (kbytes) : 259412
ID : 2044210075
Device/File Name : /u02/ocfs2/ocr/OCRFile
Device/File integrity check succeeded
Device/File Name : /u02/ocfs2_mirror/ocr/OCRFile
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
That's all.