How To: IDENTIFY THE ASM DEVICE FROM ASMLIB

前端之家收集整理的这篇文章主要介绍了How To: IDENTIFY THE ASM DEVICE FROM ASMLIB前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

使用oracleasm querydisk可以查询到device的major和minor,从而对应。

for i in `oracleasm listdisks`
do
oracleasm querydisk -d $i
done

示例输出

[[email protected] ~]# 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]

猜你在找的Oracle相关文章