diff --git a/WHATS_NEW b/WHATS_NEW index aa6c0c62b..b0140beba 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.167 - ====================================== + Disable lvconvert of thin pool to raid while active. Disable systemd service start rate limiting for lvm2-pvscan@.service. Version 2.02.166 - 26th September 2016 diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index deb88a245..f8a3c466b 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -776,6 +776,11 @@ static int _raid_add_images_without_commit(struct logical_volume *lv, return 0; } + if (lv_is_active(lv_lock_holder(lv)) && (old_count == 1) && (lv_is_thin_pool_data(lv) || lv_is_thin_pool_metadata(lv))) { + log_error("Can't add image to active thin pool LV %s yet. Deactivate first.", display_lvname(lv)); + return 0; + } + if (!archive(lv->vg)) return_0;