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