]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Systemd integration for starting newly-degraded arrays.
authorNeilBrown <neilb@suse.de>
Mon, 2 Dec 2013 05:08:04 +0000 (16:08 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 2 Dec 2013 05:08:04 +0000 (16:08 +1100)
commit169ffac7ad7748c8586fd1d68b7a417d71133140
treea803ecce4c74572e72724e84ca692824732672fb
parent9ca39acb3e8bc31811e463d19fae81c5501aea65
Systemd integration for starting newly-degraded arrays.

Normally "mdadm -I" will not start an array if it has reason to
expect further devices.
This means that if a device is removed while the host is shut down,
"mdadm -I" will never start the device.

If  the array is know to the host, it make sense to start the array
anyway after a reasonable timeout.

This patch adds systemd/udev infrastructure so that 30 seconds after
a known array first becomes able to be assembled as a degraded array,
the array will be assembled even if more devices are still expected.

Signed-off-by: NeilBrown <neilb@suse.de>
Makefile
systemd/mdadm-last-resort@.service [new file with mode: 0644]
systemd/mdadm-last-resort@.timer [new file with mode: 0644]
udev-md-raid-assembly.rules