8 Replies Latest reply: Jan 3, 2013 5:30 AM by Dude! RSS

    How to install ASM instance in oracle linux 6.1

    832703
      Hi,

      I have installed oracle linux 6 and upgraded to oracle linux 6.1 (32 bit) for testing purpose.

      here is details of some commands

      [root@rac2 ~]# uname -a
      Linux rac2.test 2.6.32-131.0.15.el6.i686 #1 SMP Fri May 20 15:00:01 EDT 2011 i68 6 i686 i386 GNU/Linux
      [root@rac2 ~]# modprobe -l | grep oracle ####No output####
      [root@rac2 ~]# rpm -qa| grep oracleasm ####No output####
      [root@rac2 ~]# modprobe /etc/oracleasm
      FATAL: Module /etc/oracleasm not found.

      Please suggest me, do i have to download any other package for enable oracle asm.
        • 1. Re: How to install ASM instance in oracle linux 6.1
          Avi Miller-Oracle
          user13321645 wrote:
          Please suggest me, do i have to download any other package for enable oracle asm.
          The ASM kernel driver is not packaged for the Red Hat Compatible Kernel on Oracle Linux 6. Switch to using the UEK (2.6.32-200) which has oracleasm support built-in. You will still need to install the oracleasmlib RPM.

          Keep in mind however that Oracle Database is not yet certified on Oracle Linux 6, so you're probably still better off using Oracle Linux 5 with the UEK, which is fully certified and supported.
          • 2. Re: How to install ASM instance in oracle linux 6.1
            832703
            Hi,

            I have done these setup and still i am not able to create disk in asm. i have created partition with fdisk with name sdd2,sde2,sdf2
            here is the output of few command--

            [root@rac2 ~]# uname -r
            2.6.32-100.34.1.el6uek.i686

            [root@rac2 ~]# rpm -qa | grep oracle*
            oracle-logos-60.0.11-9.el6.noarch
            oraclelinux-release-notes-6Server-5.i686
            oraclelinux-release-6Server-1.0.2.i686
            oracleasm-support-2.1.5-1.el6.i686

            [root@rac2 ~]# /etc/init.d/oracleasm configure
            Configuring the Oracle ASM library driver.

            This will configure the on-boot properties of the Oracle ASM library
            driver. The following questions will determine whether the driver is
            loaded on boot and what permissions it will have. The current values
            will be shown in brackets ('[]'). Hitting <ENTER> without typing an
            answer will keep that current value. Ctrl-C will abort.

            Default user to own the driver interface [oracle]:
            Default group to own the driver interface [oinstall]:
            Start Oracle ASM library driver on boot (y/n) [y]:
            Scan for Oracle ASM disks on boot (y/n) [y]:
            Writing Oracle ASM library driver configuration: done
            Initializing the Oracle ASMLib driver: [  OK  ]
            Scanning the system for Oracle ASMLib disks: [  OK  ]

            [root@rac2 ~]# /etc/init.d/oracleasm status
            Checking if ASM is loaded: yes
            Checking if /dev/oracleasm is mounted: yes

            [root@rac2 ~]# ls -la /dev/sd*
            brw-rw----. 1 root disk 8, 0 Sep 14 15:57 /dev/sda
            brw-rw----. 1 root disk 8, 1 Sep 14 15:58 /dev/sda1
            brw-rw----. 1 root disk 8, 2 Sep 14 15:57 /dev/sda2
            brw-rw----. 1 root disk 8, 16 Sep 14 15:57 /dev/sdb
            brw-rw----. 1 root disk 8, 17 Sep 14 15:58 /dev/sdb1
            brw-rw----. 1 root disk 8, 48 Sep 14 16:14 /dev/sdd
            brw-rw----. 1 root disk 8, 50 Sep 14 16:14 /dev/sdd2
            brw-rw----. 1 root disk 8, 64 Sep 14 16:14 /dev/sde
            brw-rw----. 1 root disk 8, 66 Sep 14 16:14 /dev/sde2
            brw-rw----. 1 root disk 8, 80 Sep 14 16:14 /dev/sdf
            brw-rw----. 1 root disk 8, 82 Sep 14 16:14 /dev/sdf2

            [root@rac2 ~]# /etc/init.d/oracleasm createdisk ASM01 /dev/sdd2
            Marking disk "ASM01" as an ASM disk: [FAILED]
            [root@rac2 ~]#
            [root@rac2 ~]# tail -20 /var/log/oracleasm
            Creating /dev/oracleasm mount point: /dev/oracleasm
            Loading module "oracleasm": oracleasm
            Mounting ASMlib driver filesystem: /dev/oracleasm
            Reloading disk partitions: done
            Cleaning any stale ASM disks...
            Scanning system for ASM disks...
            Reloading disk partitions: done
            Cleaning any stale ASM disks...
            Scanning system for ASM disks...
            Reloading disk partitions: done
            Cleaning any stale ASM disks...
            Scanning system for ASM disks...
            Disk "ASM01" does not exist or is not instantiated
            Writing disk header: done
            Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "ASM01": Permission denied
            failed
            Clearing disk header: done
            [root@rac2 ~]#


            I have tried to find out solution but did not get anything in google.
            Please suggest if any solution or may be i missed some setup.

            Ram
            • 3. Re: How to install ASM instance in oracle linux 6.1
              Dude!
              What does the following output:

              # /etc/init.d/oracleasm scandisks
              # /etc/init.d/oracleasm listdisks

              However, as the previous answer outlines, Oracle Linux 6 as not been certified yet.
              • 4. Re: How to install ASM instance in oracle linux 6.1
                832703
                [root@rac2 ~]# /etc/init.d/oracleasm scandisks
                Scanning the system for Oracle ASMLib disks: [  OK  ]
                [root@rac2 ~]# /etc/init.d/oracleasm listdisks
                [root@rac2 ~]#
                • 5. Re: How to install ASM instance in oracle linux 6.1
                  Dude!
                  Oracle ASM consists of 3 components: oracleasm-support oracleasmlib and oracleasm-`uname -r`. Unless there is a compatibility issue with 6.1, you might be missing the oracleasmlib package, which is only available from ULN.
                  http://www.oracle.com/technetwork/server-storage/linux/uln-095759.html

                  Non-subscribers are free to use the similar package built for RHEL:
                  http://www.oracle.com/technetwork/server-storage/linux/downloading-asmlib-176895.html

                  It is not available for free for el6. Perhaps it will be when it Oracle Linux 6 is certified, but who knows.
                  • 6. Re: How to install ASM instance in oracle linux 6.1
                    Avi Miller-Oracle
                    Dude wrote:
                    Oracle ASM consists of 3 components: oracleasm-support oracleasmlib and oracleasm-`uname -r`. Unless there is a compatibility issue with 6.1, you might be missing the oracleasmlib package, which is only available from ULN.
                    Note that the oracleasm-`uname -r` packages are deprecated for the UEK, as those components are built in. You only need oracleasm-support and oracleasmlib with the UEK.
                    • 7. Re: How to install ASM instance in oracle linux 6.1
                      SD - Wshah
                      In your oracle linux media look for oracleasm and install the rpm package, oracle has simplified the oracleasm lib stuff by utilizing one simple package i.e. oracleasm-support-x.x.x.-......


                      [root@griddns ~]# rpm -qa | grep oracleasm
                      oracleasm-support-2.1.5-1.el6.x86_64

                      after installing the package the oracleasm should work as follows:

                      [root@griddns ~]# oracleasm
                      Usage: oracleasm [--exec-path=<exec_path>] <command> [ <args> ]
                      oracleasm --exec-path
                      oracleasm -h
                      oracleasm -V
                      The basic oracleasm commands are:
                      configure Configure the Oracle Linux ASMLib driver
                      init Load and initialize the ASMLib driver
                      exit Stop the ASMLib driver
                      scandisks Scan the system for Oracle ASMLib disks
                      status Display the status of the Oracle ASMLib driver
                      listdisks List known Oracle ASMLib disks
                      querydisk Determine if a disk belongs to Oracle ASMlib
                      createdisk Allocate a device for Oracle ASMLib use
                      deletedisk Return a device to the operating system
                      renamedisk Change the label of an Oracle ASMlib disk
                      update-driver Download the latest ASMLib driver
                      [root@griddns ~]# oracleasm configure -i
                      Configuring the Oracle ASM library driver.
                      • 8. Re: How to install ASM instance in oracle linux 6.1
                        Dude!
                        Installing oracleasm-support alone won't do. You also need oracleasmlib and the oracleasm kernel driver. The later is built in the Oracle UEK kernel. Please note that the OP is/was not using the Oracle UEK kernel.

                        Btw, it is better to use the YUM utility instead of RPM to maintain software since it can resolve software dependencies.