From: Zdenek Kabelac Date: Sun, 21 Apr 2013 06:49:17 +0000 (+0200) Subject: thin: explicitly avoid pvmove operation X-Git-Tag: v2_02_99~403 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=17a691505467cd5a73059fe5ca22fe50dafd345a;p=lvm2.git thin: explicitly avoid pvmove operation So far we do not support pvmove for thin volumes and thin pools. --- diff --git a/WHATS_NEW b/WHATS_NEW index 819fea491..b016b8e13 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Add explicit message about unsupported pvmove for thin/thinpool volumes. Fix lvmetad error path in lvmetad_vg_lookup() for null vgname. Fix clvmd _cluster_request() return code in memory fail path. Add writemostly/writebehind support for RAID1 diff --git a/tools/pvmove.c b/tools/pvmove.c index a733049c4..5c51c5fa2 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -248,6 +248,13 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd, log_print_unless_silent("Skipping mirror image LV %s", lv->name); continue; } + if (lv_is_thin_volume(lv) || lv_is_thin_pool(lv)) { + lv_skipped = 1; + log_print_unless_silent("Skipping thin%s LV %s", + lv_is_thin_pool(lv) ? "-pool" : "", + lv->name); + continue; + } if (lv->status & LOCKED) { lv_skipped = 1; log_print_unless_silent("Skipping locked LV %s", lv->name);