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:
-
Enter the following command to determine the kernel version and architecture of the system:
# uname -rm
-
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.htmlSee Also:
My Oracle Support note 1089399.1 for information about Oracle ASMLIB support with Red Hat distributions:
-
Switch to the
rootuser:$ su -
-
Depending on your operating system, you must install the
oracleasmlibandoracleasm-supportpackages 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
yumcommands to install theoracleasmlibandoracleasm-supportpackages# yum install -y oracleasm # yum install -y oracleasm-support # yum install oracleasmlibMethod 2: Alternatively, install the following packages in sequence, where
versionis the version of the Oracle Automatic Storage Management library driver,archis the system architecture, andkernelis 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 -
Enter the following command to run the
oracleasminitialization script with theconfigureoption:# /usr/sbin/oracleasm configure -i
Note:
The oracleasm command in
/usr/sbinis the command you should use. The/etc/init.dpath is not deprecated, but theoracleasmbinary in that path is now used typically for internal commands. -
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
yto start the Oracle Automatic Storage Management library driver when the system starts.Scan for Oracle ASM disks on boot (y/n)
Enter
yto scan for Oracle ASM disks when the system starts.The script completes the following tasks:
-
Creates the
/etc/sysconfig/oracleasmconfiguration file -
Creates the
/dev/oracleasmmount 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.
-
-
Enter the following command to load the
oracleasmkernel module:# /usr/sbin/oracleasm init