RE: LUN ID

From: D'Hooge Freek <Freek.DHooge_at_uptime.be>
Date: Tue, 20 Nov 2012 16:32:21 +0100
Message-ID: <4814386347E41145AAE79139EAA398982F74C2D029_at_ws03-exch07.iconos.be>



Hi,

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

Regards,

Freek D'Hooge
Uptime
Oracle Database Administrator
email: freek.dhooge_at_uptime.be
tel +32(0)3 451 23 82
http://www.uptime.be
disclaimer: www.uptime.be/disclaimer

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Shanmugam, Satheesh B Sent: dinsdag 20 november 2012 16:16
To: oracle-l_at_freelists.org
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 11.2.0.3 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 http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities.

--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l
Received on Tue Nov 20 2012 - 16:32:21 CET

Original text of this message