ASMLib 2.0 Configuration on SLES 11

Normally for installing the ASMLib on Linux, we need to install two set of RPM files.

Library and Tools
Drivers for kernel

Till SLES 10, these RPM’s were available for download on the OTN. But with SLES 11 release, only Library and Tools are available for download. Kernel drivers are missing.

Now ASMLib driver is part of SLES11 distribution. So one can install them from DVD or a local repository.

Verify the RPM installation

# rpm -qa  | grep oracleasm

oracleasmlib-2.0.4-1.SLE11
oracleasm-kmp-xen-2.0.5_2.6.32.12_0.7-7.8.70
oracleasm-support-2.1.3-1.SLE11
oracleasm-2.0.5-7.8.70
oracleasm-kmp-default-2.0.5_2.6.32.12_0.7-7.8.70

Check if the oracleasm module is loaded

# lsmod  | grep asm
oracleasm              84136  1

# modinfo oracleasm
filename:       /lib/modules/2.6.18-128.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
description:    Kernel driver backing the Generic Linux ASM Library.
author:         Joel Becker <joel.becker@oracle.com>
version:        2.0.5
license:        GPL
srcversion:     6D09F6DEC4890E127C660DD
depends:
vermagic:       2.6.18-128.el5 SMP mod_unload gcc-4.1

Once these RPM’s are installed, we can proceed with steps of ASMLib 2.0 configuration

# oracleasm configure -i
# oracleasm createdisk DISK1 /dev/sdb1 (as many disks we need to create)
# oracleasm listdisks

Start the oracleasm

# oracleasm init

We can also use /etc/init.d/oracleasm

# /etc/init.d/oracleasm
Usage: /etc/init.d/oracleasm {start|stop|restart|enable|disable|configure|createdisk|deletedisk|querydisk|listdisks|scandisks|status}

Create diskgroup using the disks created using oracleasm createdisk

SQL> create diskgroup DG1 external redundancy disk ‘ORCL:DISK1’
/

Advertisements
This entry was posted in Oracle Automatic Storage Management and tagged . Bookmark the permalink.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s