2 Replies Latest reply: Jul 26, 2013 7:48 AM by Mihael RSS

    accidently deleted OCR diskgroup including OCR. What should I do to bring OCR back?

    877440

      OS: Linux redhat 5

       

      DB version is : 11.2.0.3

       

      I was trying to reorg the diskgroup and accidently deleted the diskgroup which including OCR.

       

      How I cannot bring up asmca and not sure what to proceed here.

       

      I tried to restore the backup, it seems backup to the original deleted diskgroup.

       

      Please help here.

       

      Thanks.

        • 1. Re: accidently deleted OCR diskgroup including OCR. What should I do to bring OCR back?
          JohnWatson

          Can you describe what you did? For instance, did you drop the disc group? Did you delete files on the disc group? Were you working with OS utilities, or within the Oracle environment?

          And what do you mean by "cannot bring up asmca"? Do you mean that none of the Grid processes are running? Or what?

           

          Message was edited by: JohnWatson And what sort of backup? A metadata backup? An OCR autobackup? Or manual? Or an export?

          • 2. Re: accidently deleted OCR diskgroup including OCR. What should I do to bring OCR back?
            Mihael

            You can use the following procedure if diskgroup with OCR is lost.

             

            1. Start one node.

             

             

            2. Stop crs:

              crsctl stop crs -f

             

             

            3. Start crs in exclusive mode:

             

              crsctl start crs -excl

             

             

            4.start ASM, set asm_diskstring (if required) and create diskgroup with the same name (ASM can start with dummy parameter file)

             

             

            5. List OCR backups and restore OCR from most recent backup :

             

              ocrconfig -showbackup

              ocrconfig -restore <backup_file>

             

             

            6. Stop crs:

              crsctl stop crs -f

             

             

            7. If voting files are Ok, restart all nodes.

             

            ELSE - restore voting files:

             

             

            crsctl start crs -excl

             

            connect to ASM and set asm_diskstring (if required)

             

            crsctl replace votedisk +<diskgroup_name>

             

            crsctl stop crs -f

             

            restart all nodes