Skip to contentSkip to conversation

LSF: Multipathing and path checking question

DISCUSSION [email protected] 2 participants 2 messages Apr 20, 2009 – Apr 21, 2009 1 message not in the archive Device mapper

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Just a note or two:

Quoted 11 lines

My proposal is to handle this in several stages:

- path fails
-> Send out netlink event
-> start dev_loss_tmo and fast_fail_io timer
-> fast_fail_io timer triggers: Abort all oustanding I/O with
DID_TRANSPORT_DISRUPTED, return DID_TRANSPORT_FAILFAST for any future I/O, and send out netlink event.
-> dev_loss_tmo timer triggers: Remove sdev and cleanup rport.
netlink event is sent implicitely by removing the sdev.

Quoted 3 lines

Multipath would then interact with this sequence by:

- Upon receiving 'path failed' event: mark path as 'ghost' or

'blocked',

Quoted 1 line

ie no I/O is currently possible and will be queued (no path switch

yet).

Quoted 1 line

- Upon receiving 'fast_fail_io' event: switch paths and resubmit

queued I/Os

Quoted 1 line

- Upon receiving 'path removed' event: remove path from internal

structures,
update multipath maps etc.

This makes perfect sense to me. Are we going to allow the end-user to modify
those timers (not sure that's a good idea...)?

Quoted 1 line

The time between 'path failed' and 'fast_fail_io triggers' would then

be

Quoted 2 lines

able to capture any jitter / intermittent failures. Between 'fast_fail_io triggers' and 'path removed' the path would be held in

some

Quoted 1 line

sort of 'limbo' in case it comes back again, eg for maintenance/SP

update

Quoted 1 line

etc. And we can even increase this one to rather long timespans (eg

hours)

Quoted 3 lines

to give the admin enough time for a manual intervention.

I still like this proposal as it makes multipath interaction far

cleaner.

Quoted 1 line

And we can do away with path checkers completely here.

All true. Although I think the "long" timespans might be best measured in
minutes (say, default to 5 minutes) and should be configurable. It probably isn't
a good idea to leave that path dead for a very long time as a rule, even if
it's possible to do so. Maybe even some sort of userland override would be
worthwhile for scheduled maintenance?

Regards, Jerry

#2 lore raw
Quoted 20 lines · On Mon, Apr 20, 2009 at 12:25:23PM -0400, [email protected] wrote:

Just a note or two:

Quoted 11 lines

My proposal is to handle this in several stages:

- path fails
-> Send out netlink event
-> start dev_loss_tmo and fast_fail_io timer
-> fast_fail_io timer triggers: Abort all oustanding I/O with
DID_TRANSPORT_DISRUPTED, return DID_TRANSPORT_FAILFAST for any future I/O, and send out netlink event.
-> dev_loss_tmo timer triggers: Remove sdev and cleanup rport.
netlink event is sent implicitely by removing the sdev.

Quoted 3 lines

Multipath would then interact with this sequence by:

- Upon receiving 'path failed' event: mark path as 'ghost' or

'blocked',

Quoted 1 line

ie no I/O is currently possible and will be queued (no path switch

yet).

Quoted 1 line

- Upon receiving 'fast_fail_io' event: switch paths and resubmit

Quoted 8 lines

queued I/Os

Quoted 1 line

- Upon receiving 'path removed' event: remove path from internal

structures,
update multipath maps etc.

This makes perfect sense to me. Are we going to allow the end-user to modify
those timers (not sure that's a good idea...)?

It seems to me that some customers really want their IO to failover quickly when a path goes down, and some really want to avoid path failovers for transient issues. As long as we set a sensible default, there doesn't seem much harm in making it configurable. sysfs will already keep people from setting it to something invalid.

Quoted 16 lines
Quoted 2 lines

The time between 'path failed' and 'fast_fail_io triggers' would then

be

Quoted 2 lines

able to capture any jitter / intermittent failures. Between 'fast_fail_io triggers' and 'path removed' the path would be held in

some

Quoted 1 line

sort of 'limbo' in case it comes back again, eg for maintenance/SP

update

Quoted 1 line

etc. And we can even increase this one to rather long timespans (eg

hours)

Quoted 3 lines

to give the admin enough time for a manual intervention.

I still like this proposal as it makes multipath interaction far

cleaner.

Quoted 1 line

And we can do away with path checkers completely here.

Quoted 10 lines

All true. Although I think the "long" timespans might be best measured in
minutes (say, default to 5 minutes) and should be configurable. It probably isn't
a good idea to leave that path dead for a very long time as a rule, even if
it's possible to do so. Maybe even some sort of userland override would be
worthwhile for scheduled maintenance?

I disagree, once the device is dropped, if it ever comes back, there are many more limitations on multipathd's ability to start monitoring it again. If you lost a cable that killed your access to your multipathed root filesystem, and the you didn't get the cable hooked back up before your device disappeared, I don't see how multipathd would be able to to restore access. Am I missing something?

However, if we make dev_loss_tmo configurable too, then if people really want their failed devices to go away quickly, they're free to change it.

-Ben

Quoted 7 lines

Regards, Jerry

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