Unable to create the disk on RHEL6 using oracleasm
The reason behind this is under /etc/selinux/config file
make sure that it have following value
If not then set it and restart the system then issue the command again and there will be success.
[root@racdr1 ~]# oracleasm createdisk ASM1 /dev/sdb1
Writing disk header: done
Instantiating disk: failed
Clearing disk header: done
[root@racdr1 ~]#
The reason behind this is under /etc/selinux/config file
make sure that it have following value
SELINUX=permissive
If not then set it and restart the system then issue the command again and there will be success.
[root@racdr1 ~]# cat /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=permissive
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@racdr1 ~]# oracleasm createdisk ASM1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@racdr1 ~]#
No comments:
Post a Comment