From d1608345dffd912dd591d71a147c5acf587cf7fe Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 19 Nov 2015 13:30:55 +0100 Subject: [PATCH] cache: enable raid conversion for _cdata and _cmeta Since thin-pool supports convertion of data and metadata LV, enable the same for cache data and metadata LV. --- WHATS_NEW | 1 + tools/lvconvert.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index d5a4a3ba6..0519527a9 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.135 - ==================================== + Allow lvconvert cache pools' data and metadata LV to raid. Fix reading of old metadata with missing cache policy or mode settings. Issue error if external_device_info_source=udev and udev db record incomplete. Fix passing of 32bit values through daemons (mostly lvmlockd). diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 3cfd915c8..19ee60754 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -199,6 +199,8 @@ static int _lvconvert_name_params(struct lvconvert_params *lp, !arg_count(cmd, splitmirrors_ARG) && !strstr(lp->lv_name, "_tdata") && !strstr(lp->lv_name, "_tmeta") && + !strstr(lp->lv_name, "_cdata") && + !strstr(lp->lv_name, "_cmeta") && !apply_lvname_restrictions(lp->lv_name)) return_0;