Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7093653
  • 博文数量: 3857
  • 博客积分: 6409
  • 博客等级: 准将
  • 技术积分: 15948
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 16:48
个人简介

迷彩 潜伏 隐蔽 伪装

文章分类

全部博文(3857)

文章存档

2017年(5)

2016年(63)

2015年(927)

2014年(677)

2013年(807)

2012年(1241)

2011年(67)

2010年(7)

2009年(36)

2008年(28)

分类: Oracle

2014-06-08 22:06:54

原文地址:asmlib无法加载 作者:hxl


系统内核
[root@node3 oracleasm]# uname -a
Linux node3 2.6.9-42.0.0.0.1.EL #1 Sun Oct 15 13:58:55 PDT 2006 i686 athlon i386 GNU/Linux

安装ASM三个包:
[root@node1 asmlib]# rpm -ivh oracleasm-support-2.1.7-1.el4.i386.rpm
[root@node1 asmlib]# rpm -ivh oracleasm-2.6.9-42.0.2.EL-2.0.3-1.i686.rpm
[root@node1 asmlib]# rpm -ivh oracleasmlib-2.0.4-1.el4.i386.rpm


安装完成之后,进行配置
[root@node3 asm4]#  /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]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [FAILED]

发生了错误。


看一下日志:
[root@node3 oracleasm]# cat /var/log/oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"
Loading module "oracleasm": failed
Unable to load module "oracleasm"

加载oracleasm这个 module 失败.

[root@node3 oracleasm]#  ls -l /lib/modules/
total 36
drwxr-xr-x  3 root root 4096 Sep 13 02:50 2.6.9-42.0.0.0.1.EL
drwxr-xr-x  2 root root 4096 Sep 13 02:50 2.6.9-42.0.0.0.1.ELhugemem
drwxr-xr-x  2 root root 4096 Sep 13 02:50 2.6.9-42.0.0.0.1.ELsmp
drwxr-xr-x  3 root root 4096 Sep 20 02:34 2.6.9-42.0.2.EL
drwxr-xr-x  2 root root 4096 Oct 16  2006 kabi-4.0-0

[root@node3 /]# find -name oracleasm.ko
./lib/modules/2.6.9-42.0.2.EL/kernel/drivers/addon/oracleasm/oracleasm.ko

表明:module oracleasm.ko 确实存在!
但是系统不能调用到:
[root@node3 /]# cd /lib/modules/2.6.9-42.0.2.EL/kernel/drivers/addon/oracleasm
[root@node3 oracleasm]# /sbin/insmod oracleasm.ko
[root@node3 oracleasm]# echo $?
0
[root@node3 oracleasm]# /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]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [  OK  ]
Scanning the system for Oracle ASMLib disks: [  OK  ]

-- The End --

阅读(633) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~