Wednesday 5 March 2014

LUN assigned to Oracle ASM Library

How to find physical LUN assigned to Oracle ASM library

If you have Oracle ASM library configured and you want to know which LUN is assigned to which Volume. First look for Number of Volumes created

[oracle@Mandydb1 ~]$ /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
VOL4
VOL5
VOL6
VOL7
VOL8
VOL9

Just like in my case I have 9 Volumes create in ASM library, Now I want to know the physical name from VOL1.

Below is the command.

[oracle@Mandydb1 ~]$  /etc/init.d/oracleasm querydisk -p VOL1
Disk "VOL1" is a valid ASM disk
/dev/sdb1: LABEL="VOL1" TYPE="oracleasm"
/dev/sdi1: LABEL="VOL1" TYPE="oracleasm"
/dev/sdae1: LABEL="VOL1" TYPE="oracleasm"
/dev/sdag1: LABEL="VOL1" TYPE="oracleasm"
/dev/emcpowera1: LABEL="VOL1" TYPE="oracleasm"

Her you can see that it is pointing to /dev/emcpoera1 , because EMC multipathing is being configured.

No comments:

Post a Comment