Skip to contentSkip to conversation

master - lvconvert: enhance automatic settings of possible (raid) LV types

PATCH Heinz Mauelshagen 1 participant 1 message May 17, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5fe07d3574ddce3d194f0fa57af9028348a91008
Commit:        5fe07d3574ddce3d194f0fa57af9028348a91008
Parent:        16c6d9f11ab581a79fb57fd36142af1dc57a3c61
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Thu May 18 00:18:15 2017 +0200
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Thu May 18 00:18:15 2017 +0200

lvconvert: enhance automatic settings of possible (raid) LV types

Offer possible interim LV types and display their aliases (e.g. raid5 and raid5_ls) for all conversions between striped and any raid LVs in case user requests a type not suitable to direct conversion.

E.g. running "lvconvert --type raid5 LV" on a striped LV will replace raid5 aka raid5_ls (rotating parity) with raid5_n (dedicated parity on last image). User is asked to repeat the lvconvert command to get to the requested LV type (raid5 aka raid5_ls in this example) when such replacement occurs.

Resolves: rhbz1439403

---
 WHATS_NEW                 |    1 +
 lib/metadata/raid_manip.c |  312 ++++++++++++++++++++++++++++++++-------------
 2 files changed, 222 insertions(+), 91 deletions(-)
WHATS_NEW +1 -0
index 5097c1b..07c2602 100644
@@ -1,5 +1,6 @@
 Version 2.02.172 - 
 ===============================
+  Enhance lvconvert automatic settings of possible (raid) LV types.
   Allow lvchange to change properties on a thin pool data sub LV.
   Fix lvcreate extent percentage calculation for mirrors.
   Don't reinstate still-missing devices when correcting inconsistent metadata.
lib/metadata/raid_manip.c +221 -91

484 lines not on this page · raw message