From 851095a6af7a5a1343d9eb2aa8a5c9e08f9759b3 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 21 Nov 2016 14:54:51 +0100 Subject: [PATCH] raid: lvconvert uses transient check for raid Also check if the raid status isn't teling us there is something wrong with any raid image device. --- WHATS_NEW | 1 + tools/lvconvert.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index 9414b0393..b7a5e822b 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.168 - ==================================== + Use transient raid check before repairing raid volume. Implement transient status check for raid volumes. Only log msg as debug if lvm2-lvmdbusd unit missing for D-Bus notification. Missing stripe filler now could be also 'zero'. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index d6824d8f0..ceeff2d86 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2068,6 +2068,9 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l return 0; } + if (!lv_check_transient(lv)) /* TODO check this in lib for all commands? */ + stack; /* TODO: break here upon fail or always try to fix it? */ + _lvconvert_raid_repair_ask(cmd, lp, &replace); if (replace) {