10 Replies Latest reply: May 31, 2013 4:13 AM by 1009567 RSS

    ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION

    1009567
      Hi Guru,

      Im new to oracle,just started, we are installing ORCALE 11gr2 11.2.0.3 single node cluster for an test environment on RHEL 6.2.

      we installed oracle prerequisite with yum provided by oracle with following command.

      yum install "oracle-rdbms-server-11gR2-preinstall" ##did all pathch,rpm & parameter set automatically.

      create users oracle & grid with required group.

      part-ion disk

      #fdisk /dev/sd*
      n,p,1,<>,<>,w

      #partprob /dev/sd*


      Install oracleasm with "yum install kmod-oracleasm" including support & asmlib file .

      oracleasm configure
      ORACLEASM_ENABLED=true
      ORACLEASM_UID=grid
      ORACLEASM_GID=asmdba
      ORACLEASM_SCANBOOT=true
      ORACLEASM_SCANORDER=""
      ORACLEASM_SCANEXCLUDE=""
      ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"

      oracleasm listdisks
      DATA01
      DATA02
      VOTE01
      VOTE02
      VOTE03

      ls -ltr /dev/oracleasm/disks/*
      brw-rw---- 1 grid asmdba 8, 17 May 17 15:58 /dev/oracleasm/disks/VOTE01
      brw-rw---- 1 grid asmdba 8, 33 May 17 15:58 /dev/oracleasm/disks/VOTE02
      brw-rw---- 1 grid asmdba 8, 49 May 17 15:58 /dev/oracleasm/disks/VOTE03
      brw-rw---- 1 grid asmdba 8, 65 May 17 15:59 /dev/oracleasm/disks/DATA01
      brw-rw---- 1 grid asmdba 8, 81 May 17 15:59 /dev/oracleasm/disks/DATA02


      started grid installation with (grid, asmdba) ./runInstaller

      Every things seems good till the time.

      while it looks for asmdisk during installation it will not show asm labled disk there with discovery string "/dev/oracleasm/disks/*" -----"OCRL:*"

      Please help, im stuck in this issue from 5 days.

      Regards
      Sumit Sharma
        • 1. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
          Mihael
          Have you created asm disks with "oracleasm createdisk" ?
          • 2. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
            rarain
            Hi,

            Do the following steps:-

            # oracleasm exit
            # oracleasm init
            # oracleasm scandisks

            Re-invoke the installer after doing above steps.

            Thanks
            • 3. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
              1009567
              yes i do used oracleasm to create the partition.
              • 4. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
                1009567
                used the same

                # oracleasm exit
                # oracleasm init
                # oracleasm scandisk

                but not successive.
                • 5. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
                  rarain
                  Hi,

                  Please post the contents of /etc/sysconfig/oracleasm file.

                  Thanks
                  • 6. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
                    AshishShukla
                    Hello,

                    To resolve this issue, first reconfigure your ASMlib using following steps:

                    [root@host02 ~]# ll -ltr /dev/oracleasm/disks/ASMDISK0*

                    brw-rw---- 1 grid asmadmin 8, 17 May 15 11:05 /dev/oracleasm/disks/ASMDISK01
                    brw-rw---- 1 grid asmadmin 8, 18 May 15 11:05 /dev/oracleasm/disks/ASMDISK02
                    brw-rw---- 1 grid asmadmin 8, 19 May 15 11:05 /dev/oracleasm/disks/ASMDISK03
                    brw-rw---- 1 grid asmadmin 8, 21 May 15 11:05 /dev/oracleasm/disks/ASMDISK04
                    brw-rw---- 1 grid asmadmin 8, 22 May 15 11:05 /dev/oracleasm/disks/ASMDISK05
                    brw-rw---- 1 grid asmadmin 8, 23 May 15 11:05 /dev/oracleasm/disks/ASMDISK06
                    brw-rw---- 1 grid asmadmin 8, 24 May 15 11:05 /dev/oracleasm/disks/ASMDISK07
                    brw-rw---- 1 grid asmadmin 8, 25 May 15 11:05 /dev/oracleasm/disks/ASMDISK08

                    If the permission is not like this then do the following:

                    *[root@host02 ~]# oracleasm configure -i*
                    Configuring the Oracle ASM library driver.

                    Default user to own the driver interface [asd]: grid
                    Default group to own the driver interface [asd]: asmadmin
                    Start Oracle ASM library driver on boot (y/n) [y]: y
                    Scan for Oracle ASM disks on boot (y/n) [y]: y
                    Writing Oracle ASM library driver configuration: done

                    [root@host02 ~]# oracleasm exit
                    [root@host02 ~]#
                    [root@host02 ~]#
                    [root@host02 ~]# oracleasm init
                    Loading module "oracleasm": oracleasm
                    Mounting ASMlib driver filesystem: /dev/oracleasm
                    [root@host02 ~]#
                    [root@host02 ~]#
                    [root@host02 ~]#
                    [root@host02 ~]# oracleasm scandisks
                    Reloading disk partitions: done
                    Cleaning any stale ASM disks...
                    Scanning system for ASM disks...
                    Instantiating disk "ASMDISK01"
                    Instantiating disk "ASMDISK02"
                    Instantiating disk "ASMDISK03"
                    Instantiating disk "ASMDISK04"
                    Instantiating disk "ASMDISK05"
                    Instantiating disk "ASMDISK06"

                    [root@host02 ~]#
                    [root@host02 ~]#
                    [root@host02 ~]#
                    [root@host02 ~]# oracleasm listdisks
                    ASMDISK01
                    ASMDISK02
                    ASMDISK03
                    ASMDISK04
                    ASMDISK05
                    ASMDISK06

                    Hope it will work.

                    Thanks,
                    Ashish Shukla
                    • 7. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
                      Dude!
                      You are probably missing the oracleasm-discover utility, which is part of the oracleasmlib installation

                      Grid runInstall can't find candidate disks .
                      Grid runInstall can't find candidate disks

                      http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.html
                      • 8. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
                        1009567
                        Please have a glance over required file !

                        cat /etc/sysconfig/oracleasm
                        #
                        # This is a configuration file for automatic loading of the Oracle
                        # Automatic Storage Management library kernel driver. It is generated
                        # By running /etc/init.d/oracleasm configure. Please use that method
                        # to modify this file
                        #

                        # ORACLEASM_ENABLED: 'true' means to load the driver on boot.
                        ORACLEASM_ENABLED=true

                        # ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.
                        ORACLEASM_UID=grid

                        # ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.
                        ORACLEASM_GID=asmdba

                        # ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.
                        ORACLEASM_SCANBOOT=true

                        # ORACLEASM_SCANORDER: Matching patterns to order disk scanning
                        ORACLEASM_SCANORDER=""

                        # ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
                        ORACLEASM_SCANEXCLUDE=""

                        # ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size
                        # reported by the underlying disk instead of the physical. The default
                        # is 'false'
                        ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false
                        • 9. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
                          1009567
                          NO i have oracleasm-discover with me as i installed it from oracle only so it was part of rpm.

                          im able to find disk by command


                          [root@ractest ~]# oracleasm-discover
                          Using ASMLib from /opt/oracle/extapi/64/asm/orcl/1/libasm.so
                          [ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
                          Discovered disk: ORCL:DATA01 [4192902 blocks (2146765824 bytes), maxio 512]
                          Discovered disk: ORCL:DATA02 [4192902 blocks (2146765824 bytes), maxio 512]
                          Discovered disk: ORCL:VOTE01 [4192902 blocks (2146765824 bytes), maxio 512]
                          Discovered disk: ORCL:VOTE02 [4192902 blocks (2146765824 bytes), maxio 512]
                          Discovered disk: ORCL:VOTE03 [4192902 blocks (2146765824 bytes), maxio 512]
                          • 10. Re: ASM LABLED DISK NOT SHOWN IN GRID INSTALLATION
                            1009567
                            Dear All,

                            My issue has been resolved,The issue belongs to the media.(DOWNLOAD was corrupt)
                            while checking cksum for the grid media it was differ from the oracle download side.
                            #> chksum <gridmedia.....zip>
                            XXXXXXXbytes, xxxxxxxcksum
                            So i downloaded again & give one more try & got succeeded.

                            Thanks for the suggestion & inputs.