Saturday, July 26, 2014

How to move OCR to new diskgroup

[oracle@rac1 trace]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online


[oracle@rac1 trace]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2920
         Available space (kbytes) :     259200
         ID                       : 1238456451
         Device/File Name         :  +OCRVOTE
                                    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

[oracle@rac1 trace]$ ocrconfig -replace +OCRVOTE -replacement +OCR_VOTE
PROT-20: Insufficient permission to proceed. Require privileged user


[root@rac1 ~]# ocrconfig -replace +OCRVOTE -replacement +OCR_VOTE
PROT-28: Cannot delete or replace the only configured Oracle Cluster Registry location

[root@rac1 ~]# ocrconfig -add +OCR_VOTE

[root@rac1 ~]# ocrconfig -delete +OCRVOTE

[root@rac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2920
         Available space (kbytes) :     259200
         ID                       : 1238456451
         Device/File Name         : +OCR_VOTE
                                    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