LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > JockVSJock
User Name
Password

Notices


Rate this Entry

New way to install OracleASM packages from Oracle for RHEL systems

Posted 04-13-2016 at 11:00 AM by JockVSJock

Recently a new kernel has come down for a number of RHEL5 systems where I run Oracle on. Also installed is OracleASM (Automated Storage Management), which is a data volume manager for Oracle databases

In the past, when upgrading a kernel, had to also upgrade OracleASM version to match the newer kernel. I would just go to the Oracle website, browser for the OracleASM version that matches the new kernel, download it, install and test.

Now Oracle has changed the method of geting access to these packages. You are unable to download from their website directly, now you'll have to add a repository.

They have a number of steps on their website (this is based off of RHEL5),

http://www.oracle.com/technetwork/se...l5-084877.html

However I've added an additional steps and clarifications to help others out.

First, add the repository to /etc/yum.repos.d/oracleasm.repo with the following:

Code:
[oracleasm]
name=Oracle ASMLib Kernel Drivers for Red Hat Enterprise Linux Server 5
baseurl=http://yum.oracle.com/repo/OracleASM/RHEL5/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
Also add the RPM-GPG-Key to /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle from the following url:

http://yum.oracle.com/RPM-GPG-KEY-oracle-el5

Test your yum repos are correct with the following commands:

Code:
yum clean all ; yum repolist
To confirm the rpm packages for Oracleasm, can run the following command:

Code:
rpm qa | grep -i oracleasm

oracleasmlib-2.0.4-1.el5
oracleasm-2.6.18-4908.el5-2.0.5-1.el5
oracleasm-support-2.1.8-1.el5

Oracle recommends running the following to upgrade the oracleasm package

Code:
yum install oracleasm-`uname -r`
However if you haven't rebooted into the new kernel, they maybe a conflicting mismatch between new kernel and older version of Oracle ASM. In that case this is what I ran from the CLI, to install the correct version of OracleASM

Code:
yum install oracleasm-2.6.18-408.el5
Run rpm qa again to confirm the correct version of Oracleasm is installed, along with the other two packages needed. If so, reboot and test to confirm that all is correct.
Posted in RHEL
Views 6838 Comments 0
« Prev     Main     Next »

  



All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration