1832143 Members
3147 Online
110038 Solutions
New Discussion

Lun device mapping

 
Jason DePaul
Occasional Contributor

Lun device mapping

what's up everyone. I am having an issue that I hope you can help with. I need determine which LUN (from an external fibre array) is mounted to a specific device in RHEL 3.

/proc/scsi/scsi shows me the available luns
fdisk -l shows me the physical volumes/devices

but nowhere can I see the correlation between the both of the them

if /dev/sdd1 is using LUN 4, then I want to know that

Any help would be greatly appreciated.

Peace
JD
2 REPLIES 2
Shaikh Imran
Honored Contributor

Re: Lun device mapping

Hi,

Let me try
Pls try this DOC
http://www.dell.com/downloads/global/power/1q04-mic.pdf

Regards,
I'll sleep when i am dead.
Jeroen Peereboom
Honored Contributor

Re: Lun device mapping

When I boot my server, I see something like:

Emulex LightPulse FC SCSI/IP 4.30l
!lpfc0:1304:LKe:Link Up Event received Data: x1 x1 xF7 x0
scsi0 : HBA: Emulex LightPulse LP950 on PCI bus 01 device 08 irq 15
Vendor: HP Model: A6189A Rev: HP18
Type: Direct-Access ANSI SCSI revision: 03
Vendor: HP Model: A6189A Rev: HP18
Type: Direct-Access ANSI SCSI revision: 03
Vendor: HP Model: A6189A Rev: HP18
Type: Direct-Access ANSI SCSI revision: 03
Vendor: HP Model: A6189A Rev: HP18
Type: Direct-Access ANSI SCSI revision: 03
Vendor: HP Model: A6189A Rev: HP18
Type: Direct-Access ANSI SCSI revision: 03
Vendor: HP Model: A6189A Rev: HP18
Type: Direct-Access ANSI SCSI revision: 03
Vendor: HP Model: A6189A Rev: HP18
Type: Direct-Access ANSI SCSI revision: 03
Vendor: HP Model: A6189A Rev: HP18
Type: Direct-Access ANSI SCSI revision: 03
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 0, lun 1
Attached scsi disk sdc at scsi0, channel 0, id 0, lun 2
Attached scsi disk sdd at scsi0, channel 0, id 0, lun 3
Attached scsi disk sde at scsi0, channel 0, id 0, lun 4
Attached scsi disk sdf at scsi0, channel 0, id 0, lun 5
Attached scsi disk sdg at scsi0, channel 0, id 0, lun 6
Attached scsi disk sdh at scsi0, channel 0, id 0, lun 7

This info is also shown in 'dmesg' output.

HtH,

JP.