From: D'Hooge Freek <>
Date: Tue, 20 Nov 2012 16:32:21 +0100
Message-ID: <>


If you are using multipath, then just do a:

multipath -ll <multipath name>

The lun id is the 4th number at the start of the path:

Lun_name_a (xxxxxxxxxxxxxxx) dm-22 xxxxxxx size=1.0G features='0' hwhandler='0' wp=rw

`-+- policy='round-robin 0' prio=4 status=active
  |- 4:0:1:2  sdy  65:128 active ready running
  `- 3:0:1:2  sdj  8:144  active ready running

In the above example the lun id is 2

And the xxxx between brackets on the first line will be your WWID.

If not using multipath, you can check in /sys/block/<sd name>/device. There you can find the same info

[root_at_yyyyyy ~]# cd /sys/block/sdj/device/
[root_at_yyyyyy device]# ls -alhd scsi_disk*
lrwxrwxrwx 1 root root 0 Nov 20 16:28 scsi_disk:3:0:1:2 -> ../../../../../../../../class/scsi_disk/3:0:1:2


Freek D'Hooge
Oracle Database Administrator
tel +32(0)3 451 23 82

-----Original Message-----
From: [] On Behalf Of Shanmugam, Satheesh B Sent: dinsdag 20 november 2012 16:16
Subject: LUN ID

We have created asm disk using asmlib and assigned to the diskgroups. This was done a while back. Is there a way now to get LUN ID of these disks? We are in linux running grid. Regards,
Satheesh Shanmugam

This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.

Please refer to for disclosures relating to European legal entities.


Received on Tue Nov 20 2012 - 16:32:21 CET

Original text of this message