]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
IMSM: do not rebuild the array if a non-redundant sub-array with failed disks is...
authorLabun, Marcin <Marcin.Labun@intel.com>
Wed, 15 Dec 2010 04:51:53 +0000 (15:51 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 15 Dec 2010 04:51:53 +0000 (15:51 +1100)
commit95d07a2cdd020ccde6c74d5d7c50bd7384816649
tree0ff5cd94c09c410e9b5c16996e18509925605c08
parent1a64be565bb53f6388caa582bd82804890b2c6de
IMSM: do not rebuild the array if a non-redundant sub-array with failed disks is present

Before looking for a spare to rebuild a degraded array, check if there
are any failed disks in container.  Block rebuild if another sub-array
is failed until failed disks are removed from container.

Currently, Intel metadata handler rebuilds all sub-arrays even if one
of them is non-redundant. In case of failed sub-array, failed disks
are just replaced with new ones in the metadata mapping. The data for
failed disk is not restored even the disk is present in the system.

With this fix, we require the removal of the failed disk from
container to start the process of rebuilding the array with failed
member. If the disk is physically pulled out of the system, the disk
is removed from container automatically by exiting udev rules.

Signed-off-by: Marcin Labun <marcin.labun@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c