master - lvconvert: Disallow raid10 mirror conversions.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7837fbc1c191925ebe6bef74845d61396c1050e6 Commit: 7837fbc1c191925ebe6bef74845d61396c1050e6 Parent: 2d65ce9711dace22cebb370b0d93fd7a98213bd8 Author: Alasdair G Kergon <[email protected]> AuthorDate: Tue Aug 23 23:40:16 2016 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Tue Aug 23 23:40:16 2016 +0100
lvconvert: Disallow raid10 mirror conversions.
--- WHATS_NEW | 1 + tools/lvconvert.c | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.165 - =================================== + Disallow segtype and mirror conversions of raid10 volumes. Fix dmeventd unmonitoring when segment type (and dso) changes. Don't allow lvconvert --repair on raid0 devices or attempt to monitor them. No longer adjust incorrect number of raid stripes supplied to lvcreate.
tools/lvconvert.c +5 -0
@@ -1849,6 +1849,11 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l lvseg_name(seg));return 0 ; } +if (seg_is_raid10 (seg)) { +log_error ("--mirrors/-m cannot be changed with %s." , +lvseg_name (seg)); +return 0 ; + } }if (!_lvconvert_validate_thin (lv, lp))