diff options
author | David Teigland <teigland@redhat.com> | 2016-12-21 10:59:42 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2016-12-21 10:59:42 -0600 |
commit | 9e7d54a735390f0b6a2d48f8d62aa63f5fa924d7 (patch) | |
tree | 648393a0eee764a96f68b45e3b52f61035df719b | |
parent | 2207916731510786277f45a6e43f050815d0cddc (diff) | |
download | lvm2-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.c | 6 |
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; } |