|
|
2910d5 |
From 6636788aaf4ec0cacaefb6e77592e4a68e70a957 Mon Sep 17 00:00:00 2001
|
|
|
2910d5 |
From: NeilBrown <neilb@suse.de>
|
|
|
2910d5 |
Date: Wed, 30 Oct 2019 10:32:41 +1100
|
|
|
2910d5 |
Subject: [RHEL7.8 PATCH V2 44/47] mdcheck: when mdcheck_start is enabled,
|
|
|
2910d5 |
enable mdcheck_continue too.
|
|
|
2910d5 |
|
|
|
2910d5 |
mdcheck_continue continues a regular array scan that was started by
|
|
|
2910d5 |
mdcheck_start.
|
|
|
2910d5 |
mdcheck_start will ensure that mdcheck_continue is active.
|
|
|
2910d5 |
Howver if you reboot after a check has started, but before it finishes,
|
|
|
2910d5 |
then mdcheck_continue won't cause it to continue, because nothing
|
|
|
2910d5 |
starts it on boot.
|
|
|
2910d5 |
|
|
|
2910d5 |
So add an install option for mdcheck_contine, and make sure it
|
|
|
2910d5 |
gets enabled when mdcheck_start is enabled.
|
|
|
2910d5 |
|
|
|
2910d5 |
Signed-off-by: NeilBrown <neilb@suse.de>
|
|
|
2910d5 |
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
|
|
2910d5 |
---
|
|
|
2910d5 |
systemd/mdcheck_continue.timer | 2 ++
|
|
|
2910d5 |
systemd/mdcheck_start.timer | 1 +
|
|
|
2910d5 |
2 files changed, 3 insertions(+)
|
|
|
2910d5 |
|
|
|
2910d5 |
diff --git a/systemd/mdcheck_continue.timer b/systemd/mdcheck_continue.timer
|
|
|
2910d5 |
index 3ccfd78..dba1074 100644
|
|
|
2910d5 |
--- a/systemd/mdcheck_continue.timer
|
|
|
2910d5 |
+++ b/systemd/mdcheck_continue.timer
|
|
|
2910d5 |
@@ -11,3 +11,5 @@ Description=MD array scrubbing - continuation
|
|
|
2910d5 |
[Timer]
|
|
|
2910d5 |
OnCalendar= 1:05:00
|
|
|
2910d5 |
|
|
|
2910d5 |
+[Install]
|
|
|
2910d5 |
+WantedBy= mdmonitor.service
|
|
|
2910d5 |
diff --git a/systemd/mdcheck_start.timer b/systemd/mdcheck_start.timer
|
|
|
2910d5 |
index 6480736..9e7e02a 100644
|
|
|
2910d5 |
--- a/systemd/mdcheck_start.timer
|
|
|
2910d5 |
+++ b/systemd/mdcheck_start.timer
|
|
|
2910d5 |
@@ -13,3 +13,4 @@ OnCalendar=Sun *-*-1..7 1:00:00
|
|
|
2910d5 |
|
|
|
2910d5 |
[Install]
|
|
|
2910d5 |
WantedBy= mdmonitor.service
|
|
|
2910d5 |
+Also= mdcheck_continue.timer
|
|
|
2910d5 |
--
|
|
|
2910d5 |
2.7.5
|
|
|
2910d5 |
|