]> sourceware.org Git - lvm2.git/commitdiff
vgchange: improve some lvmlockd lockstart messages
authorDavid Teigland <teigland@redhat.com>
Mon, 17 Jun 2024 21:38:19 +0000 (16:38 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 27 Jun 2024 18:29:03 +0000 (13:29 -0500)
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
tools/vgchange.c

index 2443c979455f10bceeeb879b1f113f2d30ee9fe6..e8db30eaf59783fc223f46c358218a5826c04a6b 100644 (file)
@@ -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;
                }
 
index a44b865b7867874eabf221652caa00e1cd949c1a..137b1dc01387c228bd97eecc05ce33508ddab9b8 100644 (file)
@@ -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);
This page took 0.045862 seconds and 5 git commands to generate.