All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] fix issue of multipathd not tracking device
@ 2025-03-31 23:17 Benjamin Marzinski
  2025-03-31 23:17 ` [PATCH v2 1/3] multipathd: monitor new multipath dev even if we can't update it Benjamin Marzinski
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Benjamin Marzinski @ 2025-03-31 23:17 UTC (permalink / raw)
  To: Christophe Varoqui; +Cc: device-mapper development, Martin Wilck

I ran into an issue where multipathd wasn't tracking a multipath
device that was created by the multipath command. It turns out that if
multipathd fully initialized a path device, and that device later
goes offline and then a multipath device that could use that path is
created by multipath, multipathd will attempt to reload the device
to use the offline path, which will fail. This will cause it to not
track the multipath device at all.

The first patch fixes this. The second patch allows mutipathd to track
these offline paths that should belong to a device, and add them to
device once they come back online. The third patch is just a cleanup.

changes from v2
- 0002: Switch from tracking this state with pp->initialized to a new
        variable, as suggested by Martin Wilck. To make is so that
        multipathd can still show paths in this state without adding
        a new wildcard for it, add [offline] as a possible output for
        the %m (multipath device) path wildcard, for paths that
        couldn't be added to a multipath device because they are
        offline. Also constify a function parameter and add an
        explanitory comment as suggested by Martin.

Benjamin Marzinski (3):
  multipathd: monitor new multipath dev even if we can't update it
  multipathd: re-add paths skipped because they were offline
  multipathd: don't update paths in INIT_MISSING_UDEV

 libmultipath/print.c       |  5 +++-
 libmultipath/structs.h     |  1 +
 libmultipath/structs_vec.c |  5 ++++
 multipathd/main.c          | 60 ++++++++++++++++++++++++++++++++++++--
 multipathd/multipathd.8.in |  5 ++--
 5 files changed, 70 insertions(+), 6 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-02 18:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31 23:17 [PATCH v2 0/3] fix issue of multipathd not tracking device Benjamin Marzinski
2025-03-31 23:17 ` [PATCH v2 1/3] multipathd: monitor new multipath dev even if we can't update it Benjamin Marzinski
2025-03-31 23:17 ` [PATCH v2 2/3] multipathd: re-add paths skipped because they were offline Benjamin Marzinski
2025-04-02 16:42   ` Martin Wilck
2025-04-02 18:31     ` Benjamin Marzinski
2025-03-31 23:17 ` [PATCH v2 3/3] multipathd: don't update paths in INIT_MISSING_UDEV Benjamin Marzinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.