[dm-devel] [PATCH v5 15/22] libmultipath: implement find_multipaths_timeout

Hannes Reinecke hare at suse.de
Mon Apr 16 06:23:32 UTC 2018


On Sat, 14 Apr 2018 00:00:08 +0200
Martin Wilck <mwilck at suse.com> wrote:

> This makes the timeout for "find_multipaths smart" configurable.
> If the timeout has a negative value (default), it's applied only
> to "known" hardware which is either in the hwtable or in a "device"
> section in multipath.conf. For typical non-multipath hardware, which
> is not in the hwtable, a short timeout of 1s is used, so that boot
> delays caused by pointlessly waiting e.g. for SATA devices will be
> minimal.
> 
> It's expected that a "reasonable" timeout value depends less on the
> storage hardware itself but on other properties of the data center
> such as network latencies or distances. find_multipaths_timeout is
> therefore just a "defaults" section setting.
> 
> Signed-off-by: Martin Wilck <mwilck at suse.com>
> Reviewed-by: Benjamin Marzinski <bmarzins at redhat.com>
> ---
>  libmultipath/config.h      |  1 +
>  libmultipath/defaults.h    |  2 ++
>  libmultipath/dict.c        |  7 +++++++
>  libmultipath/propsel.c     | 25 +++++++++++++++++++++++++
>  libmultipath/propsel.h     |  1 +
>  libmultipath/structs.h     |  1 +
>  multipath/multipath.conf.5 | 18 ++++++++++++++++++
>  7 files changed, 55 insertions(+)
> 

Reviewed-by: Hannes Reinecke <hare at suse.com>

Cheers,

Hannes




More information about the dm-devel mailing list