]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/grow: reshape would be stuck from raid1 to raid5
authorZhilong Liu <zlliu@suse.com>
Thu, 30 Mar 2017 07:38:08 +0000 (15:38 +0800)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Thu, 30 Mar 2017 15:49:44 +0000 (11:49 -0400)
commit5b2846684ef5172eccc432e3520b79efbc2abba5
tree9407f37ae72ebed3a77f5dcbd79b1d63ba149364
parent49948a3561dcd48a94b1c5e98a6d23c9263d1ca3
mdadm/grow: reshape would be stuck from raid1 to raid5

systemctl doesn't interpret mdadm-grow-continue@.service
correctly due to the wrong argument provided in [service],
it should be corrected %I as %i. Otherwise, if the service
cannot start by systemctl and the reshap progress would be
stuck all time when grows array from raid1 to raid5.

reproduce steps:
./mdadm -CR /dev/md0 -l1 -b internal -n2 /dev/loop[0-1]
./mdadm --grow /dev/md0 -l5 -n3 -a /dev/loop2

Signed-off-by: Zhilong Liu <zlliu@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
systemd/mdadm-grow-continue@.service