1833758 Members
2567 Online
110063 Solutions
New Discussion

LUN number of a device

 
SOLVED
Go to solution
Severus
Contributor

LUN number of a device

Hello Everyone,
Can you plases show me the way to identify/calculate the LUN number of the following device?

Device Name: /dev/dsk/c8t8d0
HW Path: 0/0/8/0/0.1.22.0.0.8.0

Thanks.

-- Faisal.
2 REPLIES 2
Pedro Albuquerque
Frequent Advisor

Re: LUN number of a device

Hello, can you send me the output of the following command: hwmgr show scsi -full?
Eugeny Brychkov
Honored Contributor
Solution

Re: LUN number of a device

Faisal,

0/0/8/0/0.1.22.0.0.8.0

0/8/0/0 is a hardware path (slot) where FC card is installed;
1 is a switch domain ID;
22 is a port ID (looks like you're using 1GB brocade). This is port #6;
0 is for fabric attach;
0.8.0 - in format of a.b.c identifies LUN number. It's calculated as follows: c+8*b+128*a, thus your LUN is 64.

Please note that all above is true for fcparray driver (volume set addressing mode). If driver bound is fcpdev, then device's SCSI Id is 8 and LUN is 0 (assuming it's a disk within disk enclosure, for example, in FC10 or DS2405)
Eugeny