summaryrefslogtreecommitdiff
path: root/tools/pvmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvmove.c')
-rw-r--r--tools/pvmove.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c
index 0419a3d64..a346b5338 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -381,6 +381,11 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
return NULL;
}
+ if (lv_is_raid(lv) && lv_raid_has_integrity(lv)) {
+ log_error("Unable to pvmove device used for raid with integrity.");
+ return NULL;
+ }
+
seg = first_seg(lv);
if (!needs_exclusive) {
/* Presence of exclusive LV decides whether pvmove must be also exclusive */
@@ -625,6 +630,11 @@ static int _pvmove_setup_single(struct cmd_context *cmd,
log_error("pvmove not allowed on LV using writecache.");
return ECMD_FAILED;
}
+
+ if (lv_is_raid(lv) && lv_raid_has_integrity(lv)) {
+ log_error("pvmove not allowed on raid LV with integrity.");
+ return ECMD_FAILED;
+ }
}
/*