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
Drivers for kernel 2.6.9-5.0.5.EL
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 !
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-22.214.171.124.3.ELsmp-2.0.0-1.i686.rpm
and You can downloaded the Support and other RPM's from Oracle site.
I downloaded and reconfigured RPMs that you suggested. But not successful.
I think RPM oracleasm-2.6.9-126.96.36.199.3.ELsmp-2.0.0-1.i686.rpm not exacted with version kernel (My version kernel is 2.6.9-5EL)
Please help me.
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-188.8.131.52.EL-xxx-1.i686.rpm,otherwise you will get the error of "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...
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.
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