机器重启后asm磁盘的权限变化

在执行命令/etc/init.d/oracleasm configure -i时没有出现下面修改asm磁盘启动时候的权限:

Fix permissions of Oracle ASM disks on boot? (y/n)Enter y to fix permissions of Oracle ASM disks when the system starts.

只出现下面操作:

[root@rac11ga ~]# /usr/sbin/oracleasm configure -i
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
[root@rac11ga ~]#

重新启动机器后查看asm磁盘权限,所有者和组都变为root。

[root@rac11ga oracleasm]# ll
total 0
drwxr-xr-x 1 root root     0 Apr 28 11:00 disks
drwxrwx--- 1 grid asmadmin 0 Apr 28 11:00 iid

在/etc/udev/rules.d目录先新建一个文件99-grid-permissions.rules:

vi 99-grid-permissions.rules

输入如下内容

# Set permissions of block bindings to Oracle Clusterware devices
PROGRAM="/bin/chown grid:asmadmin /dev/oracleasm/disks"

保存然后重启机器

重新登录并重启asm实例成功

[grid@rac11ga ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.2.0 Production on Sat Apr 28 14:11:14 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ASM instance started

Total System Global Area  283930624 bytes
Fixed Size                  2225792 bytes
Variable Size             256539008 bytes
ASM Cache                  25165824 bytes
ASM diskgroups mounted
SQL>

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值