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 configure8l 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 values1c'V c'{+p8x0will be shown in brackets ('[]'). Hitting <ENTER> without typing anp.s]!A/_A-I0answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [root]: oracle3eu!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 \lg4uInitializing the Oracle ASMLib driver: [FAILED]
搜索网络报该错以下2个原因:
1.安装对应内核的oracleasm包,确定过了,安装包是正确的。
2.关闭SELINUX:ITPUB个人空间fU6S%@2P2FZ4C8H3c[root@node1 selinux]# cat config4kM-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=disabledBR: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 DCreating /dev/oracleasm mount point: /dev/oracleasm(mxH"G4giZPQZ0Loading module "oracleasm": failedW.p TbY [@mf0Z0Unable to load module "oracleasm"ITPUB个人空间;xew um+}$H2HLoading 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 configure3i;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 isy1w4Jx)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/qanswer 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"YStart 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,~6CF5KScanning the system for Oracle ASMLib disks: [ OK ]
;`*{ `P&vD9yWj;\0搞定,以前一直都是安装的那3个包,还没注意到其它模块下的包。