#htmlcaption1 Go UP! Pure Javascript. No jQuery. No flash. #htmlcaption2 Stay Connected

Friday, October 18, 2013

Published October 18, 2013 by with 0 comment

How to Move OCR and Voting Disk to ASM Diskgroup in 11gR2

We can use the following steps to migrate OCR and Vote Disk from RAW to ASM Disk.

Step 1:- Check the current OCR File status

bash-3.2$ ./ocrcheck
Status of Oracle Cluster Registry is as follows :
        Version                  :          3
        Total space (kbytes)     :     100192
        Used space (kbytes)      :       6376
        Available space (kbytes) :      93816
        ID                       : 1523118380
        Device/File Name         : /dev/rdsk/c1t1d0s0
                                   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

Step 2:- Check the Voting Disk status

bash-3.2$ ./crsctl query css votedisk

##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   3cdba20959096f37ffebf8b0da6b741e (/dev/rdsk/c1t1d0s1) []
Located 1 voting disk(s).

Step 3:- Create a new ASM diskgroup for OCR and Voting disk.

SQL> create diskgroup data external redundancy disk ‘/dev/rdsk/c1t1d0s4’, ‘/dev/rdsk/c1t1d0s5’;
SQL> alter diskgroup CRS mount;

Step 4:- Change the compatible version of the asm diskgroup to 11.2

SQL> select name,COMPATIBILITY,DATABASE_COMPATIBILITY from v$asm_diskgroup;


SQL> alter diskgroup DATA set attribute 'compatible.asm'='11.2';

SQL> alter diskgroup CRS set attribute 'compatible.asm'='11.2';

Step 5:-  Move the voting disk from raw to ASM with the crsctl command:

root>./crsctl replace votedisk +CRS
Step 6:- Check the voting disk on ASM after the migration                         
root>./crsctl query css votedisk

Step 7:- View existing OCR before migration using the ocrcheck command


Step 8:- ADD new OCR by providing ASM diskgroup

root> ./ocrconfig -add +CRS

Step 9:- Run ocrcheck again after adding asmdg for OCR

root> ./oracle/11.2.0/gridhome/bin/ocrcheck

Step 10:- Delete the old OCR with the ocrconfig command:

root> ./oracle/11.2.0/gridhome/bin/ocrconfig -delete /dev/rdsk/c1t1d0s0

Step 11:- Re-run ocrcheck again after deleting the old OCR

root> ./ocrcheck