Operating System - HP-UX
1752782 Members
6153 Online
108789 Solutions
New Discussion юеВ

Re: How to find the LUN path and storage box details (target).

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to find the LUN path and storage box details (target).

Hi All,

I am new to HP-UX. I have some questions on finding LUN path and storage box details (target).

1)How to find if we are having multiple paths to single LUN?

2)How to find, if two LUNs are belonging to same storage box?

3)How to find SAN swith details of a LUN?

4)How to find storage box details of a LUN?
6 REPLIES 6
Torsten.
Acclaimed Contributor
Solution

Re: How to find the LUN path and storage box details (target).

Most array vendors have special tools to get all this information easily, e.g. powerpath, xpinfo, evainfo ...

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!   
S. Ney
Trusted Contributor

Re: How to find the LUN path and storage box details (target).

What version OS of hp-ux?

what type of storage array? Like Torsten mentioned different storage types have different tools to use.
dicko_2
Occasional Visitor

Re: How to find the LUN path and storage box details (target).

Hi all

managing lun's from 11i v2 or 11i v3 could be different. Once again knowing t he version is important.

Regards/
RajuD
Frequent Advisor

Re: How to find the LUN path and storage box details (target).

Post ioscan -fnC disk output..
тАЬEducation is our passport to the future, for tomorrow belongs to those who prepare for it today.тАЭ
Michael Leu
Honored Contributor

Re: How to find the LUN path and storage box details (target).

HP-UX 11.31 supremacy:

1) ioscan -m hwpath

2) scsimgr -p get_attr -a vid -a pid -a serial_number -a device_file all_lun | sort

3) ioscan -fnkNCtgtpath

4) scsimgr get_info -D /dev/rdisk/disk30
senthil_kumar_1
Super Advisor

Re: How to find the LUN path and storage box details (target).

Hi All,

I have executed following commands in one HP-UX 11.31 server:

1)# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/6/0/0/0/0/4/0/0/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 1 0/6/0/0/0/0/4/0/0/0.0.1 sdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/dsk/c0t0d1 /dev/rdsk/c0t0d1
disk 4 255/1/0.0.0 sdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0



2)# ioscan -funNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 2 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk2 /dev/disk/disk2_p2 /dev/rdisk/disk2 /dev/rdisk/disk2_p2
/dev/disk/disk2_p1 /dev/disk/disk2_p3 /dev/rdisk/disk2_p1 /dev/rdisk/disk2_p3
disk 3 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk3 /dev/rdisk/disk3
disk 5 64000/0xfa00/0x3 esdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV
/dev/disk/disk5 /dev/rdisk/disk5



3)# ioscan -m hwpath
Lun H/W Path Lunpath H/W Path Legacy H/W Path
====================================================================
64000/0xfa00/0x0
0/6/0/0/0/0/4/0/0/0.0x0.0x0
64000/0xfa00/0x1
0/6/0/0/0/0/4/0/0/0.0x0.0x4000000000000000 0/6/0/0/0/0/4/0/0/0.0.0
64000/0xfa00/0x2
0/6/0/0/0/0/4/0/0/0.0x0.0x4000000000000001 0/6/0/0/0/0/4/0/0/0.0.1
64000/0xfa00/0x3
64000/0x0/0x0.0x0.0x0 255/1/0.0.0




4)# scsimgr -p get_attr -a vid -a pid -a serial_number -a device_file all_lun | sort
"HP ":"LOGICAL VOLUME ":"PAFGL0N9SWO0AP":/dev/rdisk/disk2
"HP ":"LOGICAL VOLUME ":"PAFGL0N9SWO0AP":/dev/rdisk/disk3
"HP ":"P400 ":"PAFGL0N9SWO0AP":/dev/pt/pt0
"TEAC ":"DVD-ROM DW-224EV"::/dev/rdisk/disk5




5)# ioscan -fnkNC tgtpath
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
tgtpath 0 0/6/0/0/0/0/4/0/0/0.0x0 estp CLAIMED TGT_PATH parallel_scsi target served by ciss driver, target port id 0x0
tgtpath 1 64000/0x0/0x0.0x0 estp CLAIMED TGT_PATH usb target served by usb_ms_scsi driver, target port id 0x0



6)# scsimgr get_info -D /dev/rdisk/disk3

STATUS INFORMATION FOR LUN : /dev/rdisk/disk3

Generic Status Information

SCSI services internal state = ONLINE
Device type = Direct_Access
EVPD page 0x83 description code = 1
EVPD page 0x83 description association = 0
EVPD page 0x83 description type = 3
World Wide Identifier (WWID) = 0x600508b100104e3953574f3041500001
Serial number = "PAFGL0N9SWO0AP"
Vendor id = "HP "
Product id = "LOGICAL VOLUME "
Product revision = "5.20"
Other properties = ""
SPC protocol revision = 2
Open count (includes chr/blk/pass-thru/class) = 1
Raw open count (includes class/pass-thru) = 0
Pass-thru opens = 0
LUN path count = 1
Active LUN paths = 1
Standby LUN paths = 0
Failed LUN paths = 0
Maximum I/O size allowed = 1048576
Preferred I/O size = 1048576
Outstanding I/Os = 0
I/O load balance policy = round_robin
Path fail threshold time period = 0
Transient time period = 120
Tracing buffer size = 1024
LUN Path used when policy is path_lockdown = NA
LUN access type = NA
Asymmetric logical unit access supported = No
Asymmetric states supported = NA
Preferred paths reported by device = No
Preferred LUN paths = 0

Driver esdisk Status Information :

Capacity in number of blocks = 1146733360
Block size in bytes = 512
Number of active IOs = 0
Special properties =
Maximum number of IO retries = 45
IO transfer timeout in secs = 30
FORMAT command timeout in secs = 86400
START UNIT command timeout in secs = 60
Timeout in secs before starting failing IO = 120
IO infinite retries = false



My Questions:

1)Explain me the purpose of each command?

2)How to use above details to followings?

i)How to find if we are having multiple paths to single LUN?

ii)How to find, if two LUNs are belonging to same storage box?

iii)How to find SAN swith details of a LUN?

iv)How to find storage box details of a LUN?