Operating System - HP-UX
1753304 Members
6202 Online
108792 Solutions
New Discussion юеВ

Re: device to array mapping

 
anidil
Occasional Advisor

device to array mapping

Guys

I have a bunch luns coming from two different EVAs. I am having hard time in identifying which device is from which array. Could somebody give some idea?

I know the WWN of both the arrays. Attaching IOSCAN and fcmsutil output

Thanks
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: device to array mapping

Shalom,

11.31 only.

ioscan -m hwpath

ioscan -m dsf

The first command includes hardware path and WWN. That should help you sort it out.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
BUPA IS
Respected Contributor

Re: device to array mapping

hello
Since you are on 11.31
ioscan -P wwid -Cdisk will list all the world wide names and
ioscan -m dsf will list the old to new name mappings.
Please see man ioscan for details and
also have a read of man lvm and man 7 intro which explain how the disk names are used.

I hope this helps
mike
Help is out there always!!!!!
Vishu
Trusted Contributor

Re: device to array mapping

Hi anidil,

**** I have a bunch luns coming from two different EVAs. *********


you have two FC cards at path 0/3/1/0 and 0/7/1/0. so simply you can know that the LUNs coming from 0/3/1/0 are coming from 1st array and from 0/7/1/0 are coming from 2nd array. Because one FC is connected to one array only.

TTr
Honored Contributor

Re: device to array mapping

Every storage array comes with utilities that you load and run on the server OS to get a array-LUN to OS-disk mapping. I don't work with EVAs but I think the commandView/EVA and/or something called sssu is what you need to install on the server. Search on the HP site for details.

anidil
Occasional Advisor

Re: device to array mapping

Hi Vishnu,

Normally both arrays are zoned to both the HBAs. Otherwise how do we get redundancy?

Thanks
Torsten.
Acclaimed Contributor

Re: device to array mapping

I would suggest to use evainfo.

# evainfo
usage: evainfo [-a|-d ] [-l] [-f fmt][-u KB|MB|GB][-w [-W][-g
]
-a : Display information for all EVA Luns presented to this host.
-d : Display information for the specified EVA Lun.
-l : Display information in long/full format.
-v : Display EVAInfo tool version details.
-f : Specify output format. The supported values for are:
tab (default)
csv
-u : Specify output format for Capacity {KB|MB|GB}, default is MB.
-W : Collate output based on WWN of Luns.
-w : Display information for the specified Lun WWN.
-g : Use SCSI generic (sg) interface on Linux.
-h : Help

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!   
Tim Nelson
Honored Contributor

Re: device to array mapping

Another handy trick.

your HW address will indicate what eva by which port it is connected to on the switch.

e.g.
0/2/1/0.10.0.0.0.1 EVA plugged into port 0
or
0/7/1/0.20.16.0.0.1 EVA plugged into port 16
anidil
Occasional Advisor

Re: device to array mapping

Hi Tim for the cool trick. This helps.

Thanks to other also who suggested new 11.31 commands. I used below commands to make a correlation.

-) ioscan -m lun /dev/rdisk/disk###

-) ioscan -m dsf /dev/rdisk/disk###
anidil
Occasional Advisor

Re: device to array mapping

Method 1)

Map the switch port # from the hardware path to the port where the array is connected. So, if you know which array is connected to the specific port, then we know the device corresponding to that hardware path belongs to that array.

for e.g: 12 is the switch port where one of the EVA port is connected and I know which array is plugged on to FC switch port 12.

disk 129 0/7/1/0.39.12.0.0.0.7 sdisk

Method 2) Run below commands and make a correlation if you know EVA controller WWW port numbers.

-) ioscan -m lun /dev/rdisk/disk###

-) ioscan -m dsf /dev/rdisk/disk###

Thanks