]> sourceware.org Git - lvm2.git/commit
dmeventd: avoid bail out preventing repair in raid plugin
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 16 Aug 2019 14:25:08 +0000 (16:25 +0200)
committerHeinz Mauelshagen <heinzm@redhat.com>
Fri, 16 Aug 2019 16:07:03 +0000 (18:07 +0200)
commitad560a286a0b5d08086324e6194b060c136e9353
tree38caba76fbc3b9dcded93833ca47f03f27d1d57b
parent125f27ac37bc9b93cc96f64052b9681b3d479ee1
dmeventd: avoid bail out preventing repair in raid plugin

Problem:
even though dead raid component devices are detected, the
raid plugin is bailing out thus preventing a repair attempt.

Rational:
in case of component device errors, the MD resynchronization
thread runs in parallel with the thrown event being processed
by the raid plugin.  The plugin retrieves the raid device status
but that still reflects insync regions as 0 (when it should
already be total regions) because the MD thread didn't update it yet.

Solution:
Remove the insync regions check and let lvconvert carry out its
pre-repair checks and optionally carry out a repair attempt.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1560739
Related:  https://bugzilla.redhat.com/show_bug.cgi?id=1468590
Related:  https://bugzilla.redhat.com/show_bug.cgi?id=1654860
Related:  https://bugzilla.redhat.com/show_bug.cgi?id=1729303
Related:  https://bugzilla.redhat.com/show_bug.cgi?id=1741016
daemons/dmeventd/plugins/raid/dmeventd_raid.c
This page took 0.041404 seconds and 5 git commands to generate.