Oracleasm create disk failure on RHEL 7 with following error.
# oracleasm createdisk DATA1 /dev/sde1 Writing disk header: done Instantiating disk: failed Clearing disk header: done
When disk is created with verbose option (-v) you would see :
# oracleasm createdisk -v DATA1 /dev/sde1 Disk "DATA1" does not exist or is not instantiated Writing disk header: done Instantiating disk: oracleasm-instantiate-disk: Unable to open manager: No such file or directory failed Clearing disk header: done
This is because the selinux is enables. So to be able to create new disk into oracleasm we will have to disable the selinux first. To do so :
Temporarily disable SElinux
# setenforce 0
Permanently disable SElinux
To disable SElinux permanently edit the SELINUX line in the /etc/sysconfig/selinux file to disabled.
# vi /etc/sysconfig/selinux <
Reboot the server and run 'oracleasm createdisk' again
# shutdonw -r now
For more details on disabling SElinux refer post :