Oracle 11gR2 2-node RAC on VMware Workstation 8 – Part V

Time Required: 20 minutes

Class Materials:

  • oracleasm-support-2.1.7-1.el5.x86_64.rpm
  • oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm
  • oracleasmlib-2.0.4-1.el5.x86_64.rpm

Next we will install the ASMLib drivers that simplify management of ASM on Linux.

ASMLib is an interface between block devices presented to Linux, and the Oracle ASM software that executes as the Oracle user.

Among other tasks, ASMLib handles device permissions, marks devices for use with ASM and can scan for new devices being added. ASMLib ensures that device permissions and names remain constant across reboots.

Note: Since we are installing against RHEL 5.5, the use of ASMLib remains free. As of RHEL 6 Oracle has decided to demand payment for ASMLib, and will only distribute it to those users who pay Oracle for Linux support.

The ASMLib RPMs can currently be downloaded from Oracle at the following site:

ASMLib RPMs for Oracle 11gR2 on RHEL 5

The RPMs required will depend on the exact release of Linux being used. We can determine this using the uname -r command as follows:

[root@localhost ~]# uname -r
2.6.18-194.el5

 
Since we are using RHEL 5.5 64-bit release 2.6.18-194.el5 we can find the RPMs relevant to our OS here:

Despite what the list claims, we only actually need the following RPMs:

  • oracleasm-support-2.1.7-1.el5.x86_64.rpm
  • oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm
  • oracleasmlib-2.0.4-1.el5.x86_64.rpm

Download the RPMs and stage them on the VM. Next login as root and load the RPM files.

The following command loads all RPMs in a single command:

rpm -ivh oracleasm-support-2.1.7-1.el5.x86_64.rpm oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm

[root@localhost asmlib]# rpm -ivh oracleasm-support-2.1.7-1.el5.x86_64.rpm oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm
warning: oracleasm-support-2.1.7-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:oracleasm-support      ########################################### [ 33%]
   2:oracleasm-2.6.18-194.el########################################### [ 67%]
   3:oracleasmlib           ########################################### [100%]

 
Now we need to configure the ASMLib driver using the configure option. We will set ASMLib to be owned by oracle and the dba group, and to load on boot:

[root@localhost asmlib]# /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  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]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]

 
We can now start the ASMLib driver:

[root@localhost asmlib]# /etc/init.d/oracleasm start
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]

 
Note we don’t want to create any ASM disks yet.

Article Quick Navigation
Previous Step Main Index Next Step
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s