4 Replies Latest reply: Oct 14, 2013 9:22 AM by Levi Pereira RSS

    Why can not see votedisk in ASM?

    Lonion

      Firstly, seeing my configure environment:

       

      OS: RedHat Linux 6.4

      Oracle version: Oracle 11gR2 + RAC(4 nodes) + ASMLib

       

      [grid@rac1 ~]$ crsctl query css votedisk
      ##  STATE    File Universal Id                File Name Disk group
      --  -----    -----------------                --------- ---------
      1. ONLINE   a1bfeb5379f34f6dbf8aaa7497b7110e (ORCL:OCR3) [OCR_VOT]
      2. ONLINE   88fde824d00c4f20bff012d0fd6c25a9 (ORCL:OCR2) [OCR_VOT]
      3. ONLINE   6a394d568c334fe5bf4e9b5841fba733 (ORCL:OCR1) [OCR_VOT]
      Located 3 voting disk(s).
      

       

      From above, we can know that there are 3 voting disks in my rac environment. Disk group name is OCR_VOT.

       

      Secondly, I enter into Disk group named OCR_VOT.

       

      [grid@rac1 ~]$ asmcmd
      ASMCMD> ls
      DATA1/
      DATA2/
      DATA3/
      FRA1/
      OCR_VOT/
      ASMCMD> cd ocr_vot
      ASMCMD> ls
      rac-cluster/
      ASMCMD> cd rac-cluster
      ASMCMD> ls -l
      Type  Redund  Striped  Time             Sys  Name
                                              Y    ASMPARAMETERFILE/
                                              Y    OCRFILE/
      ASMCMD> cd ocrfile
      ASMCMD> ls -l
      Type     Redund  Striped  Time             Sys  Name
      OCRFILE  MIRROR  COARSE   OCT 14 14:00:00  Y    REGISTRY.255.823802021
      

       

      Amazingly, I can't see the votedisk? Where it stored?

       

      Please tell me.

       

      The second question. Why there is no 'VOTEDISKFILE' type in v$asm_file?

      SQL> select distinct type from v$asm_file;
      TYPE
      ----------------------------------------------------------------
      ARCHIVELOG
      ASMPARAMETERFILE
      CONTROLFILE
      DATAFILE
      OCRFILE
      ONLINELOG
      PARAMETERFILE
      TEMPFILE
      
      8 rows select
      ed.
      
        • 1. Re: Why can not see votedisk in ASM?
          Mahir M. Quluzade

          Hi,

           

          Because VOTING  information contains in header of disks.

           

          For example :

           

          $ kfed read /dev/mapper/vg00-lvasm
          kfbh.endian: 1 ; 0x000: 0x01
          kfbh.hard: 130 ; 0x001: 0x82
          kfbh.type: 1 ; 0x002: KFBTYP_DISKHEAD
          ...
          snipped for readability
          ...
          kfdhdb.vfstart: 352 ; 0x0ec: 0x00000160
          kfdhdb.vfend: 384 ; 0x0f0: 0x00000180
          ...
          snipped for readability

          kfdhdb.vfstart tells the begin allocation unit offset of the voting disk, kfdhdb.vfend tells the end offset.

           

          You  can find which ASM disk contain voting file with  following query.

           

          SELECT NAME, VOTING_FILE FROM V$ASM_DISK ORDER BY  1;

           

           

          Regards

          Mahir M. Quluzade

          • 2. Re: Why can not see votedisk in ASM?
            Lonion

            SQL> SELECT group_number,NAME, VOTING_FILE FROM V$ASM_DISK ORDER BY  1;

             

             

            GROUP_NUMBER NAME                           VOT

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

                       1 DATA1                          N

                       2 DATA2                          N

                       3 DATA3                          N

                       4 FRA1                           N

                       5 OCR1                           Y

                       5 OCR2                           Y

                       5 OCR3                           Y

             

            SQL> select name from V$ASM_DISKGROUP where group_number = 5;

             

             

            NAME

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

            OCR_VOT

             

            From above, it tell us votedisk store in diskgroup OCR_VOT.

             

            Now, entering into OCR_VOT and seeing what we can look

            [grid@rac1 ~]$ asmcmd

            ASMCMD> ls -l

            State    Type    Rebal  Name

            MOUNTED  EXTERN  N      DATA1/

            MOUNTED  EXTERN  N      DATA2/

            MOUNTED  EXTERN  N      DATA3/

            MOUNTED  EXTERN  N      FRA1/

            MOUNTED  NORMAL  N      OCR_VOT/

            ASMCMD> cd ocr_vot

            ASMCMD> ls

            rac-cluster/

            ASMCMD> cd rac-cluster

            ASMCMD> ls -l

            Type  Redund  Striped  Time             Sys  Name

                                                    Y    ASMPARAMETERFILE/

                                                    Y    OCRFILE/

            ASMCMD> cd asmparameterfile

            ASMCMD> ls -l

            Type              Redund  Striped  Time             Sys  Name

            ASMPARAMETERFILE  MIRROR  COARSE   AUG 18 17:00:00  Y    REGISTRY.253.823802019

            ASMCMD> cd ..

            ASMCMD> cd ocrfile

            ASMCMD> ls -l

            Type     Redund  Striped  Time             Sys  Name

            OCRFILE  MIRROR  COARSE   OCT 14 14:00:00  Y    REGISTRY.255.823802021

             

            From above, Can you find the votedisk?? Sorry, I can't.

            • 3. Re: Why can not see votedisk in ASM?
              Mahir M. Quluzade

              Because VOTING  information contains in header of disks.

              You must find Voting files in the header of  Voting disks.


              Please read my before reply.


              1. You  must find witch device mapped Oracle ASM disk

              Which device is mapped Oracle ASM disk?

              2. Use kfed tool read AS disk header

              $GRID_HOME/bin/kfed read


              Regards

              Mahir M. Quluzade