summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-04-14 16:40:26 -0500
committerDavid Teigland <teigland@redhat.com>2016-04-19 09:19:32 -0500
commita6a32a7c0e6ed9ef9e61e82b2d1353a1c06a9dd3 (patch)
tree172f2a993a6409f25af2edbfc91573143b055412
parenta400eba1740c335ed715c67b978dd0ed8228d73a (diff)
downloadlvm2-a6a32a7c0e6ed9ef9e61e82b2d1353a1c06a9dd3.tar.gz
metadata: don't repair shared VGs
When the in-use flag looks like it needs to be repaired.
-rw-r--r--lib/metadata/metadata.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index ecdb5afcf..782235e7d 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -4037,6 +4037,14 @@ static int _check_or_repair_pv_ext(struct cmd_context *cmd,
"VG %s but not marked as used.",
pv_dev_name(pvl->pv), vg->name);
*inconsistent_pvs = 1;
+ } else if (is_lockd_type(vg->lock_type)) {
+ /*
+ * FIXME: decide how to handle repair for shared VGs.
+ */
+ log_warn("Skip repair of PV %s that is in shared "
+ "VG %s but not marked as used.",
+ pv_dev_name(pvl->pv), vg->name);
+ *inconsistent_pvs = 1;
} else {
log_warn("WARNING: Repairing Physical Volume %s that is "
"in Volume Group %s but not marked as used.",