I was working in an environment after a reboot of the server that when I tried to startup the Oracle Clusterware on all belonged nodes, I received the following error:
Disk Group DATA creation failed with the following message: ORA-15018: diskgroup cannot be created ORA-15031: disk specification 'XXXX:XXX40' matches no disks
After some investigation of the logs, I checked the support package ASMLib to verify the status of the disks as below:
[root@techdatabasket grid]# /usr/sbin/oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... Instantiating disk "XXX40" Unable to instantiate disk "XXX40" [root@techdatabasket grid]#
Then I confirmed that it has not been possible to gather the status of one of the disks. Therefore, I continue to get more additional information to solve the issue as the current ASMlib is installed, and its logs are as below:
[root@techdatabasket grid]# rpm -qa | grep -i oracleasm oracleasmlib-2.0.12-1.el7.x86_64 oracleasm-support-2.1.11-2.el7.x86_64 [root@techdatabasket grid]# tail /var/log/oracleasm /var/log/oracleasm Cleaning any stale ASM disks… Scanning system for ASM disks… oracleasm-read-label: Unable to open device "/dev/fd0": No such device or address oracleasm-read-label: Unable to open device "/dev/sr0": No medium found Disk "XXX40" does not exist or is not instantiated Instantiating disk "XXX40" Tue Apr 26 09:26:47 Cleaning any stale ASM disks… Tue Apr 26 09:26:47 Scanning system for ASM disks… Tue Apr 26 09:26:47 Disk "XXX40" does not exist or is not instantiated Tue Apr 26 09:26:47 Unable to instantiate disk "XXX40"
[root@techdatabasket grid]# oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... Instantiating disk "XXX40" Unable to instantiate disk "XXX40"
At this point, it was clear to me that I should verify the status of the library and in case restart it. Thus, I found out that the ASMlib was not available after the restart, and then I restarted it and scanned the disks:
root@techdatabasket grid]# oracleasm status Checking if ASM is loaded: no Checking if /dev/oracleasm is mounted: no [root@techdatabasket grid]# oracleasm init Creating /dev/oracleasm mount point: /dev/oracleasm Loading module "oracleasm": oracleasm Configuring "oracleasm" to use device physical block size Mounting ASMlib driver filesystem: /dev/oracleasm [root@techdatabasket grid]# oracleasm status Checking if ASM is loaded: yes Checking if /dev/oracleasm is mounted: yes [root@techdatabasket grid]# oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... Instantiating disk "XXX40" [root@techdatabasket grid]#
Once the ASMlib was mounted and could recognize all the disks, I started the Oracle Clusterware successfully.
I hope this post helps you!
Hi! I am Bruno, a Brazilian born and bred, and I am also a naturalized Swedish citizen. I am a former Oracle ACE and, to keep up with academic research, I am a Computer Scientist with an MSc in Data Science and another MSc in Software Engineering. I have over ten years of experience working with companies such as IBM, Epico Tech, and Playtech across three different countries (Brazil, Hungary, and Sweden), and I have joined projects remotely in many others. I am super excited to share my interests in Databases, Cybersecurity, Cloud, Data Science, Data Engineering, Big Data, AI, Programming, Software Engineering, and data in general.
(Continue reading)