3 Replies Latest reply: Feb 21, 2014 8:30 PM by User2121 - -Oracle RSS

    Contents/location of OCR and voting file: need enlightenment...

    1007321

      Hi,

      The doc. states

      The voting disk is a file that manages o information about node membership,

      and the OCR is a file that manages     o cluster

                                     and     o Oracle RAC database configuration information.

       

      When I enter asmcmd utility I see the following:

      ASMCMD> pwd

      +DATA/mycluster/OCRFILE

      ASMCMD> ls -ls

      Type     Redund  Striped  Time             Sys  Block_Size  Blocks      Bytes      Space  Name

      OCRFILE  UNPROT  COARSE   FEB 11 11:00:00  Y          4096   66591  272756736  274726912  REGISTRY.255.827163049

       

      This is the so-called OCR right ? Where is the voting disk - it seems not to be visible, or is it ?

      'crsctl query css votedisk' shows:

      [grid@machine ~]$ crsctl query css votedisk

      ##  STATE    File Universal Id                File Name                      Disk group

      --  -----    -----------------                ------------------------------ ----------

      1. ONLINE   99273545d2db4fd0bffcd8e3a1a1e3ec (/dev/oracleasm/disks/ASMDSK1) [DATA]

       

      and

      [grid@machine ~]$ ocrcheck

      Status of Oracle Cluster Registry is as follows :

               Version                  :          3

               Total space (kbytes)     :     262120

               Used space (kbytes)      :       3028

               Available space (kbytes) :     259092

               ID                       : 1051697976

               Device/File Name         :      +DATA

                                          Device/File integrity check succeeded

       

      So, the "registry.255...." file above in DATA/mycluster/OCRFILE is the Oracle cluster registry file OK ?

      The "voting file" is not visible per se in asmcmd ?

       

      MOS note 1053147.1 says "voting file is backed up into the OCR at every configuration change and can

      be restored via crsctl": does that mean the voting file is merged inside these OCR backup files backupXX.ocr

      taken every 4 hours that I can see in $GRID_HOME/cdata/mycluster directory ?

       

      Why 2 separates files (one for "node membership" and another for "cluster and RAC DB config information") ??

       

      Does anybody have an idea of how this "node membership" information is stored in the voting files ? What

      does it contain exactly (seems to me to be quite redundant with "cluster and RAC config information"...) ?

       

      Thanks for your help...

      Regards,

      Seb

        • 1. Re: Contents/location of OCR and voting file: need enlightenment...
          Mohammed Mehraj Hussain

          Hello,

           

          You can't able to see the physical location of the voting disk in the ASM disk group using the ASMCMD. Voting disks are stored in ASM disk header area.


          Regards,

          Mohammed

          • 2. Re: Contents/location of OCR and voting file: need enlightenment...
            Rahul_gupta

            Well as per my understanding

             

            You can see OCR File by using Asmcmd as this is a normal File stored in Diskgroup inheriting its redundancy as well. It keeps All resources information and there state.


            The "voting file" is not visible per se in asmcmd ?


            Purpose of Voting disk to maintain node membership information and  ensuring node availability using (Disk heartbeat).

            Secondly voting Disk are required by cluster During  startup and it get accessed before Asm instance is up using KFED utiility.These voting disks are special type of file which neither get stripped nor inherit redundancy of DiskGroup(For eg in case of normal redundancy diskgroup 3 voting disk are created each one on separate Disk ).That is why you cannot see them using asmcmd


            voting file is merged inside these OCR backup files backupXX.ocr?

             

            Yes Earlier in 10G we has to take backup of voting disk separately using  dd command which also had risk of corrupting voting disk so to deal with such problem Oracle 11G Automate Voting disk backup using OCR.

             

            Why 2 separates files (one for "node membership" and another for "cluster and RAC DB config information") ??


            Voting disk and OCR does not contain same information ocr contain resources information of cluster with dependency. while voting disk maintain Availability of node in cluster  also escalate kill request to a node.in case of missing heartbeat.



            Hope it helps


            Regards

            Rahul Gupta

            • 3. Re: Contents/location of OCR and voting file: need enlightenment...
              User2121 - -Oracle

              to know the info inside ocr do

              ocrdump <filename>

               

              the file will have the info stored in ocr in readable format