安裝Oracle asm lib包報錯問題

來源:互聯網
上載者:User

今天裝好ASM的RPM包後,運行/etc/init.d/Oracleasm configure時configure最後一步總是失敗:

[root@localhost nick]# /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 <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface [oracle]:grid
Default group to own the driver interface [oracle]: asmadmin
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: [  OK  ]
Loading module “oracleasm”: Unable to load module “oracleasm”
[FAILED]

查看/var/log/messages日誌資訊,給的資訊是:

Sep 11 20:55:55 localhost modprobe: FATAL: Module oracleasm not found.

我的作業系統是:RedHat 5.4 32位


我的核心版本是:2.6.18-164.el5

安裝的asm lib版本(lib包時別人給的)是:

oracleasm-support-2.1.3-1.el5.i386.rpm
oracleasm-2.6.18-92.el5-2.0.5-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm


在網上搜尋說asm lib版本和核心版本不一致會出現這個錯誤。

於是到Oracle官網上去:http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html。

發現已經沒有:oracleasm-support-2.1.3-1.el5.i386.rpm 版本的包提供下載了。

已經被換成 oracleasm-support-2.1.7-1.el5.i386.rpm 了。

oracleasm-2.6.18-92.el5-2.0.5-1.el5.i686.rpm 和 oracleasmlib-2.0.4-1.el5.i386.rpm都可以找得到。


又找到了一個 oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm,這個包與核心版本完全相同。

於是刪除之前的包 安裝下面的包,再配置就成功了:

oracleasm-support-2.1.7-1.el5.i386.rpm


oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm


oracleasmlib-2.0.4-1.el5.i386.rpm


總結:oracleasm-support包,oracleasmlib包可能比核心版本新或者舊,都沒有影響,oracleasm這個包一定要與核心版本一致。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.