Blame SOURCES/mdadm-grow-reshape-would1-be-stuck-from-raid1-to-raid.patch

2c1b57
From 5b2846684ef5172eccc432e3520b79efbc2abba5 Mon Sep 17 00:00:00 2001
2c1b57
From: Zhilong Liu <zlliu@suse.com>
2c1b57
Date: Thu, 30 Mar 2017 15:38:08 +0800
2c1b57
Subject: [RHEL7.5 PATCH 044/169] mdadm/grow: reshape would be stuck from
2c1b57
 raid1 to raid5
2c1b57
2c1b57
systemctl doesn't interpret mdadm-grow-continue@.service
2c1b57
correctly due to the wrong argument provided in [service],
2c1b57
it should be corrected %I as %i. Otherwise, if the service
2c1b57
cannot start by systemctl and the reshap progress would be
2c1b57
stuck all time when grows array from raid1 to raid5.
2c1b57
2c1b57
reproduce steps:
2c1b57
./mdadm -CR /dev/md0 -l1 -b internal -n2 /dev/loop[0-1]
2c1b57
./mdadm --grow /dev/md0 -l5 -n3 -a /dev/loop2
2c1b57
2c1b57
Signed-off-by: Zhilong Liu <zlliu@suse.com>
2c1b57
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
2c1b57
---
2c1b57
 systemd/mdadm-grow-continue@.service | 2 +-
2c1b57
 1 file changed, 1 insertion(+), 1 deletion(-)
2c1b57
2c1b57
diff --git a/systemd/mdadm-grow-continue@.service b/systemd/mdadm-grow-continue@.service
2c1b57
index 5c667d2..882bc0b 100644
2c1b57
--- a/systemd/mdadm-grow-continue@.service
2c1b57
+++ b/systemd/mdadm-grow-continue@.service
2c1b57
@@ -10,7 +10,7 @@ Description=Manage MD Reshape on /dev/%I
2c1b57
 DefaultDependencies=no
2c1b57
 
2c1b57
 [Service]
2c1b57
-ExecStart=BINDIR/mdadm --grow --continue /dev/%I
2c1b57
+ExecStart=BINDIR/mdadm --grow --continue /dev/%i
2c1b57
 StandardInput=null
2c1b57
 StandardOutput=null
2c1b57
 StandardError=null
2c1b57
-- 
2c1b57
2.7.4
2c1b57