From 5e76dce1acd906e8fc8af04973c3a129cdc77fd6 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 14 May 2014 16:34:06 +1000 Subject: Grow: try to let "--grow --continue" from systemd complete a reshape. If "--assemble" or "--incremental" is started by udev, then monitoring the reshape in the background won't work. So try asking systemd to start a grow-continue. If that fails, just do it the old way. Signed-off-by: NeilBrown --- systemd/mdadm-grow-continue@.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 systemd/mdadm-grow-continue@.service (limited to 'systemd') diff --git a/systemd/mdadm-grow-continue@.service b/systemd/mdadm-grow-continue@.service new file mode 100644 index 00000000..314a4fa0 --- /dev/null +++ b/systemd/mdadm-grow-continue@.service @@ -0,0 +1,17 @@ +# This file is part of mdadm. +# +# mdadm is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Manage MD Reshape on /dev/%I +DefaultDependencies=no + +[Service] +ExecStart=/sbin/mdadm --grow --continue /dev/%I +StandardInput=null +StandardOutput=null +StandardError=null +KillMode=none -- cgit v1.2.3