ASM Missing disk : can't mount diskgroup /drop diskgroup/ delete disk



a. Check asm_diskstring and/or asm_diskgroups init parameters are not set correctly 

Raw device :  ALTER SYSTEM SET asm_diskstring = '/dev/raw/raw*, /dev/raw/raw1[1-5]' scope=BOTH sid='*';
ASMLib     :  ALTER SYSTEM SET asm_diskstring = 'ORCL:*' scope=BOTH sid='*';


ALTER SYSTEM SET asm_diskgroups = 'ORADB_DATA, ORADB_IDX, ORADB_BACKUP, ORADB_ARC' scope=spfile sid='*';


b. check OS Disks/Devices ownership 

oracle:dba for non OCR and Voting Disk.

  root:dba for OCR.
oracle:dba for Voting Disk.


c. check OS Disks/Devices permissions 

660 - for non OCR and Voting Disk.

640 - for OCR.
644 - for Voting Disk.


d. Check if Physical Disks/Devices exist or visible at OS level 

Raw device: /dev/raw
ASMLib    : /dev/oracleasm/disks



e.Check oracle ASMLib rpm's are installed. - Linux 

ASMLib only!!

Check: rpm -qa|grep asm

oracleasmlib-2.0.2-1
oracleasm-support-2.0.3-1
oracleasm-2.6.9-42.ELsmp-2.0.3-1


f. Make sure all the disks can be listed 

/etc/init.d/oracleasm listdisks


g. Make sure all the disks can be queried 


List all the disks:
for i in `cd /dev/oracleasm/disks;ls *`;
do
/etc/init.d/oracleasm querydisk $i 2>/dev/null
done



Look for any missing label's:
for i in `ls /dev/emcpower*1`;
do
/etc/init.d/oracleasm querydisk $i 2>/dev/null | grep "\"\"$"
done


$/dev/oracleasm/disks> ls -lt AO_6011_0972
brw-rw---- 1 oracle dba 120, 641 Mar 21 17:03 AO_6011_0972

$/dev/oracleasm/disks> /etc/init.d/oracleasm   querydisk  AO_6011_0972
Disk "AO_6011_0972" is a valid ASM disk on device [120, 641]



h. Make sure permission and ownership of /var/opt/oracle directory is oracle:dba


i. Make sure that there are no duplicate paths or names that point to the same physical disk :  "/sbin/powermt display dev=emcpowerem"


j.Make sure disk name and underlying logical device id or LUN id is consistent across the nodes

Some times, disk name pointing to logical device id or LUN id on one node is different from other nodes.

"/sbin/powermt display dev=emcpowerem"