]> sourceware.org Git - lvm2.git/commitdiff
lvmetad: add duplicate resolution advice
authorDavid Teigland <teigland@redhat.com>
Tue, 3 May 2016 20:56:34 +0000 (15:56 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 6 May 2016 14:00:00 +0000 (09:00 -0500)
tools/lvmcmdline.c

index e6c82cf6c4280d41c50b2a587d883b5129f587d6..fa9cd8fa26c1c74dfff75eb11055e71d44daa334 100644 (file)
@@ -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.");
+                       }
                }
        }
 
This page took 0.037832 seconds and 5 git commands to generate.