ORACLE Initializing the Oracle ASMLib driver: [FAILED]
2015-03-27 14:13
453 查看
在配置asm服务时,遇到以下错误:
[root@db1 tmp]# service 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 []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n)
: 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]
Cause:
首先查看日志/var/log/oracleasm
[root@db1 tmp]# more /var/log/oracleasm
Disk "ASM_DATA1" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: oracleasm-instantiate-disk: Unable to open manager: No such file or directory
failed
Clearing disk header: done
Disk "ASM_DATA1" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: oracleasm-instantiate-disk: Unable to open manager: No such file or directory
failed
Clearing disk header: done
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm
发现出错是由于无法加载oracleasm 模块
Solution:
查看该模块是否存在:
[root@db1 tmp]# find / -name "oracleasm.ko"
/lib/modules/2.6.18-164.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
若存在,手动安装该模块
[root@db1 lib]# which insmod
/sbin/insmod
[root@db1 lib]# insmod /lib/modules/2.6.18-164.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
再次尝试,这次就成功了。
[root@db1 lib]# service 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 [grid]:
Default group to own the driver interface [asmadmin]:
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 ]
但是这种方法治标不治本
想要彻底更正这个错误,需要对应系统内核版本正确的安装asm的包。
[root@db1 grid]# uname -r
2.6.18-402.el5
[root@db1 tmp]# ll oracleasm*
-rwxrw-rw- 1 oracle oinstall 136910 Mar 26 15:54 oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm
-rwxrw-rw- 1 oracle oinstall 14176 Mar 26 16:02 oracleasmlib-2.0.4-1.el5.x86_64(1).rpm
-rwxrw-rw- 1 oracle oinstall 91430 Mar 26 16:07 oracleasm-support-2.1.7-1.el5.x86_64.rpm
[root@db1 tmp]# service 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 []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n)
: 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]
Cause:
首先查看日志/var/log/oracleasm
[root@db1 tmp]# more /var/log/oracleasm
Disk "ASM_DATA1" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: oracleasm-instantiate-disk: Unable to open manager: No such file or directory
failed
Clearing disk header: done
Disk "ASM_DATA1" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: oracleasm-instantiate-disk: Unable to open manager: No such file or directory
failed
Clearing disk header: done
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm
发现出错是由于无法加载oracleasm 模块
Solution:
查看该模块是否存在:
[root@db1 tmp]# find / -name "oracleasm.ko"
/lib/modules/2.6.18-164.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
若存在,手动安装该模块
[root@db1 lib]# which insmod
/sbin/insmod
[root@db1 lib]# insmod /lib/modules/2.6.18-164.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
再次尝试,这次就成功了。
[root@db1 lib]# service 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 [grid]:
Default group to own the driver interface [asmadmin]:
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 ]
但是这种方法治标不治本
想要彻底更正这个错误,需要对应系统内核版本正确的安装asm的包。
[root@db1 grid]# uname -r
2.6.18-402.el5
[root@db1 tmp]# ll oracleasm*
-rwxrw-rw- 1 oracle oinstall 136910 Mar 26 15:54 oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm
-rwxrw-rw- 1 oracle oinstall 14176 Mar 26 16:02 oracleasmlib-2.0.4-1.el5.x86_64(1).rpm
-rwxrw-rw- 1 oracle oinstall 91430 Mar 26 16:07 oracleasm-support-2.1.7-1.el5.x86_64.rpm
相关文章推荐
- 关于“Initializing the Oracle ASMLib driver: [FAILED]”的解决办法
- 关于Initializing the Oracle ASMLib driver:[FAILED] 的问题
- Initializing the Oracle ASMLib driver: [FAILED]
- 关于“Initializing the Oracle ASMLib driver: [FAILED]”的解决办法
- 关于“Initializing the Oracle ASMLib driver: [FAILED]”的解决办法
- Initializing the Oracle ASMLib driver: [FAILED]
- Initializing the Oracle ASMLib driver: [FAILED]
- A web application registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it
- registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the
- [Oracle] ASMLIB创建磁盘报错“Marking disk "VOL1" as an ASM disk: [FAILED]”
- registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. (转)
- registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the
- The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister
- Redhat 下ASM 11.2.0.1 oracleasm deletedisk - Clearing disk header failed 的解决方法
- registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it
- 利用asmlib创建oracle asm
- The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister i
- Metasploit攻击Oracle的环境搭建(Failed to load the OCI library: no such file to load -- oci8)
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法