Operating System - HP-UX
1752563 Members
4807 Online
108788 Solutions
New Discussion

Re: The output of ioscan between the lun h/w paths and their lun_ids

 
liuyl_it
Frequent Advisor

The output of ioscan between the lun h/w paths and their lun_ids

With Agile mode in HP-UX 11i v3, is there a way to keep ioscan in order between the lun h/w paths and their lun_ids in the lunpath h/w paths?
Notes: under most circumstances, it seems that the lun h/w paths remain to be ordered whereas their corresponding lun_ids are unordered!

For example: 

#
# ioscan -m hwpath
Lun H/W Path Lunpath H/W Path Legacy H/W Path
====================================================================
64000/0xfa00/0x0
0/4/1/0.0x82b7cf5a732c045.0x0 0/4/1/0.0.0.0.0
64000/0xfa00/0x2c
0/6/1/0.0x201894049cd52480.0x4002000000000000 0/6/1/0.1.90.0.0.0.2
64000/0xfa00/0xd0
0/6/1/0.0x201894049cd52480.0x4001000000000000 0/6/1/0.1.90.0.0.0.1
64000/0xfa00/0xd1
0/6/1/0.0x201894049cd52480.0x4004000000000000 0/6/1/0.1.90.0.0.0.4
64000/0xfa00/0xd2
0/6/1/0.0x201894049cd52480.0x4003000000000000 0/6/1/0.1.90.0.0.0.3

2 REPLIES 2
Mani_Np
HPE Pro

Re: The output of ioscan between the lun h/w paths and their lun_ids

The ioscan order is based on "Lun H/W Path", Lun HW Path is created in the order of presenting the disk from storage to server. First presented disk will have lowest "Lun H/W Path".

In this case, Lun id 1 seems to be presented to server after Lun id 2 and hence the "Lun H/W Path" is lower for Lun id 2.

If you really require to change this order, you may need to unpresent the LUNs from storage, rmsf the device files and present back the LUNs in LUN id order.

Regards,
Manikandan
I work for HPE

Accept or Kudo

liuyl_it
Frequent Advisor

Re: The output of ioscan between the lun h/w paths and their lun_ids

Is there another more feasible way to resolve this problem, such as ioinit infile, because it is too impossible for us to manually map & ioscan one by one for hundreds of all the luns!