1752290 Members
5053 Online
108786 Solutions
New Discussion юеВ

Re: lun ID

 
SOLVED
Go to solution
yash123
Regular Advisor

lun ID

Is LUN id and WWID is same. I am able to find WWID using scsimgr in 11.31.
Else please provide the command to find LUN id in all HP UX versions.
I know storage vendor specific commands like inq etc
9 REPLIES 9
Manix
Honored Contributor
Solution

Re: lun ID

The WWID is enough to replace a disk/LUN
on HP-UX what exactly you want to achieve
in this case ,please post

To get the WWWID the command is below

# scsimgr get_info all_lpt -D /dev/rdisk/disk1484
STATUS INFORMATION FOR LUN PATH : lunpath993
Generic Status Information

SCSI services internal state = STANDBY
Open close state = STANDBY
Protocol = fibre_channel
EVPD page 0x83 description code = 1
EVPD page 0x83 description association = 0
EVPD page 0x83 description type = 3
World Wide Identifier (WWID) = 0x600507680184000060000000000005d4===>



I am not very sure if you mean the LUN_NO
as lUN_ID

To get the LUN no which is a numerical
combination of the last three octets
of CTD number can be find as below
( for MSA ) ,the calculation may vary a
bit with array type.

an ioscan -fnCdisk will give something like:

disk 249 0/2/1/0.3.0.239.0.13.6 sdisk CLAIMED DEVICE HP MSA2312fc
/dev/dsk/c33t13d6 /dev/rdsk/c33t13d6

Taking the last 3 octets of the disk HW address,
0.13.6
you can calculate the LUN from the array by:

LUN= $(( 128*0 + 8*13 + 6 )) = 110

or generally by 128*3rd + 8*2nd + 1st


http://h30499.www3.hp.com/t5/System-Administration/LUN-details-with-mount-point/m-p/4780405#M390941

HP-UX been always lovable - Mani Kalra
yash123
Regular Advisor

Re: lun ID

Thanks for the reply
I am using the same method to find lun number.
I am preparing storage report and here I need unique lun number for each disk.
Manix
Honored Contributor

Re: lun ID

So you need LUN_NO & WWID to be precise & you
seems to be in right direction ,which ARRAY you
node has been connected to.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
yash123
Regular Advisor

Re: lun ID

we have EMC,HP-EVA
My simple doubt is lun id and wwid same?
Manix
Honored Contributor

Re: lun ID

It seems they are not same LUN_ID is a
a number assigned to the disk ..look @
the conversation below.

>>>EVA use the LUN ID for hosts.
because when you ioscan from the host, you will see the vdisk like cxtxdx.the number of txdx is calculated from this LUN ID.

http://h30499.www3.hp.com/t5/Disk-Array/EVA-LUN-numbers-and-Vdisks/m-p/4213872#M27351

HP-UX been always lovable - Mani Kalra
Emil Velez
Honored Contributor

Re: lun ID

on versions prior to 11.31 you need to use a utility from your Disk array provide.

seenivasan
Frequent Advisor

Re: lun ID

1.first take the VGname in bdf command and take the PV name:ex:vg-emc12-sap-archive
2.# vgdisplay -v vg-emc12-sap-archive | grep PV
Max PV 2048
Cur PV 1
Act PV 1
Max PE per PV 15459
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Used PV 1
PV Name /dev/disk/disk34
PV Status available
w218904dbss3001{root}:/root
# vgdisplay -v vg-emc12-sap-archive | grep PV
PV Name /dev/disk/disk34
gr lun_map -D /dev/rdisk/disk34 | grep Instance
Instance = 16
Instance = 29
details:16 or 29 that is the lunpath like if u have two qlogical drive it will show two path after that
# scsimgr get_attr -C lunpath -I 16 -a lunid

SCSI ATTRIBUTES FOR LUN PATH : lunpath16

name = lunid
current =0xc000000000000 (LUN # 12, Peripheral Addressing)
default =
saved =
LUN # 12
scsimgr get_attr -C lunpath -I (here u can give either 16 or 29 ) -a lunid
# scsimgr get_attr -C lunpath -I 29 -a lunid

SCSI ATTRIBUTES FOR LUN PATH : lunpath29

name = lunid
current =0xc000000000000 (LUN # 12, Peripheral Addressing)
default =
saved =
#

Regards,
Seenivasan
davesec
Advisor

Re: lun ID

You can also use the dadm utility from the hpuxtoos found at hpux dot ch.
basant
Frequent Advisor

Re: lun ID

its not working in my case
disk 24 0/3/0/0/0/0.214.1.239.0.0.6 sdisk CLAIMED DEVICE DGC CX3-80WDR5

/dev/dsk/c3t0d6 /dev/rdsk/c3t0d6

128*0+8*0+6=6
but #powermt display dev=all
is showing lun id is 256

Please tell me how it is possible
Basant Sharma