You might want want to define device names in /etc/multipath.conf based on 
WWNs. Here's an example from one of my systems:

multipaths {
    multipath {
        wwid        360060e800544de00000044de00000068
        alias       disk0
    }
    multipath {
        wwid        360060e800544de00000044de00000069
        alias       disk1
    }
    multipath {
        wwid        360060e800544de00000044de0000006a
        alias       disk2
    }
}

Then, you will end up with devices under /dev/mpath with your alias names 
(which you can define to meet your needs).

Thanks,

Kevin

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Finnur Örn Guðmundsson
Sent: Wednesday, July 01, 2009 4:32 AM
To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
Subject: Re: [rhelv5-list] multipathing - determine where a drive comes from

On 1.7.2009 09:08, Tim Edwards wrote:
> After connecting one of our machines to a Fibre Channel switch I've seen
> various multipath devices appear as /dev/dm-0-5 and
> /dev/mapper/mpath1-4. I need to find out which one of our Sun Storagetek
> storage arrays these devices originate from, so I can work out which
> volume I'm about to re-partition.
>
> Thanks
>
> Tim Edwards
>
> _______________________________________________
> rhelv5-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/rhelv5-list
>    
Hi Tim,

I've never worked with a StorageTek system, but from our IBM SVC systems 
i can match the WWN ID i get from multipath -ll. For example:

mpath1 (360050768018b801fe000000000000151) dm-11 IBM,2145
[size=32G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
  \_ 0:0:0:1 sdb 8:16   [active][ready]
  \_ 1:0:0:1 sdl 8:176  [active][ready]
\_ round-robin 0 [prio=20][enabled]
  \_ 0:0:1:1 sdg 8:96   [active][ready]
  \_ 1:0:1:1 sdq 65:0   [active][ready]

I can take this WWN ID 360050768018b801fe000000000000151 and the 
management interface allows me to filter for it. On my EVA systems i can 
not filter for this but when i view the disk i see the WWN. You can also 
match dm-11 with /dev/dm-11....

Hope this helps.

Bgrds,
Finnur

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to