• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 7 : Oracleasm Create Disk Failed “Instantiating disk: failed”

by admin

Error:

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

Solution

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 :

How to enable/disable SELinux Modes in RHEL/CentOS

Filed Under: ASM, oracle

Some more articles you might also be interested in …

  1. How to Convert STANDARD ASM to FLEX ASM in 12C
  2. How to Recover A Dropped Tablespace Using TSPITR
  3. How to Change sys password in oracle 12c on RAC and dataguard
  4. How to Merge Multiple Partitions in Oracle 12c
  5. Database Crashed With ORA-19815, ORA-19809, ORA-16038
  6. Using Rule Sets in Oracle Database Vault
  7. How to get the Values Assigned by Default to a Profile in Oracle Database
  8. Oracle Database: Profile Limits (Resource Parameter(s)) Are Not Enforced / Do Not Work
  9. How to trace asmcmd command on UNIX/Linux
  10. How to check and repair ACFS with FSCK

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright