Disk Enclosures
cancel
Showing results for
Did you mean:

## How to figure out the LUN Number of an XP disk from xpinfo

SOLVED
Go to solution
Honored Contributor

## How to figure out the LUN Number of an XP disk from xpinfo

If a disk/lun is reported by xpinfo say:

target 0f
lun 02

what will be its LUN Number as assigned in CV?
Hakuna Matata.
3 REPLIES 3
Honored Contributor

## Re: How to figure out the LUN Number of an XP disk from xpinfo

Finally figured it out:

Target f (dec 15) x 8 = 120 + Lun 2 = LUN 122

LUN 122 is target f lun 2.

Every 8 LUNs effect an increase in the target value.

Hakuna Matata.
Honored Contributor

## Re: How to figure out the LUN Number of an XP disk from xpinfo

Hmmm not quite:

The following is supposed to be LUN 1023

# xpinfo -f /dev/rdsk/c140t15d6

Device File : /dev/rdsk/c140t15d6 Model : XP???
Port : CL1A Serial # : 00030015
Target : 0f Code Rev : 5001
LUN : 06 Subsystem : 0004
CU:LDev : 00:20 CT Group : ---
Type : OPEN-V CA Volume : SMPL
Size : 100 MB BC0 (MU#0) : SMPL
ALPA : 00 BC1 (MU#1) : SMPL
Loop Id : 7e BC2 (MU#2) : SMPL
SCSI Id : --- RAID Level : RAID1
FC-LUN : 0000753f00000020 RAID Group : 2-1
Port WWN : 60060e8004753f00 ACP Pair : 2
Disk Mechs : --- --- --- ---

If the formula as I assumed is true, then target should be 127 Dec or 7F Hex. But xpinfo shows target as 0f.

Any ideas of a fool proof formula?

Hakuna Matata.
Acclaimed Contributor
Solution

## Re: How to figure out the LUN Number of an XP disk from xpinfo

Nelson, you are on the right way. Beyond this value, the "x" in cxtydz will be increased. The correct formula is "bit-based".

http://us-support3.external.hp.com/iv/data/documents/DE_SW_UX_swrec_EN_01_E/Fibre
Channel.pdf

http://www.hp.com/hpbooks/prentice/chapters/0130102229.pdf

Hope this helps!
Regards
Torsten.

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

__________________________________________________