mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +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:
parent
bada03cd48
commit
4d8fb10af2
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user