Installing and Configuring Oracle ASMLIB Software

Review this information to install and configure the Oracle Automatic Storage Management library driver software manually.

Oracle ASMLIB is included with the Oracle Linux packages, and with SUSE Linux Enterprise Server. If you are a member of the Unbreakable Linux Network, then you can install the Oracle ASMLIB RPMs by subscribing to the Oracle Linux channel, and using yum to retrieve the most current package for your system and kernel. For additional information, see the following URL:

http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html

To install and configure the Oracle Automatic Storage Management library driver software manually, perform the following steps:

  1. Enter the following command to determine the kernel version and architecture of the system:

    # uname -rm
    
  2. Depending on your operating system version, download the required Oracle Automatic Storage Management library driver packages and driver:

    http://www.oracle.com/technetwork/server-storage/linux/asmlib/index-101839.html

    See Also:

    My Oracle Support note 1089399.1 for information about Oracle ASMLIB support with Red Hat distributions:

    https://support.oracle.com/rs?type=doc&id=1089399.1

  3. Switch to the root user:

    $ su -
    
  4. Depending on your operating system, you must install the oracleasmlib and oracleasm-support packages for all Oracle ASMLIB installations.

    Method 1: After you have downloaded the Oracle Automatic Storage Management library driver packages as described in Step 2, run the following yum commands to install the oracleasmlib and oracleasm-support packages

    # yum install -y oracleasm
    # yum install -y oracleasm-support
    # yum install oracleasmlib

    Method 2: Alternatively, install the following packages in sequence, where version is the version of the Oracle Automatic Storage Management library driver, arch is the system architecture, and kernel is the version of the kernel that you are using:

    oracleasm-support-version.arch.rpm
    oracleasm-kernel-version.arch.rpm
    oracleasmlib-version.arch.rpm

    Enter a command similar to the following to install the packages:

    # rpm -ivh oracleasm-support-version.arch.rpm \
               oracleasm-kernel-version.arch.rpm \
               oracleasmlib-version.arch.rpm

    For example, if you are using the Red Hat Enterprise Linux 5 AS kernel on an AMD64 system, then enter a command similar to the following:

    # rpm -ivh oracleasm-support-2.1.3-1.el5.x86_64.rpm \
               oracleasm-2.6.18-194.26.1.el5xen-2.0.5-1.el5.x86_64.rpm \
               oracleasmlib-2.0.4-1.el5.x86_64.rpm
    
  5. Enter the following command to run the oracleasm initialization script with the configure option:

    # /usr/sbin/oracleasm configure -i
    

    Note:

    The oracleasm command in /usr/sbin is the command you should use. The /etc/init.d path is not deprecated, but the oracleasm binary in that path is now used typically for internal commands.

  6. Enter the following information in response to the prompts that the script displays:

    Prompt Suggested Response

    Default user to own the driver interface:

    Standard groups and users configuration: Specify the Oracle software owner user (for example, oracle)

    Job role separation groups and users configuration: Specify the Grid Infrastructure software owner (for example, grid)

    Default group to own the driver interface:

    Standard groups and users configuration: Specify the OSDBA group for the database (for example, dba).

    Job role separation groups and users configuration: Specify the OSASM group for storage administration (for example, asmadmin).

    Start Oracle ASM Library driver on boot (y/n):

    Enter y to start the Oracle Automatic Storage Management library driver when the system starts.

    Scan for Oracle ASM disks on boot (y/n)

    Enter y to scan for Oracle ASM disks when the system starts.

    The script completes the following tasks:

    • Creates the /etc/sysconfig/oracleasm configuration file

    • Creates the /dev/oracleasm mount point

    • Mounts the ASMLIB driver file system

      Note:

      The Oracle ASMLIB file system is not a regular file system. It is used only by the Oracle ASM library to communicate with the Oracle ASMLIB.

  7. Enter the following command to load the oracleasm kernel module:

    # /usr/sbin/oracleasm init