Skip to contentSkip to conversation

Storage - redundant path failover / failback - quo vadis linux?

DISCUSSION [email protected] 2 participants 2 messages May 18, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

Please respond to Christoph Biardzki <[email protected]>
To: [email protected]
cc:
Subject: Storage - redundant path failover / failback - quo vadis
linux?

Quoted 1 line

I was investigating redundant path failover with FibreChannel disk

devices

Quoted 3 lines

during the last weeks. The idea is to use a second, redundant path to a storage device when the first one fails. Ideally one could also implement load balancing with these paths.

I was looking at the same concepts lately. Not only from the view of the failover
side but also for the aspects of using this paths (maybe even more than one) for
the load balancing (which gets more important the more traffic goes to a device).

<snip>

Quoted 2 lines

- The "T3"-Patch for 2.2-Kernels which patches the sd-Driver und the Qlogic-FC-HBA-Driver. When you pull an FC-Cable on a host equiped with

two

Quoted 2 lines

HBAs the failover is almost immediate and an automatic failback (after "repairing") is possible

The drawback would be here (beside whether the load balancing is done there
or not) is that this limits the solution to a specific type of devices. One would have to have the same things in every device driver that wants to
support multiple paths.

Quoted 3 lines

- The "multipath"-Personality-patch for the md-Driver by Ingo Molnar (intergrated in the redhat 2.4.2-Kernel) You set up an md-device on two devices (which are actually the same physical device seen twice on

the

Quoted 3 lines

dual paths) and when the primary one fails, the system will access the other one. There seems to be no failback possibility, however, and the failover takes around 30s.

The same idea here. Maybe going one step further. Intstead of using md the idea
was to enhance the lvm to support multipathing. Since for lvm a physical device
can be any block device (supporting certain gendisk interfaces) the paths to the
device do not need to use the same physical interface (e.g. one path is fibre
channel, another one ethernet).
The overhead during normal operation (depending of course whether and how load
balancing is done) should be not much worse than the normal lvm operation (request
always have to be mapped from the logical volume to a physical volume - so this
adds just one other step). And since lvm keeps unique id's on its physical devices
even the detection could somehow be automatic... :)
The failover stuff won't be that easy. I don't know how one could detect the failure
of a path at this level fast enough. For now lvm itself doesn't care about an io
request as soon as it is dispatched to a physical device. First approach could be
to check the results of io requests and disable a path if there are too many failures.
Then from time to time try that path again an re-enable it as soon as there is success.
However, I think it could take rather long to be sure a path has failed (maybe that are
the 30s delay in md).

Quoted 5 lines

My question is which way is the more probable solution for future linux kernels?
The low-level-approach of the "T3"-patch requires changes to the scsi-drivers and the hardware-drivers but provides optimal communication between the driver and the hardware

Thinking about it: if there would be some sort of 'available' flag in the gendisk
structure, that would be updated by the low-level drivers. This could the used by
a high-level design to use or skip a failed device/path...
In the S/390 (or zSeries) environment the device drivers are even able to detect
a failing connection even if there is no data going to a device. That way the device
would be disabled even _before_ anybody tries to write...

Quoted 3 lines

The high-level-approach of the "multipath"-personality is hardware-independant but works very slowly. On the other hand I see no clear way how to check for availability of the (previously failed)

primary

Quoted 1 line

channel to automate a fail-back.

Well, slower, but I think there will be many that take that performance loss already
by using lvm or md (for the benefit of flexible/large filesystems) this approach would
add failover while beeing IMHO only a little less performant.

<snip>

Stefan

Linux for eServer development, IBM Germany
[email protected]
----------------------------------------------------------------------------------

When all other means of communication fail, try words.

#1 lore raw
Quoted 6 lines · At 9:03 AM +0200 2001-05-18, [email protected] wrote:
Quoted 5 lines

My question is which way is the more probable solution for future linux kernels?
The low-level-approach of the "T3"-patch requires changes to the scsi-drivers and the hardware-drivers but provides optimal communication between the driver and the hardware

Quoted 8 lines

Thinking about it: if there would be some sort of 'available' flag in the gendisk structure, that would be updated by the low-level drivers. This could the used by a high-level design to use or skip a failed device/path... In the S/390 (or zSeries) environment the device drivers are even able to detect a failing connection even if there is no data going to a device. That way the device would be disabled even _before_ anybody tries to write...

Quoted 4 lines

The high-level-approach of the "multipath"-personality is hardware-independant but works very slowly. On the other hand I see no clear way how to check for availability of the (previously failed) primary channel to automate a fail-back.

Well, slower, but I think there will be many that take that performance loss already by using lvm or md (for the benefit of flexible/large filesystems) this approach would add failover while beeing IMHO only a little less performant.

The flag idea, or some equivalent way for the low-level driver to communicate to the multi-pathing level, seems exactly right. I'm guessing that provision needs to be made for some external-device-dependent means of signalling both failure and recovery. There are potentially side-channel/out-of-band means to communicate this kind of status from specific devices.

Signature · 1 line
/Jonathan Lundell.