1827810 Members
1894 Online
109969 Solutions
New Discussion

ioscan - find LUN IDs

 
Karthik S S
Honored Contributor

ioscan - find LUN IDs

Hello,

I have one VA7410 and VA7400 connected to HP-UX box. VAs have 100s of LUNs with different IDs. But from the ioscan output I can not really find out the LUN ID as it lists the devices in a different format (Hardware path and CxTxDx). How do I relate a LUN ID to a device file?

Pl. help

Thanks,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
10 REPLIES 10
Jeff Schussele
Honored Contributor

Re: ioscan - find LUN IDs

Hi Karthik,

Well, we don't have any VA74xx systems here - just XPs.
But I believe the array??? commands are what you need specifically:
arraydsp -a array-id

If you don't know the array-id you'd use the arrayscan command to search for & display that info.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
David Child_1
Honored Contributor

Re: ioscan - find LUN IDs

Okay, here is the way it works;

Starting at cXt0d0 this would be LUN0 on your VA74xx. Increase the d# for each LUN up to 7. At that point you increment your t# and start back at d0.

Example;

You have 17 LUNs (0-25) on your VA7400

VA7400_LUN_# .... Server_Device_File
-------------------------------------
0 .............. cXt0d0
1 .............. cXt0d1
2 .............. cXt0d2
3 .............. cXt0d3
4 .............. cXt0d4
5 .............. cXt0d5
6 .............. cXt0d6
7 .............. cXt0d7
8 .............. cXt1d0
9 .............. cXt1d1
10 .............. cXt1d2
11 .............. cXt1d3
12 .............. cXt1d4
13 .............. cXt1d5
14 .............. cXt1d6
15 .............. cXt1d7
16 .............. cXt2d0

Of course your c# will depend on which controller you are looking at.

If there is an easier way I don't know it.

David
Karthik S S
Honored Contributor

Re: ioscan - find LUN IDs

Thank you Jeff and David.

But the problem here is that the VAs do not necessarily have LUNs numbered from 0 - x. It also has some LUNs starting from IDs 200 - 250 and so on. In this case it really becomes complicated to locate the LUNs :-(.

Any scripts please!!!

Thanks,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Jeff Schussele
Honored Contributor

Re: ioscan - find LUN IDs

Hi David,

I think most of us understand that's how it "generally" works on all arrays. BUT when it comes to EMC or XP arrays you also have "gatekeeper" devices that aren't "real" LUNs.
They have little or no size therefore they cannot be used as general storage.
What Karthik is looking for is the VA74xx equivalent of the EMC syminq or XP xpinfo commands. Where you can get all the info at once including LUN ID, device & size all in a single command. If I'm not mistaken, I believe the arraydsp command can do this.
Someone will correct me if I'm wrong.
Like I stated earlier, we only have EMC & XP arrays here at our sites...to date.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Karthik S S
Honored Contributor

Re: ioscan - find LUN IDs

Hi Jeff,

You are absolutely right! I am lookinf for some command like xpinfo which can show the LUN IDs and also the respective device files/hardwaer paths. When I had fewer LUNs I was able to manually figure them out. But with a large number of LUNs it is getting very difficult!

Also to configure the VAs I use "Command View SDM" (arm commands). But even this is of no use to find the finer details about the mapping. I also have autpath which again can't show these details. At least the Windows version of Autopath shows the LUN ID to Disk mapping!

I could not find arraydsp command!

Thanks,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Jeff Schussele
Honored Contributor

Re: ioscan - find LUN IDs

Well...it appears docs.hp.com is sorely lacking on man pages for the arm??? commands or VA74xx docs at all.
I did find that support for the VA7400 was added to SAM in Dec 2002.
You might check in SAM to see if it has anything you can use to ascertain the info you're looking for.
And as I was afraid, the VA74xx uses the arm commands & not the array commands. Oh well I gave it a shot.
Is there an armdisp or armdsp command on your system? If there is, it may give you what you want.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Uday_S_Ankolekar
Honored Contributor

Re: ioscan - find LUN IDs

you can use armdsp command to look for device file.

/opt/sanmgr/commandview/client/sbin/armdsp -a array-id will give you desired output.

-USA..
Good Luck..
Uday_S_Ankolekar
Honored Contributor

Re: ioscan - find LUN IDs

or else you can use armtopology command
armtopology hostname will show you lun and related device name with WWN and Serial numbers

-USA..
Good Luck..
Karthik S S
Honored Contributor

Re: ioscan - find LUN IDs

Well I managed to find an easier method! (Don't ask me how ;-), Obviously I didn't invent it)

Here is the formula,

Let us suppose the hardware path from ioscan is,

disk 508 0/5/1/0.108.20.19.1.15.2 sdisk CLAIMED DEVICE HP A6218A
/dev/dsk/c68t15d2 /dev/rdsk/c68t15d2

HW Path: 0/5/1/0.108.20.19.1.15.2

Last 3 dotted decimals = 1.15.2 (x.y.z)

To find the LUN ID:

lun number = (x * 128) + (y * 8) + z

i.e:

(1*128) + (15*8) + 2 = 250

Man, I love this formula!

Thanks for all your responses.

Thanks,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Karthik S S
Honored Contributor

Re: ioscan - find LUN IDs

Oops ... USA! I should have given you 10 points. armtopology works great too!

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn