Instantiating disk: failed

Instantiating disk: failed

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

oracleasm-support-2.1.8-1.el6.x86_64

oracle-logos-60.0.14-1.0.1.el6.noarch

oraclelinux-release-notes-6Server-9.x86_64

oraclelinux-release-6Server-4.0.4.x86_64

oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64

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

I had to restart my server because I got the same value:

[[email protected] Packages]# getenforce
Enforcing

Once I restarted the server I was able to create the disk:

[[email protected] ~]# oracleasm createdisk ASMDISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[[email protected] ~]# oracleasm listdisks
ASMDISK1
[[email protected] ~]# 

© 2021 www.oraworld-team.com | Designed & Developed by W3 Technologies