asm createdisk時提示沒有許可權

tolilong發表於2013-10-29
[root@rac1 ~]# /etc/init.d/oracleasm createdisk data01 /dev/sdb1
Marking disk "data01" as an ASM disk: [FAILED][@more@]

[root@rac1 ~]# more /var/log/oracleasm

Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "DATA01": Permission denied
failed

出現這個需要將selinux disable掉

[root@rac1 ~]# more /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disable
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

這個需要重啟才能生效,如果需要立即生效,需執行

[root@rac1 ~]# setenforce
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]

[root@rac1 ~]# setenforce 0

之後便可以建立asmdisk 了。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1060996/,如需轉載,請註明出處,否則將追究法律責任。

相關文章