master - lvconvert: fix conversion attempts to linear
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e83c4f07ca4a84808178d5d22cba655e5e370cd8 Commit: e83c4f07ca4a84808178d5d22cba655e5e370cd8 Parent: 10ede2cc0fdabaeb19c5b5b3341164432f6d4425 Author: Heinz Mauelshagen <[email protected]> AuthorDate: Wed Aug 22 16:39:36 2018 +0200 Committer: Heinz Mauelshagen <[email protected]> CommitterDate: Wed Aug 22 17:12:43 2018 +0200
lvconvert: fix conversion attempts to linear
"lvconvert --type linear RaidLV" on striped and raid4/5/6/10 have to provide the convenient interim layouts. Fix involves a cleanup to the convenience type function.
As a result of testing, add missing sync waits to lvconvert-raid-reshape-linear_to_raid6-single-type.sh.
Resolves: rhbz1447809
--- WHATS_NEW | 1 + lib/metadata/raid_manip.c | 147 +++++++++----------- ...ert-raid-reshape-linear_to_raid6-single-type.sh | 2 + 3 files changed, 69 insertions(+), 81 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 3.0.0 ============= + Fix lvconvert conversion attempts to linear. Fix lvconvert raid0/raid0_meta -> striped regression. Fix lvconvert --splitmirror for mirror type (2.02.178). Do not pair cache policy and cache metadata format.
lib/metadata/raid_manip.c +65 -80
200 lines not on this page · raw message
test/shell/lvconvert-raid-reshape-linear_to_raid6-single-type.sh +2 -0
@@ -78,6 +78,7 @@ check lv_first_seg_field $vg/$lv data_stripes 3 check lv_first_seg_field $vg/$lv stripesize "64.00k" check lv_first_seg_field $vg/$lv regionsize "128.00k" check lv_first_seg_field $vg/$lv reshape_len_le 0 +aux wait_for_sync $vg $lv # Convert raid6_ls_6 -> raid6(_zr) (reshape) lvconvert -y --type raid6 --stripes 3 --stripesize 64K --regionsize 128K $vg/$lv
@@ -88,6 +89,7 @@ check lv_first_seg_field $vg/$lv data_stripes 3 check lv_first_seg_field $vg/$lv stripesize "64.00k" check lv_first_seg_field $vg/$lv regionsize "128.00k" check lv_first_seg_field $vg/$lv reshape_len_le 10 +aux wait_for_sync $vg $lv # Remove reshape space lvconvert -y --type raid6 --stripes 3 --stripesize 64K --regionsize 128K $vg/$lv