您的位置:首页 > 数据库 > Oracle

Redhat 6 上使用ASM(通过修改内核实现)

2015-07-21 08:22 411 查看
随着oracle linux的出现,oracle要大力推广自己的操作系统,所以对Redhat等其他的linux的支持力度有所下降。 在Redhat 6 上装ASM就是一个例子。

下面是Oracle对在Red Hat Linux 6上使用ASMLib的说明:

Oracle ASMLib Downloads for Red Hat Enterprise Linux Server 6
Note: All ASMLib installations require that the 'kmod-oracleasm','oracleasmlib' and 'oracleasm-support' packages be installed on the system. The 'oracleasmlib' and 'oracleasm-support' packages are available for download at the locations listed below.
The kernel driver package 'kmod-oracleasm' is available directly from Red Hat, and can be installed from the "RHEL Server Supplementary (v. 6 64-bit x86_64)" channel on Red Hat Network (RHN).  Use the ASMLib kernel driver that corresponds to the version of the Red Hat Enterprise Linux kernel you're running.
To identify which version of the ASMLib kernel driver you need, view the description field of the 'kmod-oracleasm' package in the "RHEL Server Supplementary (v. 6 64-bit x86_64)" channel on RHN.


使用ASMLib需要3个包:kmod-oracleasm oracleasmlib oracleasm-support,后两个包都可以直接在网站上下载到,关键是第一个ASMLib内核驱动包需要到RHN上更新,且应该匹配操作系统的内核版本。

以上文字来源于:http://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel6-1940776.html

但是在Redhat的光盘里是找不到kmod-oracleasm。

相对于Redhat,再看ASM对oracle linux的支持如何:

Oracle ASMLib Downloads for Oracle Linux 6

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 http://public-yum.oracle.com if you do not.

The oracleasm kernel driver is built into the Unbreakable Enterprise Kernel for Oracle Linux 6 and does not need to be installed manually.

The oracleasm kernel driver for the 64-bit (x86_64) Red Hat Compatible Kernel for Oracle Linux 6 can be installed manually from ULN or http://public-yum.oracle.com using the yum tool:
# yum install kmod-oracleasm

This kernel driver is not version-specific and does not need to be upgraded when the kernel is upgraded.


如果使用的是Oracle Linux的uek内核,oracleasm已经被编译到了内核中,如果使用的是和Red Hat兼容的内核,那么需要手动安装kmod-oracleasm包。

以上文字来源于:http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.html

所以安装ASM对linux的内核要求比较高,但是Redhat6的内核不符合要求,那怎么办,方法可以通过修改内核来实现安装ASM,或者在线更新kmod-oracleasm(需要正版linux注册),后者明显比较困难,那么本文通过手动修改内核来实现。

测试环境:Redhat6.5

安装包下载地址:http://download.csdn.net/detail/captain_kunkka/8918021

安装顺序:

kernel

安装后重启(更改内核)

oracleasm-support

kmod

oracleasmlib

亲测这个过程可用,测试日志就不贴出来了,有什么问题可以共同交流
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle-rac asm redhat-6