Oracle ASMLib Availability and Support
Environment
- Red Hat Enterprise Linux 9 ↗
- Red Hat Enterprise Linux 8 ↗
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
Issue
- Oracle ASM (Automated Storage Management) is a data volume manager for Oracle databases. ASMLib is an optional utility that can be used on Linux systems to manage Oracle ASM devices. ASM assists users in disk management by keeping track of storage devices dedicated to Oracle databases and allocating space on those devices according to the requests from Oracle database instances.
- I have tried installing Oracle ASM using the RPMs downloaded from the Oracle site. However, when attempting to install them, I get this error:
[root@host tmp]# rpm -ivh 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
error: Failed dependencies:
oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el6.x86_64
Resolution
Overview
ASMLib consists of the following components:
- An open source (GPL) kernel module package: kmod-oracleasm
- An open source (GPL) utilities package: oracleasm-support
- A closed source (proprietary) library package: oracleasmlib
ASM features and functionality are available without ASMLib. The use of ASMLib does not affect database performance.
The ASMLib kernel module package is provided as a convenience to Red Hat customers via the Red Hat Network Customer Portal. Red Hat Global Support Services (specifically our storage support group) will field ASMLib related issues and use commercially reasonable effort to support the ASMLib kernel module, until such an effort requires knowledge of or modifications to Oracle's proprietary dependent component(s).
Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 6 customers who use ASMLib can obtain the other two components (the ASMLib utilities package and the proprietary library package) at the locations (subject to change) described in the steps below.
Installing and Configuring ASMLib:
To obtain, install, and configure ASMLib:
-
Enable the Red Hat Enterprise Linux 6 Server repository on Red Hat Network Customer Portal
-
Download the ASMLib utilities package (oracleasm-support) and ASMLib library package (oracleasmlib) from the following location:
http://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel6-1940776.html -
Install the ASMLib kernel module package as root using the following command:
# yum install kmod-oracleasm
-
Install the ASMLib library package obtained from step 2 as root using the following command, with the downloaded package:
# yum localinstall oracleasmlib-<version>.x86_64.rpm # Where <version> is the revision downloaded in the previous step
-
Install the ASMLib utilities package obtained from step 2 as root using the following command, with the downloaded package:
# yum localinstall oracleasm-support-<version>.x86_64.rpm
All three required ASMLib components should now be installed on your system.
-
Configure ASMLib using the following command:
# oracleasm init
- For more detailed steps on configuring ASMLib, refer to the ASMLib documentation:
https://docs.oracle.com/en/
Support for ASMLib
The ASMLib kernel module package is provided as a convenience to Red Hat customers via the Red Hat Network Customer Portal. Red Hat Global Support Services will respond to ASMLib related issues and use commercially reasonable efforts to support the ASMLib kernel module until such an effort requires knowledge of or modifications to Oracle's proprietary dependent component(s).
Since the ASMLib kernel module package is now updated with each kernel release, please update the relevant kmod-oracleasm
package with each kernel update.
Additionally, updates may be provided for the kmod-oracleasm package independent of a kernel update. You may find the latest kmod-oracleasm
packages in the base RHEL channel.
Oracle will provide support for the other two required ASMLib components (oracleasm-support and oracleasmlib) on Red Hat Enterprise Linux 6. Customers can obtain these two ASMLib components at the location (subject to change) described in the steps above.
Alternatives to ASMLib
Please note that Red Hat is continuing to develop fully open source alternatives to ASMLib. Red Hat has provided a reference architecture for Oracle RAC clusters using upstream-accepted technologies such as dm-multipath and udev. This reference architecture is available at: https://access.redhat.com/knowledge/articles/216093.
Red Hat Enterprise Linux 7
The ASMLib kernel module (kmod-oracleasm) is available with Red Hat Enterprise Linux. Red Hat Enterprise Linux 7 customers who use ASMLib can obtain the other two components (the ASMLib utilities package and the proprietary library package) at the locations (subject to change) described in the steps below.
Installing and Configuring ASMLib:
To obtain, install, and configure ASMLib:
-
Enable the Red Hat Enterprise Linux 7 Server repository on Red Hat Network Customer Portal
-
Download the ASMLib utilities package (oracleasm-support) and ASMLib library package (oracleasmlib) from the following location:
https://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel7-2773795.html
-
Install the ASMLib kernel module package as root using the following command:
# yum install kmod-oracleasm
-
Install the ASMLib library package obtained from step 2 as root using the following command, with the downloaded package:
# yum localinstall oracleasmlib-<version>.x86_64.rpm # Where <version> is the revision downloaded in the previous step
-
Install the ASMLib utilities package obtained from step 2 as root using the following command, with the downloaded package:
# yum localinstall oracleasm-support-<version>.x86_64.rpm
All three required ASMLib components should now be installed on your system.
-
Configure ASMLib using the following command:
# oracleasm init # oracleasm configure -e -i # systemctl start oracleasm
For more detailed steps on configuring ASMLib, refer to the ASMLib documentation:
https://docs.oracle.com/en/
Support for ASMLib
The ASMLib kernel module (kmod-oracleasm) is available with Red Hat Enterprise Linux. Red Hat Global Support Services will respond to ASMLib related issues and use commercially reasonable efforts to support the ASMLib kernel module until such an effort requires knowledge of or modifications to Oracle's proprietary dependent component(s).
Since the ASMLib kernel module package is now updated with each kernel release, please update the relevant kmod-oracleasm package with each kernel update.
Oracle will provide support for the other two required ASMLib components (oracleasm-support and oracleasmlib) on Red Hat Enterprise Linux 7.
Customers can obtain these two ASMLib components at the location (subject to change) described in the steps above.
When using ASMLib, you should make DIF/DIX( https://access.redhat.com/solutions/41548) to be disabled. Red Hat does not support for using ASMLib with enabled DIF/DIX.
Additional Information:
-
Guide the oracledata official documentation to configure the oracleasm.
especially for the "Disk Scan Ordering" item. Please see the following reference
for more detailed configuration instruction:
http://docs.oracle.com/cd/E11882_01/install.112/e41961/storage.htm#CWLIN301 -
SELinux may prevent oracleasm.service (systemd) from starting during the system boot. Please see section#2.10 Oracle ASM Fails to Initialize with SELinux in Enforcing Mode in the following link for more detailed instructions on how to workaround the issue:
https://docs.oracle.com/cd/E52668_01/E53499/E53499.pdfHint: The oracleasm script fails if SELinux is in Enforcing mode.
The suggested workaround is to disable the SELInux policy module for Oracle
ASM before running oracleasm:# semodule -d oracleasm # semodule -l | grep oracleasm oracleasm 1.0.0 Disabled
-
Secureboot
With UEFI secure boot enabled system, oracleasm kernel module can not be loaded,
there are two workarounds for this problem:- disable secure boot in the BIOS and reboot, and then load the kmod-oracleasm module in.
-
sign oracleasm kernel module after install kmod-oracleasm with the vendor's own secureboot keys.
Please refer to the Red Hat Enterprise 7 System Administration Guide below for how to sign a third party module for second workaround method above:
Important Note:
When using the 'oracleasm deletedisk' command, please be sure that using this command is the intention and that the correct device is used.
In RHEL 7, using this command will delete the data in the device without warning, even when the device is active.
Also, for questions in regards to support of kmod-oracleasm within RHEL8, please see Will the kmod-orcleasm packages be shipped with RHEL 8?.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
39 Comments
Good news, can we also build ocfs2 modules, and include into the supplementary repo ?
Hi Chris, at this time Red Hat has no plans to build and provide any ocfs2 modules. Hope this helps!
Will the kernel mod be rebuilt for all new kernel packages, or just point releases? (or something in between?)
G Keegan - the kmod will be rebuilt at every minor release (6.5, 6.6, etc) as necessary.
This is awesome, great work!!!
Just to be clear - Because I have many customers asking, kmod-oracleasm is not available for RHEL 6 prior to the 6.4 release. Right?
Kimberly, correct! This only applies for RHEL 6.4 and newer (per the Environment section above). RHEL 6.3 and older did not provide this. Thanks!
RHEL 6.5 is out, and the kmod-oracleasm-2.0.6.rh1-2.el6 RPM has a dependency on 6.4's specific kernel version (2.6.32-358). Unsurprisingly, this breaks things like "yum upgrade". Can we expect an updated package to be provided? I opened case #01006748 before landing here: Red Hat's representative told me this is a third-party package and advised me to open a case with Oracle. Really? This is not a package malfunction, it's a dependency issue. Isn't the RPM built by Red Hat?
It's of course possible to hack the RPM's dependency directly, but then what's the point of using a supported system if I have to kludge my local repository?
HI Flavio,
Have you solved issue. I have the samee problem on RHEL 6.5
rpm -i kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm
error: Failed dependencies:
kernel < 2.6.32-359.el6 is needed by kmod-oracleasm-2.0.6.rh1-2.el6.x86_64
Thanks in advance
Best regards
Same issue as Flavio, attempting a fresh Kickstart of 6.5, with kmod-oracleasm included. The Kickstart stops because of the dependency upon an old kernel.
Yikes! Sorry all, this was an oversight on our part. We are working to get this corrected and included in RHEL 6.5.z and adding future tracking for 6.6, 6.7, 6.8 so this won't happen again.
Please refer to Bugzilla 1056772 to watch the status of this to land in RHEL 6.5.z.
Worked for me today with rhel 6.5. This was TREMENDOUSLY better than the method oRACLE recommended (they had no method). My oracle guru was very happy.
Any plan to have this on rhel7?
Any ETA for RHEL 6.6? We had to downgrade the kernel to 6.5's version, for the time being...
I'm curious of a corresponding article for the remaining systems I have under Red Hat 5.11 (we are migrating them soon to rhel 6.latest, or rhel7.latest when rhel7 is approved for us)
I finally found the answer after searching around. I installed the required packages but fails when instantiating disk.
oracleasm init # This fixed it!
Thanks.
please give direct link to download kmode driver
The correct link to "Oracle ASMLib Downloads for Red Hat Enterprise Linux 7" should be: http://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel7-2773795.html
Where you will find both files for download:
oracleasmlib-2.0.12-1.el7.x86_64.rpm oracleasm-support-2.1.8-3.el7.x86_64.rpm
Can some one help finding the kmod-oracleasm package for RHEL 4?????
kmod-oracleasm package is not shipped with RHEL4, the only exception was for RHEL5.11 and that too with ELS subscription released with package name oracleasm-rhel5u11-2.0.5-2.el5_11
great!!!
Any updates for 6.10?
rpm -q --requires kmod-oracleasm kernel >= 2.6.32-573.el6 kernel < 2.6.32-574.el6
6.10 has: 2.6.32-754
Causing a bit of trouble.
submitted to bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1744786
Any ETA for ASMLib support for RHEL 8.1?
Do we have any ASMLib for RHEL8?
Oracle has not released ASMLib for RHEL8 and is still unclear when they will do. But the ASMLib for RHEL7 can be installed on RHEL8 and works fine. I discovered though that you need to use OEL 8.2 / RHEL 8.2 for this to work. You can read more on my post at community.oracle.com - "ASMLib support for Linux 8 ( OEL8, RHEL8 ) ?" https://community.oracle.com/thread/4335808 , an alternative is to not use ASMLib and implement UDEV on RHEL8. You can also choose to use the new Oracle ASM Filter Drive. . https://dbamarco.wordpress.com/2016/06/13/using-asm-filter-driver-right-from-the-beginning/ , see also MOS note How to Install ASM Filter Driver in a Linux Environment Without Having Previously Installed ASMLIB (Doc ID 2060259.1)
I have just found out that Oracle released ASMLib for Oracle Linux 8 (OEL8), you can try to use it with RHEL8 to see if works, but Oracle shall release ASMLib for RHEL8 soon I hope. https://www.oracle.com/linux/downloads/linux-asmlib-v8-downloads.html https://www.oracle.com/linux/downloads/linux-asmlib-rhel7-downloads.html
Many Thanks for the update, I have tried installing the the ASMLib it failed error: Failed dependencies: oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.17-1.el8.x86_64 Installed with --nodedeps ,but still have issues with loading the asm module oracleasm init Loading module "oracleasm": failed Unable to load module "oracleasm" Mounting ASMlib driver filesystem: failed Unable to mount ASMlib driver filesystem I have tried the above links already, not working RHEL8.2
You might also try the ASMLib for RHEL7 on your RHEL8.2. ///
https://www.oracle.com/linux/downloads/linux-asmlib-rhel7-downloads.html /// I was able to make this to work on OEL8 but I had to install OEL8 using the OEL8.2 iso, if I used a previous OEL8 iso and tried to update to OEL8.2 then still it was missing something and it did not work. /// I posted the full case in community.oracle.com here /// "ASMLib support for Linux 8 ( OEL8, RHEL8 ) ?" https://community.oracle.com/thread/4335808 ///
We tried with RHEL8.2 , it's not working , we will try to downgrade the OS to RHEL8 & try , will update once we have tested again
I see the same behavior when attemping to install oracleasmlib-2.0.17-1.el8.x86_64 on RHEL8.2 (Failed dependencies: oracleasm >= 1.0.4). And with --nodeps, 'oracleasm init' fails with oracleasm module load failing.
Any news on how to get ASMLib working on RHEL 8.2? I've installed the latest el8 oracleasmlib and oracleasm-support rpms but still get the usual Loading module "oracleasm": failed etc
Any ASMLib support for RHEL 8.2 yet please? Upgrading from RHEl 5/Oracle 12 to RHEL 8/Oracle19 and stuck configuring ASM :-(
see the my discussion in the oracle community (https://community.oracle.com/mosc/discussion/4335808/asmlib-support-for-linux-8-oel8-rhel8)
Oracle released ASMLib for Oracle Linux 8 (OEL8)
Oracle ASMLib Downloads for Oracle Linux 8 (https://www.oracle.com/linux/downloads/linux-asmlib-v8-downloads.html)
The oracleasm-support package can be downloaded from the Unbreakable Linux Network (ULN) if you have an active support subscription, or from https://public-yum.oracle.com if you do not.
Note: All ASMLib installations require the oracleasmlib and oracleasm-support packages appropriate for their machine.
The oracleasm-support package can be downloaded from the Unbreakable Linux Network (ULN) if you have an active support subscription, or from https://public-yum.oracle.com if you do not.
The oracleasm kernel driver is built into the Unbreakable Enterprise Kernel for Oracle Linux 8 and does not need to be installed manually.
Thanks Marcelo, I've tried the v7 and v8 packages on my RHEL 8.2 installation. Both install but fail to initialise because, I assume, the associated kmod-oracleasm package is missing that matches the kernel. It looks as though I have 2 choices : wait for a kmod package/solution for RHEL 8.x or start again and install OEL 8 with the functionality built into the unbreakable kernel. Bit annoying as oracle certifies the 19c/rhel 8configuration!
Dear Red Hat,
Kindly request an update for this to include RHEL 8.
Thank you,
RJ
Please see the following knowledge article pertaining to RHEL-8. The kmod-oracleasm is available in 8.3 and onward. https://access.redhat.com/solutions/5396481
Is there a specific reason why the notes for rhel9 say that kmod-redhat-oracleasm will no longer be included?
I asked this question in MOS - My Oracle Support.
SR 3-33789746761 : Oracle Linux 9 - ASMLib / oracleasm
Question:
When ASMLib / oracleasm will be available for Oracle Linux 9 / RedHat Linux 9 ???
Does Oracle have an ETA ???
Oracle Support Reply:
"There is not official date yet for OL9/RHEL9.
Support is planned by the end of this year.
But until then no more info is available."
MOS - My Oracle Support - Articles - support.oracle.com
Oracle ASMLib Software Update and Support Policy ( Doc ID 1089399.1 )
Oracle Linux: How to Find ASMLib / Oracleasm RPMs ( Doc ID 559055.1 )