summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/lvmcmdline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 657797765..4a9dd8f31 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1639,6 +1639,11 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv)
goto_out;
}
+ if (lvmetad_active() && !is_lvmetad_populated()) {
+ log_debug();
+ lvmetad_pvscan_all_devs(cmd, NULL);
+ }
+
/*
* Other hosts might have changed foreign VGs so enforce a rescan
* before processing any command using them.