Skip to content

san_path_err & multipath ANA support

Martin Wilck dm-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest20 patches 0 repliesNew
  2. v119 patches 16 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20libmultipath: Increase SERIAL_SIZE to 128 byteslibmultipath/structs.h+1 -10 replies
2/20multipath.conf.5: explain "shaky" path detectionmultipath/multipath.conf.5+53 -60 replies
3/20libmultipath: propsel: don't print undefined valueslibmultipath/propsel.c+24 -180 replies
4/20Revert "multipath-tools: discard san_path_err_XXX feature"libmultipath/config.c libmultipath/config.h libmultipath/configure.c +6 more+258 -00 replies
5/20multipathd: marginal_path overrides san_path_errlibmultipath/configure.c libmultipath/propsel.c libmultipath/structs.h +1 more+88 -160 replies
6/20multipath.conf.5: man page fixes for san_path_err_xymultipath/multipath.conf.5+26 -90 replies
7/20setup_map: wait for pending path checkers to finishlibmultipath/configure.c+63 -20 replies
8/20libmultipath: add ARRAY_SIZE helperlibmultipath/util.h tests/hwtable.c+2 -10 replies
9/20libmultipath: make close_fd() a common helperlibmultipath/sysfs.c libmultipath/util.c libmultipath/util.h +1 more+7 -90 replies
10/20libmultipath: restore PG prio in update_multipath_stringslibmultipath/structs_vec.c+8 -00 replies
11/20multipathd: don't check foreign paths every tickmultipathd/main.c+10 -10 replies
12/20libmultipath: add files from nvme-cli for NVMe supportlibmultipath/nvme/argconfig.h libmultipath/nvme/json.h libmultipath/nvme/linux/nvme.h +4 more+2843 -00 replies
13/20libmultipath: add wrapper library for nvme ioctlslibmultipath/Makefile libmultipath/nvme-lib.c libmultipath/nvme-lib.h+85 -10 replies
14/20multipath-tools: add ANA support for NVMe devicelibmultipath/prio.h libmultipath/prioritizers/Makefile libmultipath/prioritizers/ana.c +2 more+523 -00 replies
15/20libmultipath: ANA prioritzer: use nvme wrapper librarylibmultipath/prioritizers/Makefile libmultipath/prioritizers/ana.c libmultipath/prioritizers/ana.h+143 -4180 replies
16/20libmultipath: detect_prio: try ANA for NVMelibmultipath/Makefile libmultipath/nvme-lib.c libmultipath/nvme-lib.h +2 more+41 -100 replies
17/20libmultipath/foreign/nvme: use failover topologylibmultipath/foreign/nvme.c+48 -440 replies
18/20libmultipath/foreign/nvme: show ANA statelibmultipath/foreign/nvme.c+36 -70 replies
19/20libmultipath/foreign/nvme: indicate ANA supportlibmultipath/foreign/Makefile libmultipath/foreign/nvme.c+46 -30 replies
20/20libmultipath/foreign/nvme: fix ouput for "%n" wildcardlibmultipath/foreign/nvme.c+4 -30 replies

Reviews trailers per patch

1 of 20 patches has a Reviewed-by or Acked-by.

PatchMartin Wilck
1/20R-b
2/20
3/20
4/20
5/20
6/20
7/20
8/20
9/20
10/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/20] san_path_err & multipath ANA support

Hi Christophe,

this series consists of 3 parts. The first part improves the documentation on the current approaches to "shaky" or "marginal" path detection, and re-introduces the previously removed "san_path_err_xy" approach, which has been prematurely removed IMO. At the time, I thought that it was superseded by the "marginal path" algorithm, but I have my issues with latter (hopefully subject of a follow-up series), and I believe the "medium" complexity of the san_path_err code actually has its merits. But to be honest, my strongest reason to re-add it is that I have to continue to support it in SLES for some time to come.

The second part accumulates a few bug fixes.

The third part introduces NVMe ANA support to multipath-tools, based on the original patch from Li Jie of Huawei (#14). Instead of copy/pasting some code from nvme-cli, as Li Jie did, I decided to copy some nvme-cli code unmodified to our repo, and create a small wrapper around it. I took care not increase the generated binaries with code we don't need. I added detect_prio on top of it, and also added ANA support for the "foreign" code for native NVMe multipath. BTW: Instead of applying patch #12, it would probably be possible to simply add https://github.com/linux-nvme/nvme-cli as a submodule to multipath- tools. I haven't tried that yet.

One thing to note: in dm-multipath mode, multipathd can now read the ANA properties and derive prio values. But it can't react on updates from the storage so far, because the kernel doesn't generate events to user space if this happens. I haven't decided how to tackle this problem yet. Hints and comments are welcome. For now, I guess it's sufficient that multipathd makes prio updates in the checker loop.

Cheers,
Martin

Changes wrt v1:
- 15/20: Model ANA priorities after ALUA (Hannes)
- 15/20: Remove ana.h (Ben)
- 15/20: Remove check if device is NVMe (Ben)
- 20/20: Another minor fix for the NVMe foreign library

Kyle Mahlkuch (1):
libmultipath: Increase SERIAL_SIZE to 128 bytes

lijie (1):
multipath-tools: add ANA support for NVMe device

Martin Wilck (18):
multipath.conf.5: explain "shaky" path detection
libmultipath: propsel: don't print undefined values Revert "multipath-tools: discard san_path_err_XXX feature"
multipathd: marginal_path overrides san_path_err multipath.conf.5: man page fixes for san_path_err_xy
setup_map: wait for pending path checkers to finish
libmultipath: add ARRAY_SIZE helper
libmultipath: make close_fd() a common helper
libmultipath: restore PG prio in update_multipath_strings
multipathd: don't check foreign paths every tick
libmultipath: add files from nvme-cli for NVMe support
libmultipath: add wrapper library for nvme ioctls
libmultipath: ANA prioritzer: use nvme wrapper library
libmultipath: detect_prio: try ANA for NVMe libmultipath/foreign/nvme: use failover topology libmultipath/foreign/nvme: show ANA state libmultipath/foreign/nvme: indicate ANA support libmultipath/foreign/nvme: fix ouput for "%n" wildcard

 libmultipath/Makefile              |   18 +-
 libmultipath/config.c              |    3 +
 libmultipath/config.h              |    9 +
 libmultipath/configure.c           |   86 +-
 libmultipath/dict.c                |   39 +
 libmultipath/foreign/Makefile      |    2 +-
 libmultipath/foreign/nvme.c        |  187 ++--
 libmultipath/nvme-lib.c            |   49 +
 libmultipath/nvme-lib.h            |   39 +
 libmultipath/nvme/argconfig.h      |   99 ++
 libmultipath/nvme/json.h           |   87 ++
 libmultipath/nvme/linux/nvme.h     | 1450 ++++++++++++++++++++++++++++
 libmultipath/nvme/nvme-ioctl.c     |  869 +++++++++++++++++
 libmultipath/nvme/nvme-ioctl.h     |  139 +++
 libmultipath/nvme/nvme.h           |  163 ++++
 libmultipath/nvme/plugin.h         |   36 +
 libmultipath/prio.h                |    1 +
 libmultipath/prioritizers/Makefile |    5 +
 libmultipath/prioritizers/ana.c    |  232 +++++
 libmultipath/propsel.c             |  151 ++-
 libmultipath/propsel.h             |    3 +
 libmultipath/structs.h             |   30 +-
 libmultipath/structs_vec.c         |    8 +
 libmultipath/sysfs.c               |    5 -
 libmultipath/util.c                |    5 +
 libmultipath/util.h                |    3 +
 multipath/main.c                   |    4 -
 multipath/multipath.conf.5         |  141 ++-
 multipathd/main.c                  |  105 +-
 tests/hwtable.c                    |    2 +-
 30 files changed, 3865 insertions(+), 105 deletions(-)
 create mode 100644 libmultipath/nvme-lib.c
 create mode 100644 libmultipath/nvme-lib.h
 create mode 100644 libmultipath/nvme/argconfig.h
 create mode 100644 libmultipath/nvme/json.h
 create mode 100644 libmultipath/nvme/linux/nvme.h
 create mode 100644 libmultipath/nvme/nvme-ioctl.c
 create mode 100644 libmultipath/nvme/nvme-ioctl.h
 create mode 100644 libmultipath/nvme/nvme.h
 create mode 100644 libmultipath/nvme/plugin.h
 create mode 100644 libmultipath/prioritizers/ana.c
Signature · 1 line
2.19.2