1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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".
This commit is contained in:
David Teigland 2024-06-17 16:38:19 -05:00
parent bada03cd48
commit 4d8fb10af2
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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);