summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-05-03 15:56:34 -0500
committerDavid Teigland <teigland@redhat.com>2016-05-06 09:00:00 -0500
commite84fb639f03b018b7b6f09778f863c50a7f9e045 (patch)
tree5eb9f233ac9c48d76ed2f217140ce512ce29f214
parentb1ea27b1e210274dfb9c7100cf0f9714397eec3b (diff)
downloadlvm2-e84fb639f03b018b7b6f09778f863c50a7f9e045.tar.gz
lvmetad: add duplicate resolution advice
-rw-r--r--tools/lvmcmdline.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index e6c82cf6c..fa9cd8fa2 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1677,6 +1677,13 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv)
if (lvmetad_used() && lvmetad_is_disabled(cmd, &reason)) {
log_warn("WARNING: Not using lvmetad because %s.", reason);
lvmetad_make_unused(cmd);
+
+ if (strstr(reason, "duplicate")) {
+ log_warn("WARNING: Use multipath or vgimportclone to resolve duplicate PVs?");
+ if (!find_config_tree_bool(cmd, devices_multipath_component_detection_CFG, NULL))
+ log_warn("WARNING: Set multipath_component_detection=1 to hide multipath duplicates.");
+ log_warn("WARNING: After duplicates are resolved, run \"pvscan --cache\" to enable lvmetad.");
+ }
}
}