]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
FIX: md runs recovery instead reshape for growing single disk raid0 array
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 9 Feb 2011 03:07:33 +0000 (14:07 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Feb 2011 03:07:33 +0000 (14:07 +1100)
commit3cd4e7c4dd1f58eb4d3bc4069dec34a1422ead70
treeea12a1755a22556dd7c49963ae8a3a5d96382148
parent9e3254422dbce93aad7c24bfc81e15e9fcab8237
FIX: md runs recovery instead reshape for growing single disk raid0 array

Problem occurs when we want to expand single disk raid0 array.
This is done via degraded 2 disks raid4 array. When new spare disk
for reshape is added to array, md immediately initiates recovery before
mdadm can configure and start reshape. This is due fact that 2 disk
raid4/5 array is special md case.
Mdmon does nothing here because container is blocked.
This is caused because after takeover array is not in frozen state in md.

Put array in to frozen state after takeover to allow mdadm to finish
configuration before reshape is executed in md.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c