Operating System - HP-UX
1748259 Members
3704 Online
108760 Solutions
New Discussion юеВ

Re: how to find out the lun id

 
SOLVED
Go to solution
ani007
Super Advisor

how to find out the lun id

Hi ALL,
I have to find out the LUN id from a HP-UX box. OS version 11.11.Powermt version is EMC powermt for PowerPath (c) Version 3.0.3.i have attached the o/p of powermt display dev=all.Could you please tell me how can i get it.I have root access. but i dont have any access to storage end.
9 REPLIES 9
Torsten.
Acclaimed Contributor

Re: how to find out the lun id

From hardware path:

0/2/0/0.97.4.19.0.0.=>0<= LUN 0
0/2/0/0.97.4.19.0.0.1 LUN 1
0/2/0/0.97.4.19.0.0.2 LUN 2
0/2/0/0.97.4.19.0.0.3 LUN 3
0/2/0/0.97.4.19.0.0.4 LUN 4
...
0/2/0/0.97.4.19.0.1.0 LUN 8
...

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!   
Modris Bremze
Esteemed Contributor

Re: how to find out the lun id

Or from the device file name e.g. /dev/dsk/c11t0d2 would indicate LUN 2 (t*8 + d = 0*8 + 2 = 2) and /dev/dsk/c11t2d2 would indicate LUN 18 (2*8 + 2 = 16).
Torsten.
Acclaimed Contributor

Re: how to find out the lun id

@skipz: How about your calculation for LUN, let's say 164?

I expect

x/x/x/.x.x...1.4.4

;-))

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!   
Modris Bremze
Esteemed Contributor

Re: how to find out the lun id

I think that this method works for this particular problem (as per the output in the attachment). This post had something similar mentioned in regard to disk device file names: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1091545 .
Turgay Cavdar
Honored Contributor
Solution

Re: how to find out the lun id

If solutions enabler is installed check with syminq -v . Inq utility also might show...
ani007
Super Advisor

Re: how to find out the lun id

Hi All, Thank you. This will show you the lun id in hexadecimal.
#inq -nodots -clar_wwn .. but unable to find the lun id in 10.20.
Torsten.
Acclaimed Contributor

Re: how to find out the lun id

See my first post:

0/2/0/0.97.4.19.0.1.0 LUN 8

====================^

Take the last "0" and convert into 3 digit binary:

000

then take the "1" and convert too:

0001 000 ==> 0001000bin = 8 dec

This is decimal 8 = LUN 8.

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!   
ani007
Super Advisor

Re: how to find out the lun id

Hi ALL, Thank you so much.
ani007
Super Advisor

Re: how to find out the lun id

I am closing this case