After installing the asm rpm package today, the last step of configure always fails when running/etc/init. d/Oracleasm configure:
[Root @ localhost nick] #/etc/init. d/oracleasm configure
Processing 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
Answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]: grid
Default group to own the driver interface [oracle]: asmadmin
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: [OK]
Loading module "oracleasm": Unable to load module "oracleasm"
[FAILED]
View/var/log/messages log information, which is:
Sep 11 20:55:55 localhost modprobe: FATAL: Module oracleasm not found.
My operating system is: RedHat 5.4 32-bit
The kernel version is 2.6.18-164. el5.
The installed asm lib version (which is provided by others during the lib package) is:
Oracleasm-support-2.1.3-1.el5.i386.rpm
Oracleasm-2.6.18-92.el5-2.0.5-1.el5.i686.rpm
Oracleasmlib-2.0.4-1.el5.i386.rpm
This error occurs when the asm lib and kernel versions are inconsistent.
Go to the Oracle Official Website: http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html.
Found No: The oracleasm-support-2.1.3-1.el5.i386.rpm version of the package provides download.
Has been replaced with a oracleasm-support-2.1.7-1.el5.i386.rpm.
Oracleasm-2.6.18-92.el5-2.0.5-1.el5.i686.rpm and oracleasmlib-2.0.4-1.el5.i386.rpm can be found.
Again found a oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm, this package is exactly the same as the kernel version.
Then, delete the previous package and install the following package. Then the configuration is successful:
Oracleasm-support-2.1.7-1.el5.i386.rpm
Oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm
Oracleasmlib-2.0.4-1.el5.i386.rpm
Summary: The oracleasm-support package, oracleasmlib package, may be newer or older than the kernel version, does not affect it. The oracleasm package must be consistent with the kernel version.