summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-12-21 10:59:42 -0600
committerDavid Teigland <teigland@redhat.com>2016-12-21 10:59:42 -0600
commit9e7d54a735390f0b6a2d48f8d62aa63f5fa924d7 (patch)
tree648393a0eee764a96f68b45e3b52f61035df719b
parent2207916731510786277f45a6e43f050815d0cddc (diff)
downloadlvm2-dev-dct-cmd-defs64.tar.gz
lvchange: add clustered vg checkdev-dct-cmd-defs64
Put this back after it disappeared in the lvchange rework.
-rw-r--r--tools/lvchange.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index fbeff500c..b97e7ee86 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -1022,6 +1022,12 @@ static int _lvchange_properties_check(struct cmd_context *cmd,
return 0;
}
+ if (vg_is_clustered(lv->vg) && lv_is_cache_origin(lv) && lv_is_raid(lv)) {
+ log_error("Unable to change internal LV %s directly in a cluster.",
+ display_lvname(lv));
+ return 0;
+ }
+
return 1;
}