ITPub博客

首页 > 应用开发 > IT综合 > asm createdisk时提示没有权限

asm createdisk时提示没有权限

原创 IT综合 作者:tolilong 时间:2013-10-29 15:39:24 0 删除 编辑
[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博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-1060996/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1208686