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:
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:
To confirm the rpm packages for Oracleasm, can run the following command:
Oracle recommends running the following to upgrade the oracleasm package
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
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.
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
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
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`
Code:
yum install oracleasm-2.6.18-408.el5