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

Initializing the Oracle ASMLib driver: [FAILED]

2013-07-23 08:59 316 查看
Initializing the Oracle ASMLib driver: [FAILED]

[root@localhost modules]# uname -rm
2.6.18-348.el5 x86_64
[root@localhost modules]# cat /etc/issue
CentOS release 5.9 (Final)
Kernel \r on an \m

安装ASMLib包:

oracleasm-2.6.18-348.12.1.el5-2.0.5-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm

oracleasm-support-2.1.8-1.el5.x86_64.rpm

[root@node1 init.d]# ./oracleasm configure
8l x GK tsl.a$l0Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
$qDUx^}0driver. The following questions will determine whether the driver is
-h H0S/|/w(P&t7F0loaded on boot and what permissions it will have. The current values
1c'V c'{+p8x0will be shown in brackets ('[]'). Hitting <ENTER> without typing an
p.s]!A/_A-I0answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [root]: oracle
3eu!D zK0Default group to own the driver interface [dba]: dbaITPUB个人空间/snrR(\
Start Oracle ASM library driver on boot (y/n) [y]:
+f;k!i~!~_(M0Scan for Oracle ASM disks on boot (y/n) [y]:
'kIEuy(t B0Writing Oracle ASM library driver configuration: doneITPUB个人空间[,W$u'}eO \lg4u
Initializing the Oracle ASMLib driver: [FAILED]

搜索网络报该错以下2个原因:
1.安装对应内核的oracleasm包,确定过了,安装包是正确的。
2.关闭SELINUX:ITPUB个人空间fU6S%@2P2FZ4C8H3c
[root@node1 selinux]# cat config
4kM-a^-mX0# This file controls the state of SELinux on the system.
LcxK!mx Bt0# SELINUX= can take one of these three values:ITPUB个人空间;|/`/S|#n$_:qf)V {v
# enforcing - SELinux security policy is enforced.
wfXY d+]E0# permissive - SELinux prints warnings instead of enforcing.ITPUB个人空间p a3_-xh1B#As
# disabled - SELinux is fully disabled.
{"h f6ri \ ]{YH8tz0SELINUX=disabled
BR:k&cV6Lzt"{/q0# SELINUXTYPE= type of policy in use. Possible values are:
{(l#kzK-Ix0# targeted - Only targeted network daemons are protected.
|tCw3YW0v2`9K$NA m0# strict - Full SELinux protection.
.m0^ `*@0RD*zD'z.M)p0SELINUXTYPE=targeted
也是disabled

查看var/log下的日志:
/^ee#rK(L"G2j8Q0cat /var/log/oracleasmITPUB个人空间#Adw&Y5qwi D
Creating /dev/oracleasm mount point: /dev/oracleasm
(mxH"G4giZPQZ0Loading module "oracleasm": failed
W.p TbY [@mf0Z0Unable to load module "oracleasm"ITPUB个人空间;xew um+}$H2H
Loading module "oracleasm": failed

查看oracleasm模块:
ls /lib/modules

2.6.18-308.el5 2.6.18-348.12.1.el5 2.6.18-348.3.1.el5 2.6.18-348.el5

发现模块在./2.6.18-348.12.1.el5/kernel/drivers/addon/oracleasm/oracleasm.ko

2.6.18-348.el5下面没有oracleasm.ko模块,恰好linux运行在2.6.18-348.el5下。所以报找不到oracleasm模块。
于是网上再次到asmlib网站看了看,发现了包:

oracleasm-2.6.18-348.el5-2.0.5-1.el5.x86_64.rpm

难道这个348.el5包就能将oracleasm module放到2.6.18-348.el5下。
rpm -ivh /tmp/oracleasm-2.6.18-348.el5-2.0.5-1.el5.x86_64.rpm

Preparing... ########################################### [100%]
1:oracleasm-2.6.18-348.el########################################### [100%]

[root@node1 init.d]# ./oracleasm configure
3i;W!bMyPw)}0Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
)?0A's BcmGA/~)p}0driver. The following questions will determine whether the driver is
y1w4Jx)b:C,O0loaded on boot and what permissions it will have. The current values
:ww+VAD"{ro f4|T0will be shown in brackets ('[]'). Hitting <ENTER> without typing anITPUB个人空间"B C[em0~XMuz/Y/q
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]:
k]-\'Jt;K.Wn U0Default group to own the driver interface [dba]:ITPUB个人空间a[^ |5Zf"Y
Start Oracle ASM library driver on boot (y/n) [y]:ITPUB个人空间\2I8L"A;qi9[
Scan for Oracle ASM disks on boot (y/n) [y]:
q/_M-`*s0Writing Oracle ASM library driver configuration: doneITPUB个人空间4w Ov0S0GR:|
Initializing the Oracle ASMLib driver: [ OK ]ITPUB个人空间N#n8@q,~6CF5K
Scanning the system for Oracle ASMLib disks: [ OK ]

;`*{ `P&vD9yWj;\0搞定,以前一直都是安装的那3个包,还没注意到其它模块下的包。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  jacky
相关文章推荐