All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-devel] [PATCH] multipath -U: reduce log level of "adding new path" message
@ 2021-03-10 10:15 mwilck
  2021-03-10 19:30 ` Benjamin Marzinski
  0 siblings, 1 reply; 2+ messages in thread
From: mwilck @ 2021-03-10 10:15 UTC (permalink / raw)
  To: Christophe Varoqui, Benjamin Marzinski; +Cc: dm-devel, Martin Wilck

From: Martin Wilck <mwilck@suse.com>

The message

    3600a098000aad73f00000a3f5a275dc8: adding new path sdc

was meant to warn users in cases where multipathd hadn't obtained
information about a path device from udev, and found it later
in some multipath map. In regular operation, this may indicate
a problem with the udev db, stuck udev workers, or some race
between udev and multipathd. It could also be a normal situation,
e.g. after switching from the initrd to the root FS.

However, there's one mode of operation where this situation is normal:
the "check usable paths" mode (-C/-U). For performance reasons, multipath
doesn't do a full path discovery in this mode. It just reads the given
map. Thus encountering paths which aren't in pathvec is totally normal,
and will cause the above message for every path on every uevent for
a multipath device, which is highly confusing for users.

Reduce the log level of this message to 3. I think that's sufficient.
The reason I'd set it originall to level 2 was mainly that when I
worked on that code, I really didn't want to miss any of these messages.
---
 libmultipath/structs_vec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c
index 47b1d03..57cd88a 100644
--- a/libmultipath/structs_vec.c
+++ b/libmultipath/structs_vec.c
@@ -192,7 +192,7 @@ bool update_pathvec_from_dm(vector pathvec, struct multipath *mpp,
 						must_reload = true;
 						continue;
 					}
-					condlog(2, "%s: adding new path %s",
+					condlog(3, "%s: adding new path %s",
 						mpp->alias, pp->dev);
 					store_path(pathvec, pp);
 					pp->tick = 1;
-- 
2.29.2


--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


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

* Re: [dm-devel] [PATCH] multipath -U: reduce log level of "adding new path" message
  2021-03-10 10:15 [dm-devel] [PATCH] multipath -U: reduce log level of "adding new path" message mwilck
@ 2021-03-10 19:30 ` Benjamin Marzinski
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Marzinski @ 2021-03-10 19:30 UTC (permalink / raw)
  To: mwilck; +Cc: dm-devel

On Wed, Mar 10, 2021 at 11:15:38AM +0100, mwilck@suse.com wrote:
> From: Martin Wilck <mwilck@suse.com>
> 
> The message
> 
>     3600a098000aad73f00000a3f5a275dc8: adding new path sdc
> 
> was meant to warn users in cases where multipathd hadn't obtained
> information about a path device from udev, and found it later
> in some multipath map. In regular operation, this may indicate
> a problem with the udev db, stuck udev workers, or some race
> between udev and multipathd. It could also be a normal situation,
> e.g. after switching from the initrd to the root FS.
> 
> However, there's one mode of operation where this situation is normal:
> the "check usable paths" mode (-C/-U). For performance reasons, multipath
> doesn't do a full path discovery in this mode. It just reads the given
> map. Thus encountering paths which aren't in pathvec is totally normal,
> and will cause the above message for every path on every uevent for
> a multipath device, which is highly confusing for users.
> 
> Reduce the log level of this message to 3. I think that's sufficient.
> The reason I'd set it originall to level 2 was mainly that when I
> worked on that code, I really didn't want to miss any of these messages.
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
> ---
>  libmultipath/structs_vec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c
> index 47b1d03..57cd88a 100644
> --- a/libmultipath/structs_vec.c
> +++ b/libmultipath/structs_vec.c
> @@ -192,7 +192,7 @@ bool update_pathvec_from_dm(vector pathvec, struct multipath *mpp,
>  						must_reload = true;
>  						continue;
>  					}
> -					condlog(2, "%s: adding new path %s",
> +					condlog(3, "%s: adding new path %s",
>  						mpp->alias, pp->dev);
>  					store_path(pathvec, pp);
>  					pp->tick = 1;
> -- 
> 2.29.2

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


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

end of thread, other threads:[~2021-03-10 19:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 10:15 [dm-devel] [PATCH] multipath -U: reduce log level of "adding new path" message mwilck
2021-03-10 19:30 ` 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.