This blog post will cover how to install ASMLIB and reveal the dependency order of the RPMs.

ASMLIB is only available for the linux operating system.  ASMLIB is available for the following flavors of Oracle Unbreakable Linux:

Installing Oracle ASMLIB has dependency requirements. The RPMs must be installed in the following order:

1. oracleasm-support

2. oracleasm

3. oracleasmlib

If the System Administrators (SAs) attempt to apply RPMs in a different order than what is listed above, they will encounter the "error: Failed dependencies" message. In the example below, ASMLIB RPMs will be installed and configured in the correct dependency order:

[root@gc oracle]# rpm -ihv oracleasm-support-2.0.3-1.i386.rpm
Preparing… ########################################### [100%]
1:oracleasm-support ########################################### [100%]
[root@gc oracle]# rpm -ihv oracleasm-2.6.9-55.0.2.EL-2.0.3-1.i686.rpm
Preparing… ########################################### [100%]
1:oracleasm-2.6.9-55.0.2.########################################### [100%]
[root@gc oracle]# rpm -ihv oracleasmlib-2.0.2-1.i386.rpm
Preparing… ########################################### [100%]
1:oracleasmlib ################
###########################
[100%]

Alternatively, SAs can opt to install all three RPMs at once by listing all the RPMs as shown below:

[root@gc oracle]# rpm -ihv oracleasm-2.6.9-55.0.2.EL-2.0.3-1.i686.rpm \
oracleasmlib-2.0.2-1.i386.rpm \
oracleasm-support-2.0.3-1.i386.rpm
Preparing… ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.9-55.0.2.########################################### [ 67%]
3:oracleasmlib ########################################### [100%]

By listing all the RPMs on a single command line syntax, SAs do not have to be cognitive of dependency order.

We recommend that RPMs for ASMLIB 2.0 be downloaded from Oracle’s website. When downloading RPMs, SAs/DBAs must carefully select the appropriate RPMs specific for their linux kernel version and architecture. You can use the uname -r command to determine the exact version of the linux kernel specific to your environment.  RPMs specific to Redhat 4 can be downloaded from the website listed below:

http://www.oracle.com/technology/software/tech/linux/asmlib/rhel4.html

 If you have issues loading the oracleasm module, you will see errors in the /var/log/messages file that look similar to what is shown below:

Apr 24 22:24:42 gc modprobe: FATAL: Module oracleasm not found.
Apr 24 22:24:42 gc oracleasm: Unable failed

 

 

Created by Charles Kim, Oracle ACE Director

Posted in ASM
Share this post, let the world know

Leave a Reply

Your email address will not be published. Required fields are marked *

*