My Oracle Support Banner

oracleasm createdisk fails with selinux enabled (Doc ID 1430947.1)

Last updated on JUNE 01, 2020

Applies to:

Linux OS - Version Oracle Linux 5.0 to Oracle Linux 6.2 with Unbreakable Enterprise Kernel [2.6.39] [Release OL5 to OL6U2]
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86


Attempt to do  "oracleasm createdisk" fails with "Permission denied" error:

# oracleasm createdisk -v OCRDISK1 /dev/mapper/mpathfp1
Disk "OCRDISK1" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "OCRDISK1": Permission denied
Clearing disk header: done

or (without -v option):

# oracleasm createdisk OCRDISK1 /dev/mapper/mpathfp1

Error instantiating disk: failed

 Strace shows the following error:

8408 open("/dev/mapper/mpathfp1", O_RDWR) = 4
8408 fstat(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 11), ...}) = 0
8408 fstat(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 11), ...}) = 0
8408 mknod("/dev/oracleasm/disks/OCRDISK1", S_IFBLK|0600, makedev(253, 11)) = -1 EACCES (Permission denied)
8408 write(2, "oracleasm-instantiate-disk: ", 28) = 28
8408 write(2, "Unable to create ASM disk \"OCRDI"..., 56) = 56
8408 close(4) = 0
8408 exit_group(-1) = ?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.