ITPub博客

首页 > 数据库 > Oracle > /etc/init.d/oracleasm configure问题

/etc/init.d/oracleasm configure问题

原创 Oracle 作者:DylanDBA 时间:2015-05-06 12:05:47 3 删除 编辑
  在配置ASM磁盘时我的主机内核是2.6.18-164.el5xen,安装的ASM包组(同时RPM的安装顺序也是如此)是:oracleasm-support-2.1.8-1.el5.i386.rpm--> oracleasm-2.6.18-194.el5-2.0.5-1.el5.i686.rpm-->oracleasmlib-2.0.4-1.el5.i386.rpm-->oracleasm-2.6.18-194.el5xen-2.0.5-1.el5.i686.rpm(当安装这个包时会出现依赖问题,说第二个包没有安装上,但事实上我们已经安装上了,这时我们使用rpm -ivh --nodeps oracleasm-2.6.18-194.el5xen-2.0.5-1.el5.i686.rpm脱离依赖安装).
  下一步就是/etc/init.d/oracleasm configure了,但是会出现这样的问题:
/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 [oinstall]: 
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]

以下是解决办法:
1.查看日志
more /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"
Loading module "oracleasm": failed
Unable to load module "oracleasm"
原来是找不到ASM组件oracleasm.ko
在文件系统中查找
find / -name oracleasm.ko
/lib/modules/2.6.18-194.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
/lib/modules/2.6.18-194.el5xen/kernel/drivers/addon/oracleasm/oracleasm.ko

手工安装ASM组件/lib/modules/2.6.18-194.el5xen/kernel/drivers/addon/oracleasm/oracleasm.ko
使用以下命令:
/sbin/insmod /lib/modules/2.6.18-194.el5xen/kernel/drivers/addon/oracleasm/oracleasm.ko
(若是有同样问题的朋友复制这个命令,请注意路径下的2.6.18-194.el5xen这个名字,找出符合自己的名字)
执行成功

[root@11g modules]# /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 [oinstall]: 
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  ]




来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30221017/viewspace-1625493/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-04-24

  • 博文量
    6
  • 访问量
    15806