Skip to contentSkip to conversation

stable-2.02 - lv_resize: support resizing of cached volumes

PATCH Zdenek Kabelac 1 participant 1 message Feb 9, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4eeb9e76630e204eb3deff386bb0e979f1ca126c
Commit:        4eeb9e76630e204eb3deff386bb0e979f1ca126c
Parent:        d3a9bf4a56716072dbb2d9fdc6abe4d0d89dc95e
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Feb 7 20:12:00 2021 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Feb 9 15:04:18 2021 +0100

lv_resize: support resizing of cached volumes

Automatically figure out resizable layer in the LV stack and resize it online.

Split check for reshaped raids and postpone removal of unused space after finished reshaping after metadata archiving.

Drop warning about unsupported automatic resize of monitored thin-pool.

Currently there is not yet support for resize of writecache.

---
 WHATS_NEW                  |   1 +
 lib/metadata/cache_manip.c |   4 --
 lib/metadata/lv_manip.c    | 169 ++++++++++++++++++++++++++++-----------------
 3 files changed, 105 insertions(+), 69 deletions(-)
WHATS_NEW +1 -0
index a50762703..dafa4169a 100644
@@ -1,5 +1,6 @@
 Version 2.02.188 - 
 ==================================
+  Support resize of cached volumes.
   Allocation prints better error when metadata cannot fit on a single PV.
   Pvmove can better resolve full thin-pool tree move.
   Limit pool metadata spare to 16GiB.
lib/metadata/cache_manip.c +0 -4
index ffce73761..fee5a78ee 100644
@@ -131,10 +131,6 @@ void cache_check_for_warns(const struct lv_segment *seg)
 	    first_seg(seg->pool_lv)->cache_mode == CACHE_MODE_WRITEBACK)
 		log_warn("WARNING: Data redundancy could be lost with writeback "
 			 "caching of raid logical volume!");
-
-	if (lv_is_thin_pool_data(seg->lv))
-		log_warn("WARNING: Cached thin pool's data cannot be currently "
-			 "resized and require manual uncache before resize!");
 }
 
 /*
lib/metadata/lv_manip.c +104 -65

304 lines not on this page · raw message