由于安装oracleasm包的版本导致的问题:

[root@rac1 test]# /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 []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver:                     [FAILED]     ---配置asm报错

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[root@rac1 test]# more /var/log/oracleasm          ---- 查看oracleasm日志
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"
[root@rac1 test]# find / -name oracleasm.ko     ---寻找oracleasm.ko
/lib/modules/2.6.18-308.el5/kernel/drivers/addon/oracleasm/oracleasm.ko


[root@rac1 test]# /sbin/insmod /lib/modules/2.6.18-308.el5/kernel/drivers/addon/oracleasm/oracleasm.ko    ----手动执行

insmod: error inserting '/lib/modules/2.6.18-308.el5/kernel/drivers/addon/oracleasm/oracleasm.ko': -1 Invalid module format

如上所示:然而上面下划线中的这一切并无卵用,真正的原因我在开始安装oracleasm包的时候就已看穿,没错就是 oracleasm包的版本问题由于我的内核是2.6.18-238.el5 所以必须安装 x86_64版本的oracleasm rpm包。于是下载适合版本的rpm包。

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

解决方法:

1. uname -a   查看内核

2.找到适合自己内核的版本的包,在此链接中查找:http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html#oracleasm_rhel5_amd64 

3.卸载已安装的 错误包 :

[root@rac2 test]# rpm -qa | grep asm
oracleasm-2.6.18-308.el5-2.0.5-1.el5
oracleasmlib-2.0.4-1.el5
oracleasm-support-2.1.7-1.el5

[root@rac2 test]# rpm -e oracleasm-2.6.18-308.el5-2.0.5-1.el5
[root@rac2 test]# rpm -e oracleasmlib-2.0.4-1.el5

[root@rac2 test]# rpm -e oracleasm-support-2.1.7-1.el5

4.安装正确版本的包:

[root@rac2 test]# rpm -ivh *
warning: oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:oracleasm-support      ########################################### [ 33%]
   2:oracleasm-2.6.18-238.el########################################### [ 67%]
   3:oracleasmlib           ########################################### [100%]

5.再次配置oracleasm

[root@rac1 test]# /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 [grid]: grid
Default group to own the driver interface [asmadmin]: asmadmin
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]

---活到老学到老

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值