Georg Pfuetzenreuter composed on 2024-01-14 11:34 (UTC+0100):
Felix Miata wrote:
7 days ago I ran 'systemctl cat mdcheck_start.timer' and decided I didn't like either the time or the day of the default, Sunday @01:00, so I did 'systemctl edit mdcheck_start.timer'. The following is the result of saving the edit: # systemctl cat mdcheck_start.timer # /usr/lib/systemd/system/mdcheck_start.timer # 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=MD array scrubbing
[Timer] OnCalendar=Sun *-*-* 1:00:00
[Install] WantedBy= mdmonitor.service Also= mdcheck_continue.timer
# /etc/systemd/system/mdcheck_start.timer.d/override.conf OnCalendar=Sat *-*-* 4:00:00 # The override file created by the edit contains only:
OnCalendar=Sat *-*-* 4:00:00
two issues in your drop-in file: you need to specify the section headers, and you need to clear the existing entry (assuming you don't want two calendar entries). For example:
``` [Timer] OnCalendar= OnCalendar=Sat *-*-* 4:00:00 ```
Hope that helps.
It apparently did, but...
started by the timer at 01:00. 'systemctl status mdcheck_start.timer' reports: ... systemd[1]: /etc/systemd/system/mdcheck_start.timer.d/override.conf:1: Assignment outside of section. Ignoring
After systemctl cat mdcheck_start.timer looked right and I ran systemctl daemon-reload, systemctl status mdcheck_start.timer continued producing the same error message quoted above. systemctl status mdcheck_start.timer only showed the change effective after a reboot. So now: # systemctl status mdcheck_start.timer ● mdcheck_start.timer - MD array scrubbing Loaded: loaded (/usr/lib/systemd/system/mdcheck_start.timer; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/mdcheck_start.timer.d └─override.conf Active: active (waiting) since Mon 2024-01-15 01:00:53 EST; 2min 11s ago Trigger: Sat 2024-01-20 04:00:00 EST; 5 days left Triggers: ● mdcheck_start.service Jan 15 01:00:53 00srv systemd[1]: Started MD array scrubbing. # What causes the scrubbing? # systemctl list-unit-files | grep scrub 00srv:~ # journalctl -b -1 | grep scrub Jan 08 21:03:21 00srv systemd[1]: Started MD array scrubbing - continuation. Jan 08 21:03:21 00srv systemd[1]: Started MD array scrubbing. Jan 09 01:05:11 00srv systemd[1]: Condition check resulted in MD array scrubbing - continuation being skipped. Jan 10 01:05:11 00srv systemd[1]: Condition check resulted in MD array scrubbing - continuation being skipped. Jan 11 01:05:11 00srv systemd[1]: Condition check resulted in MD array scrubbing - continuation being skipped. Jan 12 01:05:11 00srv systemd[1]: Condition check resulted in MD array scrubbing - continuation being skipped. Jan 13 01:05:11 00srv systemd[1]: Condition check resulted in MD array scrubbing - continuation being skipped. Jan 14 01:00:11 00srv systemd[1]: Starting MD array scrubbing... Jan 14 01:05:00 00srv systemd[1]: Starting MD array scrubbing - continuation... Jan 14 01:05:00 00srv systemd[1]: Finished MD array scrubbing - continuation. Jan 14 03:32:15 00srv systemd[1]: Finished MD array scrubbing. Jan 15 01:00:18 00srv systemd[1]: Stopped MD array scrubbing - continuation. Jan 15 01:00:18 00srv systemd[1]: Stopped MD array scrubbing. # -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata