Operating System - HP-UX
1855560 Members
16157 Online
104112 Solutions
New Discussion

How to get LUNPATH of a given Legacy cXtYdZ in HP-UX 11.31

 
Alzhy
Honored Contributor

How to get LUNPATH of a given Legacy cXtYdZ in HP-UX 11.31

I could get the LUNPATHS of an Agile Device via:

scsimgr lun_path -D /dev/disk/12345

And I can get the HW Path in the form:

Hardware path = 0/6/0/0/0/0/0/0/0/1.0x50060e8000c413f7.0x405d000 000000000


How can I get the LUN/HW Path for a cXtYdZ?

Traditional IOSCAN's HW PAth differ:

# ioscan -kf /dev/rdsk/c126t11d5
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 5224 0/6/0/0/0/0/0/0/0/1.6.217.0.0.11.5 sdisk CLAIMED DEVICE HITACHI DF600F




I am basically wanting to find out the HW Path as argument to scsimgr to set the preferred path to a HW PATh format that it accepts.

Hakuna Matata.
4 REPLIES 4
sujit kumar singh
Honored Contributor

Re: How to get LUNPATH of a given Legacy cXtYdZ in HP-UX 11.31

u can use the ioscan in various ways that shall suit u and u can combine the findings.


#ioscan -m hwpath
this will show the LUN HW path , Lunpath Hwpath and the legacy HW path.
#ioscan -m dsf
this will show the mappings of the Persistent DSFs to the legacy DSFs.
#ioscan -m lun /dev/disk/disk45
this shall show all the LUNpath hardware path assocaited with a DSF that u will specify.

sujit kumar singh
Honored Contributor

Re: How to get LUNPATH of a given Legacy cXtYdZ in HP-UX 11.31

hi

with the scsimgr command u can use the -H option followedby the HW_Path for passing a HW_PAth to the scsimgr command as an argument.
the hardware path that u specify with the -H option can be a Legacy HW path.



regards


Sujit
Alzhy
Honored Contributor

Re: How to get LUNPATH of a given Legacy cXtYdZ in HP-UX 11.31

Thanks for thine responses - game me a clue. And I finally cracked it. Here it is.

Problem: Find LUN HW Path for a given Legacy Dev cXtYdZ

Solution:

1.) Get Legacy HW Path of given cXtYdZ:

[ /root/HDS/TWEAK ]
root@goofy # ioscan -kf /dev/rdsk/c126t11d5
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 5224 0/6/0/0/0/0/0/0/0/1.6.217.0.0.11.5 sdisk CLAIMED DEVICE HITACHI DF600F



2) Use "ioscan -m hwpath" to get the new LUN HW Path that can be used as argument to Path Preferencing in SCSIMGR:

[ /root/HDS/TWEAK ]
root@goofy # ioscan -m hwpath -H 0/6/0/0/0/0/0/0/0/1.6.217.0.0.11.5
Lun H/W Path Lunpath H/W Path Legacy H/W Path
====================================================================
64000/0xfa00/0x580
0/6/0/0/0/0/0/0/0/1.0x50060e8000c413f7.0x405d000000000000 0/6/0/0/0/0/0/0/0/1.6.217.0.0.11.5


Bingo!

Legacy HW Path for c126t11d5 is:

0/6/0/0/0/0/0/0/0/1.6.217.0.0.11.5

And its LUN HW Path is:

0/6/0/0/0/0/0/0/0/1.0x50060e8000c413f7.0x405d000000000000


Note -- you need this process to script Path Preferencing that is required for partially supported Active Passive Arrays whose vendors are slow in providing compliant ALUA modules to HP-UX...


Hakuna Matata.
sujit kumar singh
Honored Contributor

Re: How to get LUNPATH of a given Legacy cXtYdZ in HP-UX 11.31

congrats sir'



sujit