8 Replies Latest reply on Apr 17, 2009 2:52 PM by fjfranken

    Unable to load module "oracleasm"

      I checked kernel version:
      [root@webcache ~]#uname -r
      And then I downloaded ASMLib at http://www.oracle.com/technology/software/tech/linux/asmlib/rhel4.html:
      Library and Tools

      * oracleasm-support-2.0.0-1.i386.rpm
      * oracleasmlib-2.0.0-1.i386.rpm

      Drivers for kernel 2.6.9-5.0.5.EL

      * oracleasm-2.6.9-5.0.5.EL-2.0.0-1.i686.rpm
      * oracleasm-2.6.9-5.0.5.ELhugemem-2.0.0-1.i686.rpm
      * oracleasm-2.6.9-5.0.5.ELsmp-2.0.0-1.i686.rpm

      The installation went fine. But I encounter problem to load oracleasm module in RHEL4.0. See
      [root@webcache ~]# /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]: y
      Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
      Writing Oracle ASM library driver configuration: [  OK  ]
      Loading module "oracleasm": Unable to load module "oracleasm"

      Please help !
        • 1. Re: Unable to load module "oracleasm"
          You need other RPM, Which Oracle does not have, I had same problem and Oracle support couldn't help it. I had to wait almost 2 months still was not able to get help. Luckily after some googling, I was able to download the new RPM which works. Download the RPM from http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle10gRAC/Install10gR2RACOnCentOS41/oracleasm-2.6.9-
          and You can downloaded the Support and other RPM's from Oracle site.
          • 2. Re: Unable to load module "oracleasm"
            Thanks Almeddy.

            I downloaded and reconfigured RPMs that you suggested. But not successful.
            I think RPM oracleasm-2.6.9- not exacted with version kernel (My version kernel is 2.6.9-5EL)

            Please help me.
            • 3. Re: Unable to load module "oracleasm"
              Hi ,

              Don't know whether you got your solution , but u can refer to this thread..
              Loading module "oracleasm": Unable to load module "oracleasm"

              I will also try that too but if that still fail then i will go ahead to upgrade my kernel..or burn an new ISO on that..latest linx..:)
              • 4. Re: Unable to load module "oracleasm"
                You should download the right asmlib version extremely match your RH4 kernel version.For example,your RH4 kernel is 2.6.9-5.EL,then you should download oracleasm-,otherwise you will get the error of "unable to load module oracleasm"
                • 5. Re: Unable to load module "oracleasm"
                  I've also found out that the "default" oracleasm download simply puts the module in an incorrect directory.
                  Simple research showed that all "my" kernel modules where in:


                  whereas the oracle rpm put the oracleasm module in:


                  Just an update for this thread for future searches...
                  • 6. Re: Unable to load module "oracleasm"
                    This is because the oracleasm RPM package you have does not exactly match the kernel you are using.

                    The correct oracleasm kernel driver can always be found in the:
                    # /usr/sbin/up2date oracleasm-$(uname -r)
                    # /bin/rpm -q oracleasm-$(uname -r)
                    assuming you have an Oracle ULN subscription. If not, you will need to download
                    the RPM of that name from the official


                    distribution page. As you have probably found already, compiling it yourself is
                    tricky and will not be supported by Oracle anyway.

                    • 7. Re: Unable to load module "oracleasm"
                      I checked the following link, and there is no exact oracle asm kernel driver for your running kernel 2.6.9-5.EL. the lowest RHEL4 ASM kernel driver is for 2.6.9-5.0.5.EL.

                      Thus, there are two ways to fix your problem:
                      1. Upgrade kernel
                      the easy way is to upgrade the kernel to higer verion, and then you may download matched asm kernel driver.
                      2. Use oracleasm_debug_link tool
                      oracleasm_debug_link tool allows you to reuse the ASMLib kernel module from a similar kernel version. here is an example:
                      # /usr/lib/oracleasm/oracleasm_debug_link 2.6.9-5.0.5.EL $(uname -r)

                      This will create a symbolic link between the file installed by the RPM /lib/modules/2.6.9-5.0.5.EL/kernel/drivers/addon/oracleasm/oracleasm.ko and the directory tree for the currently-running kernel /lib/modules/$(uname -r)/kernel/drivers/addon/oracleasm/oracleasm.ko location. and then try to configure& start oracleasm
                      # /etc/init.d/oracleasm configure
                      • 8. Re: Unable to load module "oracleasm"
                        TommyReynolds wrote:
                        This is because the oracleasm RPM package you have does not exactly match the kernel you are using.
                        I now downloaded the correct version. Totally overlooked it.
                        All looks OK now. Thanks