Skip to contentSkip to conversation

main - lv_resize: support resizing of cached volumes

PATCH Zdenek Kabelac 1 participant 1 message Feb 8, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5ec24dfb0bb0c9e48d59d6fbb83262a7087964e1
Commit:        5ec24dfb0bb0c9e48d59d6fbb83262a7087964e1
Parent:        39dec265084c05aaa086288863710148d28d1ccb
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Feb 7 20:12:00 2021 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Feb 8 23:43:10 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.

---
 lib/metadata/cache_manip.c |   5 --
 lib/metadata/lv_manip.c    | 182 +++++++++++++++++++++++++++------------------
 2 files changed, 110 insertions(+), 77 deletions(-)
lib/metadata/cache_manip.c +0 -5
index 90ebd9404..f29442358 100644
@@ -169,11 +169,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: thin pool data will not be automatically extended when cached.");
-		log_warn("WARNING: manual splitcache is required before extending thin pool data.");
-	}
 }
 
 /*
lib/metadata/lv_manip.c +110 -72

317 lines not on this page · raw message