summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-05-14 08:34:06 +0200
committerNeilBrown <neilb@suse.de>2014-05-15 06:23:21 +0200
commit5e76dce1acd906e8fc8af04973c3a129cdc77fd6 (patch)
tree44074f57538de42d0e81fa2c63b99e0d044195cb /systemd
parentGrow: store a link to current backup file in /run/mdadm or similar. (diff)
downloadmdadm-5e76dce1acd906e8fc8af04973c3a129cdc77fd6.tar.xz
mdadm-5e76dce1acd906e8fc8af04973c3a129cdc77fd6.zip
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 <neilb@suse.de>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/mdadm-grow-continue@.service17
1 files changed, 17 insertions, 0 deletions
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