Loading module "oracleasm": Unable to load module "oracleasm"

今天安装10g RAC的时候,遇到Loading module "oracleasm": Unable to load module "oracleasm" 错误。

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


Default user to own the driver interface [oracle]: 
Default group to own the driver interface [dba]: 
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]
[root@rac1 ~]# 

这个问题一般可能是oracleasm模块对应的os内核小版本号不一致,mv oracleasm.ko 文件到正确的版本目录就可以解决。
查看内核版本
[root@rac1 ~]# uname -a
Linux rac1 2.6.18-164.el5 #1 SMP Thu Sep 3 02:16:47 EDT 2009 i686 i686 i386 GNU/Linux

查看oracleasm.ko 的位置
[root@rac1 ~]# cd /lib/modules/
[root@rac1 modules]# ll
total 12
drwxr-xr-x 6 root root 4096 Apr  6 08:33 2.6.18-164.el5
drwxr-xr-x 3 root root 4096 Apr 22 04:39 2.6.18-53.el5
[root@rac1 modules]# 


[root@rac1 modules]# cd 2.6.18-164.el5/kernel/drivers/addon/
[root@rac1 addon]# ll
total 0
可以看到 2.6.18-164.el5 目录下面,没有oracleasm.ko 文件,实际上文件在 2.6.18-53.el5目录下。

[root@rac1 addon]# cd /lib/modules/2.6.18-53.el5/kernel/drivers/addon/
[root@rac1 addon]# ll
total 4
drwxr-xr-x 2 root root 4096 Apr 28 00:27 oracleasm
[root@rac1 addon]# 
[root@rac1 addon]# cd oracleasm/
[root@rac1 oracleasm]# ll
total 324
-rw-r--r-- 1 root root 325197 Nov 14  2007 oracleasm.ko

将这个文件移动到 2.6.18-164.el5 目录
[root@rac1 oracleasm]# cd ..
[root@rac1 addon]# ll
total 4
drwxr-xr-x 2 root root 4096 Apr 28 00:27 oracleasm
[root@rac1 addon]# mv oracleasm/ /lib/modules/2.6.18-164.el5/kernel/drivers/addon/

重新配置oracleasm,不再报错
[root@rac1 addon]# /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 without typing an
answer will keep that current value.  Ctrl-C will abort.


Default user to own the driver interface [oracle]: 
Default group to own the driver interface [dba]: 
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":                                [  OK  ]
Mounting ASMlib driver filesystem:                         [  OK  ]
Scanning system for ASM disks:                             [  OK  ]
[root@rac1 addon]# 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22213086/viewspace-1150411/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22213086/viewspace-1150411/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值