I may need to power-cycle a SAN and i'm looking to avoid downtime. I have some options to essentially copy live LUNs from one SAN to another. Currently i have a single iSCSI SAN and i connect to it using iscsi (of course) multipathd.
I'm considering buying a duplicate SAN - i would like to connect to that in the same way. the way i understand the the multipath.conf directives, my devices {} section acts as a filter of sorts - in this case it would expose both SANs to the host.
I figure that the wwid presented to the host is enough globally distinguish LUNs/paths, but i've never had to do this before.
My basic question is :
- is it even possible to connect multiple SANs to a host without it having a fit (i suspect it is fine at the iSCSI level prior to involving multipath)?
Yes, you can connect multiple storage arrays to the same iscsi host. If you are using stock iscsi targets, you might get by without looking into multipath.conf at all. You do need to edit it if the array requires specific path checker or prioritizer.
If you have multipath running and the target is mounted through its device mapper (DM) device name
/dev/mapper/[WWID]_p1
or similar and you have enough RAM and a window of low filesystem load you could theoretically survive power cycling the array without any downtime. Though this should be tested in advance.If you replicate your data to a separate array, you will need to tell your applications when to switch from one array to the other. Multipath does not do that for you, instead it manages paths within networks with exactly one source (LUN) and one sink (host). It can manage multiple such networks within one host but no balancing between them.
Here is a case with two arrays connected to one host with one path each
You should access the volumes through
/dev/mapper/wwid1
and/dev/mapper/wwid2
to get MPIO involved.Here is another example, where the array has two controllers thereby the host can be connected to the array using two paths.
The volume can be accessed via
/dev/mapper/mpathb
sinceuser_friendly_names
is set toyes
in multipath.conf