]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: fix reshape from RAID5 to RAID6 with backup file
authorNigel Croxon <ncroxon@redhat.com>
Wed, 20 Jan 2021 20:05:42 +0000 (15:05 -0500)
committerJes Sorensen <jsorensen@fb.com>
Wed, 3 Mar 2021 14:29:17 +0000 (09:29 -0500)
commit4ae96c802203ec3cfbb089240c56d61f7f4661b3
treea157deca4505926ba249b672dd3ff836f260e2ea
parent1fe2e1007310778d0551d5c34317e5318507399d
mdadm: fix reshape from RAID5 to RAID6 with backup file

Reshaping a 3-disk RAID5 to 4-disk RAID6 will cause a hang of
the resync after the grow.

Adding a spare disk to avoid degrading the array when growing
is successful, but not successful when supplying a backup file
on the command line. If the reshape job is not already running,
set the sync_max value to max.

Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Grow.c