Skip to main content

Posts

Showing posts with the label registry

11gR2 Migrating Oracle Cluster Registry from Oracle ASM to Other Types of Storage

11gR2 Migrating Oracle Cluster Registry from Oracle ASM to Other Types of Storage T he following are the steps to migrate OCR from Oracle ASM to OCFS2. According to "Clusterware Administration and Deployment Guide" (e10717.pdf) run /u01/app/11.2.0/grid/bin/ocrcheck to see the status of cluster registry. Then create a file (just touch it) under the preferred directory and set the right permissions. This is what I did as root user: touch /u02/ocfs2/ocr/OCRFile chown root.oinstall /u02/ocfs2/ocr/OCRFile chmod 640 /u02/ocfs2/ocr/OCRFile Then add your new OCR file to the final directory: /u01/app/11.2.0/grid/bin/ocrconfig -add /u02/ocfs2/ocr/OCRFile and check again the OCR status: /uo1/app/11.2.0./grid/bin/ocrcheck Now its time to remove OCR file from ASM. Nothing to do on second node. Thats all.

11gR2 removing a mirrored Oracle Cluster Registry and adding again

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 lets have a look at my OCR configuration. /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 As you can see Ive 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 Here is where my mirrored OCR file exists...