"mdadm --monitor --oneshot" can be used to get a warning if there are any degraded arrays. It can be helpful to get this warning periodically while the condition persists. This patch add a systemd service and timer which can be enabled with systemctl enable mdmonitor-oneshot.service and will then provide daily warnings. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
16 lines
398 B
SYSTEMD
16 lines
398 B
SYSTEMD
# 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=Reminder for degraded MD arrays
|
|
|
|
[Timer]
|
|
OnCalendar= 2:00:00
|
|
|
|
[Install]
|
|
WantedBy= mdmonitor.service
|