I was able to install oracleasmlib, support and kmod but even then when I was trying to initialize the oracleasm init it was failing.
I think the reason was we should have aleast RedHat linux 6.4 or above for this.
[root@rac1 ~]# cd /media/sf_vshare/
[root@rac1 sf_vshare]# rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm
warning: oracleasmlib-2.0.4-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
error: Failed dependencies:
oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el6.x86_64
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]# yum install kmod-oracleasm
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kmod-oracleasm.x86_64 0:2.0.8-4.el6_6 will be installed
--> Processing Dependency: kernel(get_user_pages_fast) = 0xa2046a95 for package: kmod-oracleasm-2.0.8-4.el6_6.x86_64
--> Processing Dependency: kernel >= 2.6.32-504.el6 for package: kmod-oracleasm-2.0.8-4.el6_6.x86_64
--> Running transaction check
---> Package kernel.x86_64 0:2.6.32-504.1.3.el6 will be installed
--> Processing Dependency: kernel-firmware >= 2.6.32-504.1.3.el6 for package: kernel-2.6.32-504.1.3.el6.x86_64
--> Running transaction check
---> Package kernel-firmware.noarch 0:2.6.32-358.14.1.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-504.1.3.el6 will be an update
--> Processing Conflict: kernel-2.6.32-504.1.3.el6.x86_64 conflicts bfa-firmware < 3.2.21.1-2
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package bfa-firmware.noarch 0:3.0.3.1-1.el6 will be updated
---> Package bfa-firmware.noarch 0:3.2.23.0-2.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================================================================================================
Installing:
kmod-oracleasm x86_64 2.0.8-4.el6_6 rhel-x86_64-server-6 35 k
Updating:
bfa-firmware noarch 3.2.23.0-2.el6 rhel-x86_64-server-6 3.2 M
Installing for dependencies:
kernel x86_64 2.6.32-504.1.3.el6 rhel-x86_64-server-6 29 M
Updating for dependencies:
kernel-firmware noarch 2.6.32-504.1.3.el6 rhel-x86_64-server-6 14 M
Transaction Summary
================================================================================================================================================================================================================================================================
Install 2 Package(s)
Upgrade 2 Package(s)
Total download size: 47 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): bfa-firmware-3.2.23.0-2.el6.noarch.rpm | 3.2 MB 00:00
(2/4): kernel-2.6.32-504.1.3.el6.x86_64.rpm | 29 MB 00:03
(3/4): kernel-firmware-2.6.32-504.1.3.el6.noarch.rpm | 14 MB 00:01
(4/4): kmod-oracleasm-2.0.8-4.el6_6.x86_64.rpm | 35 kB 00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.9 MB/s | 47 MB 00:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Updating : kernel-firmware-2.6.32-504.1.3.el6.noarch 1/6
Installing : kernel-2.6.32-504.1.3.el6.x86_64 2/6
Installing : kmod-oracleasm-2.0.8-4.el6_6.x86_64 3/6
Updating : bfa-firmware-3.2.23.0-2.el6.noarch 4/6
Cleanup : kernel-firmware-2.6.32-358.14.1.el6.noarch 5/6
Cleanup : bfa-firmware-3.0.3.1-1.el6.noarch 6/6
Installed products updated.
Verifying : kernel-2.6.32-504.1.3.el6.x86_64 1/6
Verifying : bfa-firmware-3.2.23.0-2.el6.noarch 2/6
Verifying : kernel-firmware-2.6.32-504.1.3.el6.noarch 3/6
Verifying : kmod-oracleasm-2.0.8-4.el6_6.x86_64 4/6
Verifying : kernel-firmware-2.6.32-358.14.1.el6.noarch 5/6
Verifying : bfa-firmware-3.0.3.1-1.el6.noarch 6/6
Installed:
kmod-oracleasm.x86_64 0:2.0.8-4.el6_6
Dependency Installed:
kernel.x86_64 0:2.6.32-504.1.3.el6
Updated:
bfa-firmware.noarch 0:3.2.23.0-2.el6
Dependency Updated:
kernel-firmware.noarch 0:2.6.32-504.1.3.el6
Complete!
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]# pwd
/media/sf_vshare
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]# ls -lah
total 244K
drwxrwx---. 1 root vboxsf 4.0K Jun 24 10:27 .
drwxr-xr-x. 4 root root 4.0K Dec 10 11:53 ..
drwxrwx---. 1 root vboxsf 0 Jun 24 10:29 db_backups
-rwxrwx---. 1 root vboxsf 894 Aug 1 2013 file.log
-rwxrwx---. 1 root vboxsf 13K Jul 15 2013 oracleasmlib-2.0.4-1.el6.x86_64.rpm
-rwxrwx---. 1 root vboxsf 74K Jul 15 2013 oracleasm-support-2.1.8-1.el6.x86_64.rpm
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]# yum localinstall oracleasmlib-2.0.4-1.el6.x86_64.rpm
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Local Package Process
Examining oracleasmlib-2.0.4-1.el6.x86_64.rpm: oracleasmlib-2.0.4-1.el6.x86_64
Marking oracleasmlib-2.0.4-1.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracleasmlib.x86_64 0:2.0.4-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================================================================================================
Installing:
oracleasmlib x86_64 2.0.4-1.el6 /oracleasmlib-2.0.4-1.el6.x86_64 27 k
Transaction Summary
================================================================================================================================================================================================================================================================
Install 1 Package(s)
Total size: 27 k
Installed size: 27 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : oracleasmlib-2.0.4-1.el6.x86_64 1/1
Installed products updated.
Verifying : oracleasmlib-2.0.4-1.el6.x86_64 1/1
Installed:
oracleasmlib.x86_64 0:2.0.4-1.el6
Complete!
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]# yum localinstall oracleasm-support-2.1.8-1.el6.x86_64.rpm
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Local Package Process
Examining oracleasm-support-2.1.8-1.el6.x86_64.rpm: oracleasm-support-2.1.8-1.el6.x86_64
Marking oracleasm-support-2.1.8-1.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracleasm-support.x86_64 0:2.1.8-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================================================================================================
Installing:
oracleasm-support x86_64 2.1.8-1.el6 /oracleasm-support-2.1.8-1.el6.x86_64 216 k
Transaction Summary
================================================================================================================================================================================================================================================================
Install 1 Package(s)
Total size: 216 k
Installed size: 216 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : oracleasm-support-2.1.8-1.el6.x86_64 1/1
Installed products updated.
Verifying : oracleasm-support-2.1.8-1.el6.x86_64 1/1
Installed:
oracleasm-support.x86_64 0:2.1.8-1.el6
Complete!
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]# oracleasm configure -i
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 []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"
[root@rac1 sf_vshare]#
[root@rac1 sf_vshare]#
This was fixed by doing yum update and updateing RHEL to 6.6 and this has fixed it.
Other way, bit strange as lib is 32bit and support is 64bit, but works:
# yum install oracleasm
# rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm
# rpm -ivh oracleasmlib-2.0.4-1.el6.i686.rpm
[root@rac2 1]# oracleasm configure -i
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]: oracle
Default group to own the driver interface [dba]: dba
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@rac2 1]#
# shutdown -r now
# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
#
oracleasmlib-2.0.4-1.el6.i686.rpm was downloaded from
http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.html
oracleasm-support-2.1.8-1.el6.x86_64.rpm was downloaded from
http://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel6-1940776.html