HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

LUN/SCSI ID on 11iv3

 
SOLVED
Go to solution
Albert Smith_1
Regular Advisor

LUN/SCSI ID on 11iv3

Hey folks,
I was wondering how to determine the decimal LUN/SCSI ID for a disk. on 11iv2 there was a formula that would garner that information. But when I try to use that same formula on 11iv3 it gave the wrong ID's.

9 REPLIES
Torsten.
Acclaimed Contributor

Re: LUN/SCSI ID on 11iv3

Example?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: LUN/SCSI ID on 11iv3

Shalom,

How about you share the formula. Then maybe with a frame of reference and a few minutes I can give you a new formula.

11.31 uses built in multi pathing, which may be interfering with your formula's ability to do good calculations.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Albert Smith_1
Regular Advisor

Re: LUN/SCSI ID on 11iv3

This is a post I found on the 11iv2:

will explain as per the follwoing example..

disk 1623 0/0/1/1/0/4/0.2.4.0.0.15.7 sdisk CLAIMED DEVICE HP OPEN-E
/dev/dsk/c2t15d7 /dev/rdsk/c2t15d7
disk 239 0/0/1/1/0/4/0.2.4.0.1.0.0 sdisk CLAIMED DEVICE HP OPEN-E
/dev/dsk/c29t0d0 /dev/rdsk/c29t0d0

If you notice, the Calculation of the LUN number is done with the last 3 decimal digits in the H/W path. You have indeed used the correct formula to compute the LUN number. Ex: 0/0/1/1/0/4/0.2.4.0.0.15.7 whould yield me..

0*128 + 15*8 + 7 = 127

That is, LUN number 127.


Tim Nelson
Honored Contributor

Re: LUN/SCSI ID on 11iv3

It should not be any different on 11iv3..

What are you seeing ?

11iv3 uses the agile view in order to multipathing to work.

e.g. /dev/disk/disk1, disk2, disk3 etc..
ioscan -m dsf to see the relationship of agile name to device paths.

Albert Smith_1
Regular Advisor

Re: LUN/SCSI ID on 11iv3

disk 848 0/4/0/0/0/1.186.16.0.0.7.7 sdisk CLAIMED DEVICE FALCON IPSTOR DISK
/dev/dsk/c64t7d7 /dev/rdsk/c64t7d7


this disk should be lun 63

using the calculation of before it comes up as lun 112
Tim Nelson
Honored Contributor
Solution

Re: LUN/SCSI ID on 11iv3

0.7.7

8 * 7 = 56
56 + 7 = 63

??
Patrick Wallek
Honored Contributor

Re: LUN/SCSI ID on 11iv3

I think you formula is now being evaluated differently.

What it should be doing (with the 0.7.7) is:

(0*128)+(7*8)+7=
0+56+7=
63

What I think it is doing is:

8*(7+7)=
8*14=
112

If you have an automated process that is doing these calculation, you may need to add parenthesis to the formula to make sure things are evaluated as they should be.
Albert Smith_1
Regular Advisor

Re: LUN/SCSI ID on 11iv3

thanks I was doing the formula wrong it helps to have a another set of eyes on these things...
Albert Smith_1
Regular Advisor

Re: LUN/SCSI ID on 11iv3

Was doing formula wrong