]> sourceware.org Git - lvm2.git/commit
dmeventd: avoid bail out preventing repair in raid plugin but keep message
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 20 Sep 2019 15:35:35 +0000 (17:35 +0200)
committerHeinz Mauelshagen <heinzm@redhat.com>
Fri, 20 Sep 2019 15:53:20 +0000 (17:53 +0200)
commit6f355c673631b0d7959191c8a56a577b3a0e97c9
treee2b1318ce517a3c876f3d66f3880e713c17f7852
parent6fc46af8ecd9532aca41df43fd588fb207ed4e92
dmeventd: avoid bail out preventing repair in raid plugin but keep message

Followup patch mentioned in previous commit fe577f84cbf6bd7be76b457c9d54d0e54e57f93d.

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 but keep the informal message
  "waiting for resynchronization"  and let lvconvert carry out its
  pre-repair checks and optionally carry out a repair attempt.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1751887
Related: 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.041548 seconds and 5 git commands to generate.