[systemd-devel] moving the journal during bootup
Lennart Poettering
lennart at poettering.net
Tue Nov 20 10:33:39 PST 2012
On Wed, 24.10.12 15:45, Cliff Brake (cliff.brake at gmail.com) wrote:
> Hello,
>
> We have an embedded system where we boot from an initramfs, but partway
> through the boot, we would like to move the journal to NAND flash if its
> available.
>
> I tried modifying the systemd-journald.service to Requires my
> nand-mount.mount unit, and that seems to work on bootup, but there is some
> type of deadlock on shutdown.
>
> Any thoughts on how you would approach this problem? Ideally, we could
> switching the journal location after it is started. 2nd best would be to
> delay the journal starting until the storage medium was available.
The journal already supports moving the log data from /run to /var after
/var ha sbeen mounted. Maybe you can piggyback on that, and just make
sure that /var/log/journal resides on the right kind of storage? Then
you should get all this for free?
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list