- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ioscan - find LUN IDs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 01:21 AM
09-09-2004 01:21 AM
ioscan - find LUN IDs
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 01:36 AM
09-09-2004 01:36 AM
Re: ioscan - find LUN IDs
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 01:38 AM
09-09-2004 01:38 AM
Re: ioscan - find LUN IDs
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 01:44 AM
09-09-2004 01:44 AM
Re: ioscan - find LUN IDs
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 01:46 AM
09-09-2004 01:46 AM
Re: ioscan - find LUN IDs
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 01:51 AM
09-09-2004 01:51 AM
Re: ioscan - find LUN IDs
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 02:08 AM
09-09-2004 02:08 AM
Re: ioscan - find LUN IDs
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 02:22 AM
09-09-2004 02:22 AM
Re: ioscan - find LUN IDs
/opt/sanmgr/commandview/client/sbin/armdsp -a array-id will give you desired output.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 02:29 AM
09-09-2004 02:29 AM
Re: ioscan - find LUN IDs
armtopology hostname will show you lun and related device name with WWN and Serial numbers
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:32 AM
09-09-2004 03:32 AM
Re: ioscan - find LUN IDs
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:32 AM
09-09-2004 04:32 AM
Re: ioscan - find LUN IDs
-Karthik S S