Tuesday, 11 February 2014

How to Install ASMLIB and Packages Required For Using Oracle ASM

There are many ways to ASMLIB, it can be from get from OTN account or you can use ULN (Un breakable Linux Network).
Also it comes in the the Unbreakable Linux media, but if you are not subscribed to ULN and you are not using Unbreakable Linux then most people go to the OTN, where you have to select your Linux flavor and then navigate to the correct file according to the linux kernel and then download the 3 files one by one.

ASM Library Configuration and Initialization

Download the appropriate ASMLib RPMs from OTN. If you are using the UEK the ASMLib kernel module is present already. For RHEL kernel we would need all three of the following:

Required Packages

(install with same order as given to save your self from error)
Red Color Packages can be find in the LINUX media from where the linux installed.

Install the packages using the following command.             
      #rpm -Uvh oracleasm*.rpm

Configure ASMLib using the following command.
     #oracleasm configure -i

Configuring the Oracle ASM library driver.

Load the kernel module using the following command.
# /usr/sbin/oracleasm init

If you have any problems, run the following command to make sure you have the correct version of the driver.
# /usr/sbin/oracleasm update-driver

Now we are going to create disk groups with following command
Oracleasm createdisk <ASM Disk name > <disk path>

and then we can use oracleasm scandisks and listdisks command for more use.

No comments:

Post a Comment