你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle asmlib的configure错误小结

[日期:2012-06-13] 来源:Linux社区  作者:mikixiyou [字体:大 中 小]

Oracle asmlib 是Oracle 公司在linux 平台上提供的一种取代raw devices 的系统程序包。它的安装和配置很简单,可以去参考我写的 http://www.linuxidc.com/Linux/2012-06/62770.htm 一文。

本文描述了在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 <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]:

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 <manager>] [-i|-I] [-e|-d] [-u <user>] [-g <group>] [-s y|n]

 

[[-o <order>] ...] [[-x <exclude>] ...]

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款