- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to find the LUN ID of a HPUX 11.31 11iv3 s...
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
Discussions
Discussions
Forums
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
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
тАО02-16-2010 11:53 AM
тАО02-16-2010 11:53 AM
I found this by downloading the "The Next Generation Mass Storage Stack" Manual for 11iv3
First step is to determine the LUN to DSF mapping
> ioscan -m lun
----snip-----
disk 25 64000/0xfa00/0xb esdisk CLAIMED DEVICE online FALCON IPSTOR DISK
0/4/0/0/0/0.0x2101001b323cacb9.0x4002000000000000
0/4/0/0/0/0.0x2101001b323cdbb7.0x4002000000000000
0/4/0/0/0/0.0x2101001b323c8abe.0x4002000000000000
0/4/0/0/0/0.0x2101001b323c6dba.0x4002000000000000
0/4/0/0/0/0.0x2101001b323a0ac3.0x4002000000000000
0/4/0/0/0/0.0x2101001b323c70ba.0x4002000000000000
0/4/0/0/0/0.0x2101001b323cd0bc.0x4002000000000000
0/4/0/0/0/0.0x2101001b323c47bd.0x4002000000000000
0/4/0/0/0/0.0x2101001b323c76be.0x4002000000000000
0/4/0/0/0/0.0x2101001b3230c99b.0x4002000000000000
0/4/0/0/0/0.0x2101001b323cc5b9.0x4002000000000000
0/4/0/0/0/0.0x2101001b3222a4d9.0x4002000000000000
0/4/0/0/0/1.0x2101001b323c4bb8.0x4002000000000000
0/4/0/0/0/1.0x2101001b323cddb1.0x4002000000000000
0/4/0/0/0/1.0x2101001b323c6dba.0x4002000000000000
0/4/0/0/0/1.0x2101001b323c70ba.0x4002000000000000
0/4/0/0/0/1.0x2101001b323cc5b9.0x4002000000000000
0/4/0/0/0/1.0x2101001b323c47bd.0x4002000000000000
0/4/0/0/0/1.0x2101001b323c01bd.0x4002000000000000
0/4/0/0/0/1.0x2101001b323c76be.0x4002000000000000
0/4/0/0/0/1.0x2101001b3230c99b.0x4002000000000000
0/4/0/0/0/1.0x2101001b323ae5c2.0x4002000000000000
0/4/0/0/0/1.0x2101001b323cd0bc.0x4002000000000000
0/4/0/0/0/1.0x2101001b3222a4d9.0x4002000000000000
/dev/disk/disk25 /dev/rdisk/disk25
Take one path of this map do get the lun id by the following
> scsimgr get_attr -H 0/4/0/0/0/1.0x2101001b3222a4d9.0x4002000000000000 lunid
SCSI ATTRIBUTES FOR LUN PATH : 0/4/0/0/0/1.0x2101001b3222a4d9.0x4002000000000000
name = lunid
current =0x4002000000000000 (LUN # 2, Flat Space Addressing)
default =
saved =
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 12:22 PM
тАО02-16-2010 12:22 PM
Solutionis it a question? I don't think so.
However, according to the docs the 0x4002 means
40 (based on binary values) Volume Set Addressing (Flat Space Addressing)
02 is the LUN number in hex.
This is for FC devices.
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 01:15 PM
тАО02-16-2010 01:15 PM
Re: How to find the LUN ID of a HPUX 11.31 11iv3 system
If you have for example something like
0/4/0/0/0/1....0.7.6
You convert the 6 into 3 binary digits
110
and the 7 into 4 binary digits
0111
and combine them
7_____6
0111 110
Then make this (0111110) a decimal:
it is LUN 62.
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 01:54 PM
тАО02-16-2010 01:54 PM
Re: How to find the LUN ID of a HPUX 11.31 11iv3 system
If this is EMC, consider using the inq tool to get more information.
ioscan -m dsf
ioscan -m hwpath
Might provide you easier to digest information.
If you like playing with awk, you can even write a script that depots all this to you.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 01:59 PM
тАО02-16-2010 01:59 PM
Re: How to find the LUN ID of a HPUX 11.31 11iv3 system
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 02:50 PM
тАО02-16-2010 02:50 PM
Re: How to find the LUN ID of a HPUX 11.31 11iv3 system
Or simply: echo $(( 7 * 8 + 6 ))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 10:19 PM
тАО02-16-2010 10:19 PM
Re: How to find the LUN ID of a HPUX 11.31 11iv3 system
in v3 you have to run the below command
#ioscan -m dsf
And let me know what you are looking for.
Regards,
Prasanth Thomas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2010 11:40 PM
тАО02-17-2010 11:40 PM
Re: How to find the LUN ID of a HPUX 11.31 11iv3 system
After finding the disk number you can use the below command.
#scsimgr get_info all_lpt -D /dev/rdisk/diskxx
Regards,
Prasanth Thomas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 06:15 AM
тАО02-18-2010 06:15 AM
Re: How to find the LUN ID of a HPUX 11.31 11iv3 system
But in the upcoming releases of HP-UX the legacy view will be removed and all you have is the agile view.