zoukankan      html  css  js  c++  java
  • asm createdisk时提示没有权限

    [root@linux Packages]# /etc/init.d/oracleasm createdisk asm1 /dev/sdg1
    Marking disk "asm1" as an ASM disk: [FAILED]
    [root@linux Packages]# /etc/init.d/oracleasm enable
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver: [ OK ]
    Scanning the system for Oracle ASMLib disks: [ OK ]
    [root@linux Packages]# /etc/init.d/oracleasm createdisk asm1 /dev/sdg1
    Marking disk "asm1" as an ASM disk: [FAILED]
    [root@linux Packages]# cd /var/log/

    [root@linux log]# cat oracleasm
    Creating /dev/oracleasm mount point: /dev/oracleasm
    Loading module "oracleasm": oracleasm
    Mounting ASMlib driver filesystem: /dev/oracleasm
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    Disk "ASM1" does not exist or is not instantiated
    Writing disk header: done
    Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "ASM1": Permission denied
    failed
    Clearing disk header: done
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    Disk "ASM1" does not exist or is not instantiated
    Writing disk header: done
    Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "ASM1": Permission denied
    failed
    Clearing disk header: done
    [root@linux log]# getenforce
    Enforcing
    [root@linux log]# setenforce 0
    [root@linux log]# cat /etc/sysconfig/selinux

    # 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=enforcing
    # SELINUXTYPE= can take one of these two values:
    # targeted - Targeted processes are protected,
    # mls - Multi Level Security protection.
    SELINUXTYPE=targeted

    出现这个需要将selinux disable掉

    [root@linux log]# vi /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@linux ~]# setenforce
    usage: setenforce [ Enforcing | Permissive | 1 | 0 ]

    [root@linux ~]# setenforce 0

    [root@linux log]# /etc/init.d/oracleasm createdisk asm1 /dev/sdg1
    Marking disk "asm1" as an ASM disk: [ OK ]

     

     

  • 相关阅读:
    Python 里的下划线
    浅谈TCP拆包粘包问题
    40 张图带你搞懂 TCP 和 UDP
    头条面试官问:如何保证网络传输的可靠性?这就很尴尬了
    TCP协议灵魂12问,面试总会用得到(建议收藏)
    TCP网络握手
    HTTP1.0、HTTP1.1和HTTP2.0的区别
    面试官:这波HTTP究极combo,你顶得住吗?_chuhe1989的博客-CSDN博客
    腾讯面试官:说一下Android网络知识和框架?
    网络通信必备基础之Http协议&TCP/IP协议(二)
  • 原文地址:https://www.cnblogs.com/datalife/p/4556907.html
Copyright © 2011-2022 走看看