ASMLib Installation

ASMLib Installation

This step is only necessary if you want to use ASMLib to access the ASM disks.

Determine your kernel version using the following command as the root user.

    # uname -r

    2.6.18-92.el5

    #

Download the ASMLib software from the OTN website, making sure you pick the version that matches your distribution, kernel and architecture. For this example I used CentOS 4.3, so the following packages were required.

    Drivers for kernel 2.6.18-92.el5:

    oracleasm-2.6.18-92.el5xen-2.0.5-1.el5.x86_64.rpm

    oracleasm-2.6.18-92.el5debug-2.0.5-1.el5.x86_64.rpm

    oracleasm-2.6.18-92.el5-debuginfo-2.0.5-1.el5.x86_64.rpm

    oracleasm-support-2.1.7-1.el5.x86_64.rpm

Install the packages as the root user.

    # rpm -Uvh oracleasm-2.6.18-92.el5xen-2.0.5-1.el5.x86_64.rpm

               oracleasm-2.6.18-92.el5debug-2.0.5-1.el5.x86_64.rpm

               oracleasm-2.6.18-92.el5-debuginfo-2.0.5-1.el5.x86_64.rpm

               oracleasm-support-2.1.7-1.el5.x86_64.rpm

    Preparing...                ########################################### [100%]

       1:oracleasm-support      ########################################### [ 33%]

       2:oracleasm-2.6.9-34.ELsm########################################### [ 67%]

       3:oracleasmlib           ########################################### [100%]

    #

With the software installed, configure the ASM kernel module.

    # /etc/init.d/oracleasm configure

    Configuring the Oracle ASM library driver.

    This will configure the on-boot properties of the Oracle ASM library

    driver.  The following questions will determine whether the driver is

    loaded on boot and what permissions it will have.  The current values

    will be shown in brackets ('[]').  Hitting <ENTER> without typing an

    answer will keep that current value.  Ctrl-C will abort.

    Default user to own the driver interface []: oracle

    Default group to own the driver interface []: oinstall

    Start Oracle ASM library driver on boot (y/n) [n]: y

    Fix permissions of Oracle ASM disks on boot (y/n) [y]:

    Writing Oracle ASM library driver configuration:           [  OK  ]

    Creating /dev/oracleasm mount point:                       [  OK  ]

    Loading module "oracleasm":                                [  OK  ]

    Mounting ASMlib driver filesystem:                         [  OK  ]

    Scanning system for ASM disks:                             [  OK  ]

    #