mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-2_03_06-dmeventd-avoid-bail-out-preventing-repair-in-raid-pl.patch

26e710
 daemons/dmeventd/plugins/raid/dmeventd_raid.c | 16 ++++++----------
26e710
 1 file changed, 6 insertions(+), 10 deletions(-)
26e710
26e710
diff --git a/daemons/dmeventd/plugins/raid/dmeventd_raid.c b/daemons/dmeventd/plugins/raid/dmeventd_raid.c
26e710
index aa2b578..3431f1e 100644
26e710
--- a/daemons/dmeventd/plugins/raid/dmeventd_raid.c
26e710
+++ b/daemons/dmeventd/plugins/raid/dmeventd_raid.c
26e710
@@ -76,16 +76,12 @@ static int _process_raid_event(struct dso_state *state, char *params, const char
26e710
 	}
26e710
 
26e710
 	if (dead) {
26e710
-		if (status->insync_regions < status->total_regions) {
26e710
-			if (!state->warned) {
26e710
-				state->warned = 1;
26e710
-				log_warn("WARNING: waiting for resynchronization to finish "
26e710
-					 "before initiating repair on RAID device %s.", device);
26e710
-			}
26e710
-
26e710
-			goto out; /* Not yet done syncing with accessible devices */
26e710
-		}
26e710
-
26e710
+		/*
26e710
+		 * Use the first event to run a repair ignoring any additonal ones.
26e710
+		 *
26e710
+		 * We presume lvconvert to do pre-repair
26e710
+		 * checks to avoid bloat in this plugin.
26e710
+		 */
26e710
 		if (state->failed)
26e710
 			goto out; /* already reported */
26e710