5 Replies Latest reply: Dec 4, 2012 11:33 PM by Billy~Verreynne RSS

    find disk name while asm down

    user3266490
      Hi,

      Db :11.2.0.1
      Os :Aix 6

      While the asm is down is it possible to check the list of disk and disk group name?

      Thanks & Regards,
      VN
        • 1. Re: find disk name while asm down
          moreajays
          Hi,

          No , ASM instance should be running to query ASM views & to use asmcmd.

          By OS commands you can get raw devices path

          Thank,
          Ajay More
          http://moreajays.blogspot.com
          • 2. Re: find disk name while asm down
            JohnWatson
            You can find the ASM disc discovery string and the group with your ASM spfile by looking at the $GI_HOME/gpnp/profiles/peer/profile.xml file, look for a tag something like this:
            <orcl:ASM-Profile id="asm" DiscoveryString="/u01/nfs_shares/asm/gold*" SPFile="+DATA/goldcluster/asmparameterfile/registry.253.790873873"/>
            Your ocr.loc file will name the groups with your OCR.
            • 3. Re: find disk name while asm down
              Levi Pereira
              Handle:          user3266490  
              Total Posts:     1,376
              Total Questions: 806 (659 unresolved)
              Please close your answered thread.

              <h4>Collaboration is what makes the information that you need to be free.</h4>
              user3266490 wrote:
              Hi,

              Db :11.2.0.1
              Os :Aix 6

              While the asm is down is it possible to check the list of disk and disk group name?

              Thanks & Regards,
              VN
              Yes. You can use KFOD utility.


              I recommend you run command below as grid user and $GRID_HOME:
              kfod asm_diskstring=/dev/rh* disks=all  dscvgroup=TRUE status=true
              P.S : If the permission/owner was changed and you is trying to find what disks is a member of ASM then run the command above as root user.

              Note:

              Keep in mind that the Grid Infrastructure software does not need to be installed to use kfod, since kfod is located as well on the staging area where you uncompressed the Grid Infrastructure software, as the following example:

              /stage/grid/stage/ext/bin/kfod
              Where: "/stage" is the directory where I uncompressed the source software for the Grid Infrastructure software.

              HTH,
              Levi Pereira

              Edited by: Levi Pereira on Nov 29, 2012 4:22 PM
              • 4. Re: find disk name while asm down
                onedbguru
                If you want to interrogate these devices directly, you can use:

                dd if=<asm-device> of=x.x bs=8192 count=1
                vi x.x and you can see the ASM header....

                not for the faint-of-heart
                • 5. Re: find disk name while asm down
                  Billy~Verreynne
                  onedbguru wrote:
                  If you want to interrogate these devices directly, you can use:

                  dd if=<asm-device> of=x.x bs=8192 count=1
                  vi x.x and you can see the ASM header....

                  not for the faint-of-heart
                  Suggest using od (octal dump) instead. Dumping the label as ASCII makes it pretty readable:
                  [root@dev1 ~]# od --read-bytes=128 -a /dev/dm-3
                  0000000 soh stx soh soh nul nul nul nul ack nul nul nul   >   2 soh   @
                  0000020 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul
                  0000040   O   R   C   L   D   I   S   K nul nul nul nul nul nul nul nul
                  0000060 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul
                  0000100 nul nul  sp  vt ack nul stx etx   D   A   T   A   1   _   0   0
                  0000120   0   6 nul nul nul nul nul nul nul nul nul nul nul nul nul nul
                  0000140 nul nul nul nul nul nul nul nul   D   A   T   A   1 nul nul nul
                  0000160 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul
                  0000200
                  ORCLDISK = ASM disk identifier
                  DATA1_0006 = ASM disk name
                  DATA1 = ASM diskgroup