<div dir="ltr"><br><div>15:31:18 localhost systemd[1]: Dependency failed for Flush Journal to Persistent Storage.<br></div><div>░░ Subject: A start job for unit systemd-journal-flush.service has failed<br>░░ Defined-By: systemd<br>░░ Support: <a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>░░ <br>░░ A start job for unit systemd-journal-flush.service has finished with a failure.<br>░░ <br>░░ The job identifier is 38 and the job result is dependency.<br></div><div><br></div><div>At this point, flush is attempting to re-route /run/log/journal to /var/log/journal ... and the /var partition is not yet mounted. Units generated for fstab in /run/systemd/generator that manage the mount have an After=local-fs-pre.target which is too late.</div><div><br></div><div>Other dependency errors appear in the log; all with the same root cause. By the time [ a specified service ] that uses /var is ready, the partition has not yet been mounted. My solution resolves the /var mount as soon as the block device is seen by udev - which made all the dependency errors go away.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 30, 2021 at 1:46 PM Michael Biebl <<a href="mailto:mbiebl@gmail.com">mbiebl@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Fr., 30. Apr. 2021 um 19:42 Uhr schrieb Rick Winscot<br>
<<a href="mailto:rick.winscot@gmail.com" target="_blank">rick.winscot@gmail.com</a>>:<br>
><br>
> systemd 247<br>
<br>
Ok, thanks<br>
<br>
> /etc/systemd/journald.conf storage is persistent, systemd-journal-flush.service has RequiresMountsFor=/var/log/journal.<br>
><br>
> Mounting /var on a separate read-write partition handles the persistent log requirement as well as offloading other read-write operations that can no longer live on the rootfs... being read-only.<br>
<br>
Sure, but what is the actual problem? I do have systems with a<br>
separate /var and don't remember any ordering issues / race<br>
conditions.<br>
Do you have any error messages / journal logs which show the issue?<br>
</blockquote></div>