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
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 [root]: oracle
Default group to own the driver interface [dba]: dba
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [FAILED]
搜索网络报该错如下2个缘由:
1.安装对应内核的oracleasm包,肯定过了,安装包是正确的。
2.关闭SELINUX:
[root@node1 selinux]# cat config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
也是disabled
查看var/log下的日志:
cat /var/log/oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"
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
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 [oracle]:
Default group to own the driver interface [dba]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
搞定,之前一直都是安装的那3个包,还没注意到其它模块下的包。