mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-04 21:47:46 +03:00
Revert "dmeventd: avoid bail out preventing repair in raid plugin"
This reverts commit 9e438b4bc6b9240b63fc79acfef3c77c01a848d8. The reverted patch also removed the warning which we realized we need to keep as valuable process information (see related bugzilla below). In a followup patch, we'll keep the message and avoid bailing out thus always allowing lvconvert to try repairing if 'allocate' fault policy set. Related: https://bugzilla.redhat.com/show_bug.cgi?id=1751887
This commit is contained in:
parent
6cad4eba9b
commit
0585754593
@ -76,12 +76,16 @@ static int _process_raid_event(struct dso_state *state, char *params, const char
|
||||
}
|
||||
|
||||
if (dead) {
|
||||
/*
|
||||
* Use the first event to run a repair ignoring any additonal ones.
|
||||
*
|
||||
* We presume lvconvert to do pre-repair
|
||||
* checks to avoid bloat in this plugin.
|
||||
*/
|
||||
if (status->insync_regions < status->total_regions) {
|
||||
if (!state->warned) {
|
||||
state->warned = 1;
|
||||
log_warn("WARNING: waiting for resynchronization to finish "
|
||||
"before initiating repair on RAID device %s.", device);
|
||||
}
|
||||
|
||||
goto out; /* Not yet done syncing with accessible devices */
|
||||
}
|
||||
|
||||
if (state->failed)
|
||||
goto out; /* already reported */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user