重庆思庄Oracle、Redhat认证学习论坛

标题: oracle ASMLib配置文件 [打印本页]

作者: miss_puff    时间: 2018-1-18 11:27
标题: oracle ASMLib配置文件
环境:centos7.3+11g

ASMLib所对应的配置文件在/etc/sysconfig下,文件名oracleasm-_dev_oracleasm
[root@hisdg sysconfig]# pwd
/etc/sysconfig
[root@hisdg sysconfig]# ll oracle*
lrwxrwxrwx. 1 root root  24 Dec 29 14:37 oracleasm -> oracleasm-_dev_oracleasm
-rw-r--r--. 1 root root 888 Jan 18 11:11 oracleasm-_dev_oracleasm

文件内容如下:
[root@hisdg sysconfig]# more oracleasm-_dev_oracleasm
#
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver.  It is generated
# By running /etc/init.d/oracleasm configure.  Please use that method
# to modify this file
#

# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.
ORACLEASM_UID=grid                 /*指定asm磁盘组owner*/

# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.
ORACLEASM_GID=asmdba             /*指定asm磁盘组所属group*/

# ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.
ORACLEASM_SCANBOOT=true          /*指定重启系统是否扫描磁盘组,为false表示不扫描*/

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER=""

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE=""

# ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size
# reported by the underlying disk instead of the physical. The default
# is 'false'
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false



作者: zhouwei1990    时间: 2018-1-19 17:16
你这个配置文件是不是少了一行?
# ORACLEASM_ENABLED: 'true' means to load the driver on boot.
ORACLEASM_ENABLED=true  /*指定重启系统加载ASMLIB DRIVER*/

作者: miss_puff    时间: 2018-1-19 18:02
我这是7.3的操作系统,在安装asmlib包后。执行了systemctl enable oracleasm.service命令,写到服务里面的,不写配置文件了




欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2