configure disk devices using Oracle ASMLIB

To manage Oracle database’s storage, Oracle recommends The Automatic Storage Management (ASM) to be used regardless of database’s configuration: single-instance Oracle Database or Oracle Real Application Clusters configurations. It is really Oracle ASM is a storage management’s solution and used an alternative to conventional volume managers, file systems, and raw devices. However Oracle ASM can be used with other storage management in order to facilitate its implementation into pre-existing environments.

The Oracle ASM functionality organized data storage as disk groups. Every disk group is organized as one or more failure groups. Every one is defined over a set of disks. And every disk can be raw physical volumes, a disk partition, a LUN presenting a disk array, or even an LVM or NAS device.

DISK GROUP’s Architecture In Oracle ASM

So in this post we will configure disk devices to use in an Oracle Automatic Storage Management disk group using Oracle Automatic Storage Management library driver.

First of all we have to install or configure the disk devices that you intend to use for the disk group and restart the system.

After that we can configure disk devices to use in an Oracle Automatic Storage Management disk group:

First we will identify the device name for the disks to use:

 /sbin/fdisk -l

 After that we will install Oracle Automatic Storage Management library driver (Oracle ASMLIB) using the                  following  command:

yum install oracleasmlib
yum install oracleasm-support

To configure the Oracle Automatic Storage Management library driver, we issue this command:

/usr/sbin/oracleasm configure -i

To load the Oracle Automatic Storage Management library driver without restarting the system, we issue this command:

/usr/sbin/oracleasm init

To create the disk device for use with the Oracle Automatic Storage Management library driver, we issue this command:

usr/sbin/oracleasm createdisk Vol01 /dev/sdb1
usr/sbin/oracleasm createdisk Vol02 /dev/sdc1

To verify the disk created, we issue this command:

usr/sbin/oracleasm querydisk /dev/sdb1

usr/sbin/oracleasm querydisk /dev/sdc1

Also,we can check with listdisks:

/usr/sbin/oracleasm listdisks

Hela Khazri

Oracle Professional Certified Administrator (OCP 12c ) with 8 years of experience as Senior Oracle Database Administrator and Project Manager using scrum master methodology. A proven ability to maintain the high availability, to monitor the database performance and the security of databases - Having good analytical skills and detail-oriented to solve database issues and to assist the day-to-day support (L2 & L3);

Leave a Reply

Do NOT follow this link or you will be banned from the site!