From 4d8fb10af29841f9ee62d8886227680dee6732a2 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Mon, 17 Jun 2024 16:38:19 -0500 Subject: [PATCH] vgchange: improve some lvmlockd lockstart messages Stop printing "Skipping global lock: lockspace not found or started" for vgchange --lockstart, since it's generally an inherent limitation that the global lock isn't available until after locking is started. Update the start delay warning to "a few seconds". --- lib/locking/lvmlockd.c | 2 +- tools/vgchange.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c index 2443c9794..e8db30eaf 100644 --- a/lib/locking/lvmlockd.c +++ b/lib/locking/lvmlockd.c @@ -1958,7 +1958,7 @@ int lockd_global(struct cmd_context *cmd, const char *def_mode) } if ((lockd_flags & LD_RF_NO_GL_LS) || (lockd_flags & LD_RF_NO_LOCKSPACES)) { - log_warn("Skipping global lock: lockspace not found or started"); + log_debug("Skipping global lock: lockspace not found or started"); goto allow; } diff --git a/tools/vgchange.c b/tools/vgchange.c index a44b865b7..137b1dc01 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -1487,7 +1487,7 @@ int vgchange_lock_start_stop_cmd(struct cmd_context *cmd, int argc, char **argv) if (!start_opt || !strcmp(start_opt, "auto")) { if (vp.lock_start_sanlock) - log_print_unless_silent("Starting locking. Waiting for sanlock may take 20 sec to 3 min..."); + log_print_unless_silent("Starting locking. Waiting for sanlock may take a few seconds to 3 min..."); else log_print_unless_silent("Starting locking. Waiting until locks are ready..."); lockd_start_wait(cmd);