Recent events enabled Red Hat and Oracle to work together, and Oracle is now officially supporting ASMlib on Red Hat Enterprise Linux 6.4 and newer.

The knowledge base article which was updated in early May indicates that now we have ‘kmod-oracleasm’,'oracleasmlib’ and ‘oracleasm-support’ packages that need to be installed on the system:

https://access.redhat.com/site/solutions/315643

kmod-oracleasm is available from the Red Hat Network (RHN) and can be installed from the RHEL Server Supplementary (v. 6 64-bit x86_64) channel. oracleasmlib and oracleasm-support packages are available for download at this location.

Here’s what the installation steps look like in RHEL 6.4. It does not look any different than before except we are playing with a new player kmod-oracleasm from Red Hat instead of Oracle:

[root@rh64a ~]# ls -l *oracleasm*
-rw-r--r-- 1 root root 35044 Aug 22 20:41 kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm
-rw-r--r-- 1 root root 13300 Aug 22 20:45 oracleasmlib-2.0.4-1.el6.x86_64.rpm
-rw-r--r-- 1 root root 74984 Aug 22 20:56 oracleasm-support-2.1.8-1.el6.x86_64.rpm

Installation is done with a simple rpm -ihv command on each of the RPMs that we downloaded. There does not seem to be any dependencies between any of the RPMs. In this example, we will install the kmod-oracleasm RPM, followed by oracleasmlib, followed by oracle-support RPMs.

[root@rh64a ~]# rpm -ihv kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm
warning: kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:kmod-oracleasm         ########################################### [100%]

[root@rh64a ~]# rpm -ihv oracleasmlib-2.0.4-1.el6.x86_64.rpm
warning: oracleasmlib-2.0.4-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing...                ########################################### [100%]
   1:oracleasmlib           ########################################### [100%]

[root@rh64a ~]# rpm -ihv oracleasm-support-2.1.8-1.el6.x86_64.rpm
warning: oracleasm-support-2.1.8-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing...                ########################################### [100%]
   1:oracleasm-support      ########################################### [100%]

Next we will configure oracleasm. To configure oracleasm interactively, we have to prefix the command with the service syntax first:

[root@rh64a ~]# service 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 []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [  OK  ]
Scanning the system for Oracle ASMLib disks: [  OK  ]

[root@rh64a ~]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"

Posted by Charles Kim, Oracle ACE Director and VMware vExpert


Comments are closed