1. ASM diskgroups in single instance environment will not be mounted with the following similar error in sqlplus screen.
SQL> alter diskgroup DATA mount;
alter diskgroup DATA mount
*
ORA-15017 diskgroup DATA cannot be mounted
ORA-15003 diskgroup DATA already mounted in another lock name space
2. Heartbeat detection error is seen In ASM alert.log,
ASM devices are shared between 2 database servers with single instance ASM environment for migration work.
The same diskgroup ( DATA here ) is tried to be mounted on the 2nd node while it is currently mounted on the first node.
Database servers have to be clustered with RAC configuration to mount the same ASM diskgroups pointing to the same storage on multiple nodes. Oracle ASM uses heartbeat to prevent the same diskgroup from being mounted on multiple nodes from non-clustered servers at the same time.
Check whether heartbeat is detected for the failed diskgroup.
1. Use AMDU tool before mounting the diskgroup in question.
2. Use kfed . Heartbeat block is located at the last 4k block on aun=1.
If AU size for the affected diskgroup is 1M, heartbeat can be checked in the following way.
And also note the following command with various size of AU.
<<< If the command above show a different checksum value over time ( say 10 sec interval ), it indicates that the heatbeat block is being updated from other node beyond the server.
3. Use OS command dd in the following way.
10 secs later, take another dd output with a different file name
<<< 1M AU, skip=511 / 4M AU, skip=2047 / 8M AU, skip=4095 / 16M AU, skip=8191 / 32M AU, skip=16383 / 64M AU, skip=32767
And then check if they shows different content.
<<< If these 2 files show different content, it also indicates that the heatbeat block is being updated from other node beyond the server.
4. If heartbeat is detected while the affected diskgroup is not mounted, it indicates that the diskgroup in question is currently mounted by other node. But it does not tell which node is currently mounting it. Find the node with help of Storage Admin team which is currently mounting the diskgorup in question and dismount and try to mount it on the 2nd node.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15747463/viewspace-1064066/ ,如需转载,请注明出处,否则将追究法律责任。