Friday, May 9, 2014

How to install ASMLib Package for Oracle 12c

##################################################################
How to install oracleasm (ASMLib) Package for Oracle Database 12c
##################################################################

======================================
Step 1 - Check Kernerl Driver Version
======================================
[root@dbtrmrk tmp]# uname -rm
2.6.39-400.209.1.el6uek.x86_64 x86_64

Note: It is Oracle Unbreakable Enterprise Kernal 2.6 (Linux 6) 64-bit OS



======================================
Step 2 - Download Oralce Public Yum
======================================
[root@dbtrmrk tmp]# cd /etc/yum.repos.d/
[root@dbtrmrk tmp]# wget https://public-yum.oracle.com/public-yum-ol6.repo

[root@dbtrmrk yum.repos.d]# ll
-rw-r--r-- 1 root root 1953 May  3 03:54 public-yum-ol6.repo


======================================
Step 3 - Enable repo in Public Yum ol6
======================================
[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1


[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1

[ol6_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1



======================================
Step 4 - Install kmod-oracleasm
======================================
[root@dbtrmrk yum.repos.d]# yum install kmod-oracleasm
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kmod-oracleasm.x86_64 0:2.0.6.rh1-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
 Package                          Arch                     Version                           Repository                    Size
================================================================================================================================
Installing:
 kmod-oracleasm                   x86_64                   2.0.6.rh1-2.el6                   ol6_latest                    34 k

Transaction Summary
================================================================================================================================
Install       1 Package(s)

Total download size: 34 k
Installed size: 115 k
Is this ok [y/N]: y
Downloading Packages:
kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm                                                                |  34 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : kmod-oracleasm-2.0.6.rh1-2.el6.x86_64                                                                        1/1
  Verifying  : kmod-oracleasm-2.0.6.rh1-2.el6.x86_64                                                                        1/1

Installed:
  kmod-oracleasm.x86_64 0:2.0.6.rh1-2.el6

Complete!




======================================
Step 5 - Install oracleasm-support
======================================
[root@dbtrmrk yum.repos.d]# yum install oracleasm-support
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Package oracleasm-support-2.1.8-1.el6.x86_64 already installed and latest version
Nothing to do





======================================
Step 6 - Install oracleasmlib
======================================
[root@dbtrmrk yum.repos.d]# yum install oracleasmlib
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package oracleasmlib available.
Error: Nothing to do


Note: Somehow the public yum repo could not find this package, so I downloaded it manually.
Note: I put the .rpm in /tmp and installed manually:

[root@dbtrmrk yum.repos.d]# cd /tmp
[root@dbtrmrk tmp]# ll
-rw-r--r--  1 oracle oinstall 13300 May  9  2014 oracleasmlib-2.0.4-1.el6.x86_64.rpm

[root@dbtrmrk tmp]# rpm -Uvh oracleasmlib-2.0.4-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:oracleasmlib           ########################################### [100%]


[root@dbtrmrk yum.repos.d]# rpm -q -i oracleasmlib
Name        : oracleasmlib                 Relocations: (not relocatable)
Version     : 2.0.4                             Vendor: Oracle Corporation
Release     : 1.el6                         Build Date: Mon 26 Mar 2012 04:22:44 PM EDT
Install Date: Sat 03 May 2014 04:26:27 AM EDT      Build Host: ca-build44.us.oracle.com
Group       : System Environment/Kernel     Source RPM: oracleasmlib-2.0.4-1.el6.src.rpm
Size        : 27192                            License: Oracle Corporation
Signature   : RSA/8, Mon 26 Mar 2012 04:22:51 PM EDT, Key ID 72f97b74ec551f03
Packager    : Joel Becker <joel.becker@oracle.com>
URL         : http://oss.oracle.com/
Summary     : The Oracle Automatic Storage Management library userspace code.
Description :
The Oracle userspace library for Oracle Automatic Storage Management



======================================
Step 7 - Verify oracleasmlib
======================================
[root@dbtrmrk yum.repos.d]# rpm -qa | grep -i oracleasm
kmod-oracleasm-2.0.6.rh1-2.el6.x86_64
oracleasm-support-2.1.8-1.el6.x86_64
oracleasmlib-2.0.4-1.el6.x86_64




======================================
Step 8 - Configure ASMLib
======================================
[root@dbtrmrk yum.repos.d]# /usr/sbin/oracleasm configure -i
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]: oracle
Default group to own the driver interface [install]: oinstall
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done



======================================
Step 9 - Initialize oracleasm
======================================
[root@dbtrmrk yum.repos.d]# /usr/sbin/oracleasm init




======================================
Step 10 - Verify oracleasm mount point
======================================
[root@dbtrmrk yum.repos.d]# df -h /dev/oracleasm/
Filesystem            Size  Used Avail Use% Mounted on
oracleasmfs              0     0     0   -  /dev/oracleasm



Enjoy.....Abid Malik

No comments:

Post a Comment