Install & Configure ASMLib on Linux

Steps to install and configure ASMLib’s on Linux

Download the RPM’s
Download the latest ASM libraries from the oracle website
http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html

Install the RPM’s
Installation must be done as root user.
#rpm -Uvh oracleasm-support-2.1.3-1.el5.i386.rpm \
> oracleasm-2.6.18-8.el5-2.0.4-1.el5.i686.rpm \
> oracleasmlib-2.0.4-1.el5.i386.rpm
Preparing…                ################################## [100%]
1:oracleasm-support      ############################### [ 33%]
2:oracleasm-2.6.18-8.el5 ############################## [ 67%]
3:oracleasmlib           ################################ [100%]

Configure and Loading the ASMLib 2.0 Packages
Note:Before you proceed to configure the ASM you need to disable SELINUX
or you may come across the below error

Initializing the Oracle ASMLib driver:                     [FAILED]

Disable the SELINUX by running the below command from X-window.
#/usr/bin/system-config-securitylevel &

Go to SELinux tab and disable it.
(Or)
Modify the file /etc/selinux/config in redhat or /boot/grub/grub.conf in other linux
with GRUB boot loader.
It looks like this:
# SELINUX= can take one of these three values:
#       enforcing – SELinux security policy is enforced.
#       permissive – SELinux prints warnings instead of enforcing.
#       disabled – SELinux is fully disabled.
SELINUX=enforcing —> change it to SELINUX=disabled

Reboot the machine to impliment the change.
#init 6

# /etc/init.d/oracleasm configure
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 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
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Creating /dev/oracleasm mount point: [ OK ]
Loading module “oracleasm”: [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s