1. Install Oracle asmlib
Download the appropriate driver on oracle.com. The version must be the same as that of the operating system kernel.
Currently, only the linux operating system has the asmlib package, and other systems do not. Asmlib simplifies disk management and replaces rawdevices services that we used in linux.
The downloaded driver package name is consistent with the uname-r check result. Be sure !!!
[Root @ db2 ~] # Uname-r
2.6.18-238. el5
Here, I initially downloaded the package 2.6.18-238.12.1.el5, which failed to initialize the configuration after installation. Later, find a oracleasm-2.6.18-238.el5-2.0.5-1.el5 installation package, installation is successful.
[Root @ db2 ~] # Rpm-qa | grep asm
Oracleasm-2.6.18-238.el5-2.0.5-1.el5
Oracleasmlib-2.0.4-1.el5
Oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5
Oracleasm-support-2.1.7-1.el5
Oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5
The asmlib package to be installed is as follows:
Oracleasm-support-version.arch.rpm
Oracleasm-kernel-version.arch.rpm
Oracleasmlib-version. arch. rpm
Ii. Oracle asmlib Configuration
After the software package is installed, you must configure it to make it take effect.
[Root @ db2 ~] # Oracleasm configure
The execution result is as follows:
Processing 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
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 []: dba
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: [OK]
Scanning system for ASM disks: [OK]
This script completes four tasks.
1. The configuration file/etc/sysconfig/oracleasm is created.
2. A mount point/dev/oracleasm is created.
3. Load the oracleasm kernel module
4. Mount the ASM function driver File System