<div dir="auto">I'd create a single raidcheck.service that runs daily and calls a script that itself determines which device to check, e.g. /dev/md$[dayofyear % 16].</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 26, 2020, 22:56 Ian Pilcher <<a href="mailto:arequipeno@gmail.com" target="_blank" rel="noreferrer">arequipeno@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My NAS has 16 MD RAID devices. I've created a simple service<br>
(raidcheck@.service) that will trigger a check of the RAID device<br>
identified by the argument. E.g., 'systemctl start raidcheck@md1' will<br>
trigger the check of md1 (after checking that no other array is being<br>
checked/synced, no arrays are degraded, etc.).<br>
<br>
It takes 6-8 hours to check one of these arrays, so I want to run one<br>
check every night at 23:00. So (picking tonight as an arbitrary<br>
starting point) md1 would run tonight, md2 would run tomorrow night, md3<br>
would run the following night ... all the way through md16. Then the<br>
cycle would start over with md1.<br>
<br>
I had thought that I would be able to create 16 separate timers (one for<br>
each device), each scheduled to trigger every 16 days at 23:00, starting<br>
on a particular day.<br>
<br>
Looking through the systemd.timer(5) and systemd.time(7) man pages,<br>
however, I haven't been able to figure out how to do this. Is it not<br>
possible, or am I missing something?<br>
<br>
-- <br>
========================================================================<br>
In Soviet Russia, Google searches you!<br>
========================================================================<br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>