Oracle asmlib的configure错误小结

2014-11-24 18:55:21 · 作者: · 浏览: 1

本文描述了在oracel asmlib 使用过程中出现的一个小问题。


在asmlib 软件包安装完成后,使用oracleasm configure 完成配置操作。


正常情况下,执行过程应该是如下所示:


[root@db2 ~]# 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]:


Fix permissions of Oracle ASM disks on boot (y/n) [y]:


Writing Oracle ASM library driver configuration: [ OK ]


Scanning system for ASM disks: [ OK ]


这个脚本执行完成了四大任务。


1 、创建了配置文件/etc/sysconfig/oracleasm


2 、创建了挂载点/dev/oracleasm


3 、加载oracleasm 内核模块


4 、挂载ASM 函数驱动文件系统


但是,现在执行结果却是这样,如下:


[root@oracle16 ~]# oracleasm configure


ORACLEASM_ENABLED=false


ORACLEASM_UID=


ORACLEASM_GID=


ORACLEASM_SCANBOOT=true


ORACLEASM_SCANORDER=""


ORACLEASM_SCANEXCLUDE=""


没有出现任何配置过程的参数项。从结果看,像是oracleasm 已经配置过了,只是设置成不使用状态了。


我们先分析一下这个应用程序oracleasm 。


[root@oracle16 ~]# which oracleasm


/usr/sbin/oracleasm



[root@oracle16 ~]# oracleasm configure -h


Usage: oracleasm-configure [-l ] [-i|-I] [-e|-d] [-u ] [-g ] [-s y|n]



[[-o ] ...] [[-x ] ...]