We are assuming that you have already installed kmod-oracleasm and oracleasm-support RPMs with yum:

 
# yum install kmod-oracleasm -y
# yum install oracleasm-support -y

For Red Hat Linux, you can download kmod-oracleasm from their support site. Check out my previous blog on where to download kmod-oracleasm for Red Hat 6.4 and above.

oracleasmlib is not available from the default yum repository. You can pull the oracleasmlib RPM from Oracle’s ASMLIB page for Oracle Linux 6:

[root@rac01 software]# rpm -ihv oracleasmlib-2.0.4-1.el6.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:oracleasmlib           ########################################### [100%]

After we install the RPMs, we need to configure ASMLIB to scan immediately and to re-start on reboot for the Oracle user.

[root@rac01 software]# 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]: 
Writing Oracle ASM library driver configuration: done

As the final step in the process, we need to initialize ASMLIB and confirm that it was successfully started:

 
[root@rac01 software]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size 
Mounting ASMlib driver filesystem: /dev/oracleasm

[root@rac01 software]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes

Posted by Charles Kim, Oracle ACE Director


Comments are closed