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

 

Recent Posts

Start typing and press Enter to search