How To: IDENTIFY THE ASM DEVICE FROM ASMLIB
使用oracleasm querydisk可以查询到device的major和minor,从而对应。
for i in `oracleasm listdisks` do oracleasm querydisk -d $i done
示例输出:
[root@tyzfdb01 ~]# for i in `oracleasm listdisks` > do > oracleasm querydisk -d $i > done Disk "ARCH_VOL1" is a valid ASM disk on device /dev/dm-9[253,9] Disk "DATA_VOL1" is a valid ASM disk on device /dev/dm-3[253,3] Disk "DATA_VOL2" is a valid ASM disk on device /dev/dm-4[253,4] Disk "DATA_VOL3" is a valid ASM disk on device /dev/dm-5[253,5] Disk "DATA_VOL4" is a valid ASM disk on device /dev/dm-6[253,6] Disk "DATA_VOL5" is a valid ASM disk on device /dev/dm-7[253,7] Disk "DATA_VOL6" is a valid ASM disk on device /dev/dm-8[253,8] Disk "OCR_VOL1" is a valid ASM disk on device /dev/dm-0[253,0] Disk "OCR_VOL2" is a valid ASM disk on device /dev/dm-1[253,1] Disk "OCR_VOL3" is a valid ASM disk on device /dev/dm-2[253,2]