[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to find which disk a LUN is mapped to



Bryn M. Reeves wrote:
On Thu, 2009-04-30 at 10:16 +0100, Bryn M. Reeves wrote:
> On Thu, 2009-04-30 at 13:25 +1200, Paul Ward wrote:
>> Hi all,
>>
>> I need to find out which disk LUN6 points to on my RH3 box.

Hmm. I just noticed that version. If you mean RHEL3 rather than Fedora
Core 3 then you're unfortunately out of luck.
If you've got RHEL3, you need scsi_info :

[root machine root]# scsi_info /dev/sda
SCSI_ID="0,0,0,1":VENDOR="COMPAQ":MODEL="HSV110 (C)COMPAQ":FW_REV="3110":SN="P5849E1AAQ601B":WWN="50001fe15002f9d0":LUN="600508b4001009aa-0000f00010e40000":

It comes from the kernel-pcmcia-cs package (don't ask me why!):

[root machine root]# rpm -qif `which scsi_info`
Name        : kernel-pcmcia-cs             Relocations: (not relocatable)
Version     : 3.1.31                            Vendor: Red Hat, Inc.

As you can see from above, it should give you the WWID of the LUN for each of your /dev/sd* devices - you can just go through them all looking for the LUN= and matching that to the WWID on your storage. The above example is an HP machine connected to an HP EVA 5000, so your results might vary.

--
Sam


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]