I was installing RAC 12cR1 on OEL 6.4, I had the packages intalled, I created the directories, users, group, all pre-tasks for installing.
When I was configuring disks for ASM was receiving the following error:
[email protected] ~]# oracleasm createdisk ASMDISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: failed
Clearing disk header: done
I checked if the module was loaded and it looked well
[[email protected] Packages]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
even I restarted the module just to see what happen:
[[email protected] Packages]# /etc/init.d/oracleasm restart
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
but I still was receiving the same error.
I was pretty sure that I disabled the firewall so I was aware that the firewall wasn’t the problem. I saw in the Oracle Forum that it could be permissions… come on! I had a terminal with root. Definitely that is not possible. what else? maybe packages?
[[email protected] Packages]# rpm -qa |grep oracle
No, the remaining packages are included inside OEL 6 core (as per Oracle Documentation).
mm what else? then I saw the following article:
it was about Security Linux, immediately I remembered I didn’t that. The article says it is related to 11gR2, but since this is not related to the Oracle version (because we are talking about asmlib) then I tried the solution:
[[email protected] Packages]# 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.
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# mls – Multi Level Security protection.
I had to restart my server because I got the same value:
[[email protected] Packages]# getenforce
Once I restarted the server I was able to create the disk: