asm createdisk时提示没有权限

[[email protected] Packages]# /etc/init.d/oracleasm createdisk asm1 /dev/sdg1
Marking disk "asm1" as an ASM disk: [FAILED]
[[email protected] 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 ]
[[email protected] Packages]# /etc/init.d/oracleasm createdisk asm1 /dev/sdg1
Marking disk "asm1" as an ASM disk: [FAILED]
[[email protected] Packages]# cd /var/log/

[[email protected] 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
[[email protected] log]# getenforce
Enforcing
[[email protected] log]# setenforce 0
[[email protected] 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掉

[[email protected] 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

这个需要重启才能生效,如果需要立即生效,需执行

[[email protected] ~]# setenforce
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]

[[email protected] ~]# setenforce 0

[[email protected]nux log]# /etc/init.d/oracleasm createdisk asm1 /dev/sdg1
Marking disk "asm1" as an ASM disk: [ OK ]

时间: 2024-08-25 07:12:54

asm createdisk时提示没有权限的相关文章

首次使用windows管理界面访问安装在UNIX或linux下的DP服务器时提示无权限访问的解决方法

用windwos GUI管理界面连接时提示无权限访问: 在/etc/opt/omni/server/users/userlist 添加一行: "" "*" "*" * "admin"  再次运行DP的图形界面即可正常访问DP了.

IIS7.5网站添加默认文档时提示“由于权限不足而无法写入配置文件”。

在对网站添加默认文档时提示“由于权限不足而无法写入配置文件”. 其实这不是权限不足造成的,而是网站的配置文件属性是“只读”造成的. 右击网站配置文件--属性--属性项里去掉只读--确定.

CentOS7下安装phpcmsV9时提示文件权限不可写

1.  将/var/www/html/phpcms目录所属用户和组修改为apache [[email protected] html]#  [[email protected] html]# pwd /var/www/html [[email protected] html]# ls  index.php  itop  phpcms [[email protected] html]#  [[email protected] html]# chown -R apache:apache phpcms

删除以前系统遗留下来的文件(比如Windows文件夹)时提示没有权限怎么办

这些文件往往是系统文件,文件所有者为之前系统中的管理员,当前系统的管理员并无权限删除,且强行给当前系统管理员加入权限往往也会无效.此时需要分两步走: 一.更改文件所有者,需要在开始菜单中找到命令提示符(Command Prompt),右键,使用管理权限运行.使用cd命令进入包含难以删除的文件夹的,输入命令: TAKEOWN /F 文件或文件夹名称 /R /D N 二.为系统管理员组(Administrators)添加完全控制权限(Full Control).在刚刚的命令提示符窗口中继续输入:ic

systemctl 启动成功却提示没有权限(解决)

现象: systemctl 启动svnserve成功,却在提交svn时提示没有权限. systemctl 启动smb成功,却在samba访问时提示没有权限. 但手动启动svnserve和smb后,问题消失. 解决办法: 将selinux关闭 分析: systemctl 会走selinux,直接启动会绕过selinux? 原来以为firewall-cmd配置了svn和samba的可访问规则就可以了. 以为selinux和firewall-cmd是一个概念.

运行cmd时提示你可能没有适当的权限访问该项目

Windows无法访问指定设备.路径或文件.你可能没有适当的权限访问该项目. 方法/步骤 在C:\Windows\System32目录下中找到cmd.exe文件   右键点击 "属性"--->"安全"--> "高级"-->"继续"-->"添加"-->"选择主体"-->输入你现在使用的用户名-->单击检查名称-->确定-->确定--&g

微信支付(APP)集成时碰到的问题(.net提示“无权限”、iOS跳转到微信支付页面中间只有一个“确定”按钮)

直入主题之前,请容我吐槽一下微*的官方东西:ASDFQ%#$%$#$%^[email protected]#$%DSFQ#$%.......:吐槽玩了!大家心照就好. 要完成手机APP跳转到微信的APP进行微信支付,需要进行如下操作: 1.先去微信的开放平台(http://open.weixin.qq.com)进行开发者账号的注册. 2.新建一个APP应用,然后填写必填信息提交审核. 3.进入APP应用,在接口信息中,进行申请“获得微信支付能力”的功能,期间会提交相关的公司营业信息证明等. 通过

【第十二篇】微信支付(APP)集成时碰到的问题(.net提示“无权限”、iOS跳转到微信支付页面中间只有一个“确定”按钮)(转)

直入主题之前,请容我吐槽一下微*的官方东西:ASDFQ%#$%$#$%^[email protected]#$%DSFQ#$%.......:吐槽玩了!大家心照就好. 要完成手机APP跳转到微信的APP进行微信支付,需要进行如下操作: 1.先去微信的开放平台(http://open.weixin.qq.com)进行开发者账号的注册. 2.新建一个APP应用,然后填写必填信息提交审核. 3.进入APP应用,在接口信息中,进行申请“获得微信支付能力”的功能,期间会提交相关的公司营业信息证明等. 通过

删除文件时,提示没权限删除文件怎么办

做了个东西老提示删除文件没权限,郁闷 if (File.Exists("D://phone//headImages//" + this.txtNumber.Text.Trim() + ".jpg")) { File.Delete("D://phone//headImages//" + this.txtNumber.Text.Trim() + ".jpg"); } 当文件存在之后,无法删除,而是告诉我 另一个进程正在使用该文件什