You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
WHATS_NEW | 4 ++++ |
|
lib/metadata/raid_manip.c | 5 +++++ |
|
2 files changed, 9 insertions(+) |
|
|
|
diff --git a/WHATS_NEW b/WHATS_NEW |
|
index 977e578..5cbf4ec 100644 |
|
--- a/WHATS_NEW |
|
+++ b/WHATS_NEW |
|
@@ -1,3 +1,7 @@ |
|
+Version 2.02.167 - |
|
+====================================== |
|
+ Disable lvconvert of thin pool to raid while active. |
|
+ |
|
Version 2.02.166 - 26th September 2016 |
|
====================================== |
|
Fix lvm2-activation-generator to read all LVM2 config sources. (2.02.155) |
|
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c |
|
index e5fdf4f..5fc520e 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; |
|
|
|
|