Oracle Database - Prepare Storage for Oracle Automatic Storage Management on Linux

Card Puncher Data Processing


Prepare Storage for Oracle Automatic Storage Management


Install the Linux ASMLIB RPMs to simplify storage administration. ASMLIB provides persistent paths and permissions for storage devices used with Oracle ASM, eliminating the need for updating udev or devlabel files with storage device paths and permissions.

ASMLib 2.0 is delivered as a set of three Linux packages:

  • oracleasmlib-2.0 - the Oracle ASM libraries
  • oracleasm-support-2.0 - utilities needed to administer ASMLib
  • oracleasm - a kernel module for the Oracle ASM library

Each Linux distribution has its own set of ASMLib 2.0 packages, and within each distribution, each kernel version has a corresponding oracleasm package.

If you cannot install the ASMLIB RPMs, or choose to configure your storage devices manually, then review the Chapter 3, “Configuring Storage for Grid Infrastructure for a Cluster and Oracle Real Application Clusters (Oracle RAC)” .

Installing ASMLIB

Automatically with ULN

If you are registered with the Oracle Unbreakable Linux Network (ULN), then you can download and install ASMLIB packages for your system automatically. To install ASMLIB from ULN:

  • Log in as root
  • Run the following command:
up2date -i oracleasm-support oracleasmlib oracleasm-'uname -r'

This command installs the support tools, the library, and the kernel driver for the Linux kernel version running on your system.

Automatically with oracleasm update-driver

oracleasm-support version 2.1.0 and later now have the oracleasm update-driver command. This command will automatically determine the latest driver for a given kernel and install it. Thus, the system administrator no longer has to match version numbers by hand.

The oracleasm update-driver command works both with the Unbreakable Linux Network (ULN) and the Oracle Technology Network (OTN). Systems registered with ULN will use it as the source of new drivers, while other systems will use OTN.

To install the latest driver for the currently running kernel, log in as root and run:

# oracleasm update-driver

This will detect the current kernel, query ULN or OTN for the latest driver, download, and install it. If the latest driver is installed, it won't do anyhting.

To install the latest driver for an installed kernel that is not currently the running one, specify the version on the command line:

# oracleasm update-driver 2.6.18-53.el5

This will query ULN or OTN for the latest driver for kernel 2.6.18-53.el5, installing it if necessary. You can specify more than one version at a time, as long as each kernel is already installed on the system.


Configure ASMLib

Log in as root, and enter the following command:

# oracleasm configure -i

Provide information as prompted for your system. the oracleasm command by default is in the path /usr/sbin. If you enter the command oracleasm configure without the -i flag, then you are shown the current configuration.

See Also: Section, “Installing and Configuring the Oracle ASM Library Driver Software” for additional information about configuration

Mark Oracle ASM Candidate Disk Partitions

For OUI to recognize partitions as Oracle ASM disk candidates, you must log in as root and mark the disk partitions that Oracle ASM can use. To mark a disk for use by Oracle ASM, enter the following command syntax, where ASM_DISK_NAME is the name of the Oracle ASM disk group, and candidate_disk is the name of the disk device that you want to assign to that disk group:

oracleasm createdisk ASM_DISK_NAME candidate_disk

For example:

# oracleasm createdisk data1 /dev/sdf

Documentation / Reference

Discover More
Oracle Database 11gr2 Typical Installation
Oracle Database - Installation 11g Release 2 (11.2) on Linux OEL 5 (X86)

Installation of Oracle Database 11g Release 2 (11.2) on Oracle Enterprise Linux 5. Linux OEL installation login as root RAM: At least 1 GB swap space The following table describes...

Share this page:
Follow us:
Task Runner