Initializing the Oracle ASMLib driver: [FAILED]

Initializing the Oracle ASMLib driver: [FAILED]node


[root@localhost modules]# uname  -rmlinux

2.6.18-348.el5 x86_64網絡

[root@localhost modules]# cat /etc/issueoracle

CentOS release 5.9 (Final)ide

Kernel \r on an \m網站


安裝ASMLib包:
spa

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
three

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


[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個包,還沒注意到其它模塊下的包。

相關文章
相關標籤/搜索