System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

HSG80 Device file to LUN mapping

SOLVED
Go to solution

HSG80 Device file to LUN mapping

Hi,

I have an HSG80 disk array connected to a host via a FC network. I was wondering how to determine which Unit from from the disk array maps to which device file on the HP-UX 11.11 host.

For example, I have the following ioscan output:
disk 17 0/6/1/0.1.6.0.1.0.5 sdisk CLAIMED DEVICE DEC HSG80
/dev/dsk/c16t0d5 /dev/rdsk/c16t0d5

how do I determine what Unit on the HSG80 this maps to and vice versa?

I have made an educated guess that it is D133 on the HSG80 (based on size of LUN):
MINHSG01_B> show d133
LUN Uses Used by
------------------------------------------------------------------------------

D133 R6 (partition)
LUN ID: 6000-1FE1-000D-9E20-0009-1150-4753-017D
NOIDENTIFIER
Switches:
RUN NOWRITE_PROTECT READ_CACHE
READAHEAD_CACHE WRITEBACK_CACHE
MAX_READ_CACHED_TRANSFER_SIZE = 256
MAX_WRITE_CACHED_TRANSFER_SIZE = 256
Access:
SV101_AB1
State:
ONLINE to this controller
Not reserved
NOPREFERRED_PATH
Host Based Logging NOT Specified
Size: 63987451 blocks
Geometry (C/H/S): ( 31367 / 8 / 255 )

But how can I be sure? Is there a way to determine what LUN ID a disk is using in HP-UX? Or is there any way to be sure that this Unit maps to c16t0d5?

Thanks
- Andy
5 REPLIES
Torsten.
Acclaimed Contributor
Solution

Re: HSG80 Device file to LUN mapping

The end of the hardware path 1.0.5 is telling you: it is LUN 133.

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!   
Torsten.
Acclaimed Contributor

Re: HSG80 Device file to LUN mapping

How does it works?

This is the path

0/6/1/0.1.6.0.1.0.5

last 3 digits are the LUN: 1.0.5

5 dec = 101 bin
0 dec = 0000 bin
1 dec = 1 bin

1 0000 101 bin = 133 dec

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!   

Re: HSG80 Device file to LUN mapping

Of course, 1*128 + 0*8 + 5. thanks.

Is there no way to see what WW ID the disk is in HP-UX?
Torsten.
Acclaimed Contributor

Re: HSG80 Device file to LUN mapping

It is not hp-ux 11.31, right?

Other arrays (EVA, XP, VA) have special tools (evainfo, xpinfo), but HSG has not.

You can query with fcmsutil, but calculating the lun number may usually be enough.

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!   

Re: HSG80 Device file to LUN mapping

How can you tell from fcmsutil? I'm curious now :-)