]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Assemble.c Don't ignore faulty disk when array is auto assembled.
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Thu, 7 Jun 2018 12:47:47 +0000 (14:47 +0200)
committerJes Sorensen <jsorensen@fb.com>
Fri, 8 Jun 2018 16:47:14 +0000 (12:47 -0400)
commit7298c9a6facea469d9e7ed55a7a0806500096415
treed8422badfe95beaa66d4f38d6ccae53eec336e29
parent28156667e5c7dc3c7b978f2d58c2a427038fedda
Assemble.c Don't ignore faulty disk when array is auto assembled.

Since commit 20dc76d15b40 ("imsm: Set disk slot number") mdadm
sets slot number for each disk in imsm array. Now auto-assemble determines
devices using slot number and ignores devices on the same slot that have
older generation number.
It causes infinit loop if failed device is still visible in system
(it has metadata, but it is not merged with exisiting array).

To avoid it, out-of-sync device should be added to the best[]. Later
mdadm adds it as spare to the container.

Imsm doesn't support disk replacement feature, so it can use rooms for
replacements.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Assemble.c