]> git.ipfire.org Git - thirdparty/mdadm.git/commit
External reshape (step 2): Freeze container
authorDan Williams <dan.j.williams@intel.com>
Tue, 23 Nov 2010 05:39:58 +0000 (16:39 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 23 Nov 2010 05:39:58 +0000 (16:39 +1100)
commit7f2ba464e464097ee5c150ead460ef52009209a7
tree5db12e8a2c0dfdb75090b378d40d2cd22f7965bc
parent7bc7119671cceb8cba4c8b1622680b27e90417d4
External reshape (step 2): Freeze container

When growing the number of raid disks the reshape process will promote
container-spares to subarray-spares (later the kernel promotes them to
subarray-members in raid5_start_reshape()).  The automatic spare
promotion that mdmon performs upon seeing a degraded array must be
disabled until the reshape process has been initiated.  Otherwise, mdmon
may start a rebuild before the reshape parameters can be specified.

In the external case we arrange for the monitor to be blocked, and
turn off the safemode delay.
Mdmon is updated to check sync_action is not frozen before initiating
recovery.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c