系统内核
[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 <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]: 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 <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]: 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 --
--转自