[PATCH v2 0/6] Two multipath features.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patchset implements two features that I had requests for. The first
commit adds the ability for multipath to control the scsi max_retries
sysfs setting. This is useful for instances where a path hangs when
attempting IO, but the path checker completes successfully. It allows
the multipath device to fail quicker. When it's used like this it needs
to be paired with the shaky path detection options, since multipathd
will restore the path on the next checker run.

The rest of the patches add the auto_resize option. This option allows
users to control when multipathd will automatically resize a device, if
it sees that all of its path devices have been resized. By default it is
set to "never" and multipath behaves like it always has, where users
need to manually resize multipath devices after all the paths have been
resized.

Differences from v1 (all from suggestions by Martin Wilck):
1/7: make the option default section only. used max_retries specific
     enums, and clarified man page entry.
3/7: Assume path size hasn't changed if we fail to get it from sysfs.
6/7: make the option default section only. removed "multipath -r"
     mention in man page. Fixed whitespace issue
7/7: removed

Benjamin Marzinski (6):
  libmultipath: Add max_retries config option
  libmutipath: Retain device size if sysfs_get_size fails.
  multipathd: check and update all paths when in cli_resize
  multipathd: move post-reloading commands into resize_map()
  multipathd: move resize_map() to multipathd/main.c
  multipathd: Add auto_resize config option

 libmultipath/config.h         |  2 ++
 libmultipath/defaults.h       |  1 +
 libmultipath/dict.c           | 63 +++++++++++++++++++++++++++++++++
 libmultipath/dict.h           |  1 +
 libmultipath/discovery.c      | 41 +++++++++++++++++++++-
 libmultipath/structs.h        | 13 +++++++
 libmultipath/sysfs.c          |  1 -
 multipath/multipath.conf.5.in | 29 +++++++++++++++
 multipathd/cli_handlers.c     | 66 ++++++++++++-----------------------
 multipathd/main.c             | 57 ++++++++++++++++++++++++++++++
 multipathd/main.h             |  2 ++
 11 files changed, 230 insertions(+), 46 deletions(-)

-- 
2.41.0





[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux