From f254abcd72b6ca6c4567c245a7dbaf739d02dfc2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 3 Aug 2020 13:22:01 +0200 Subject: [PATCH] man: describe that changing Storage= does not move existing data Fixes #16384. --- man/journald.conf.xml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/man/journald.conf.xml b/man/journald.conf.xml index bfd359a903e..d792ef7220f 100644 --- a/man/journald.conf.xml +++ b/man/journald.conf.xml @@ -67,12 +67,18 @@ persistent, data will be stored preferably on disk, i.e. below the /var/log/journal hierarchy (which is created if needed), with a fallback to /run/log/journal (which is created if needed), during early boot and if the disk - is not writable. auto is similar to persistent but the - directory /var/log/journal is not created if needed, so that its existence - controls where log data goes. none turns off all storage, all log data received - will be dropped. Forwarding to other targets, such as the console, the kernel log buffer, or a syslog - socket will still work however. Defaults to auto in the default journal namespace, - and persistent in all others. + is not writable. auto behaves like persistent if the + /var/log/journal directory exists, and volatile otherwise + (the existence of the directory controls the storage mode). none turns off all + storage, all log data received will be dropped (but forwarding to other targets, such as the console, + the kernel log buffer, or a syslog socket will still work). Defaults to auto in + the default journal namespace, and persistent in all others. + + Note that when this option is changed to volatile, existing persistent data + is not removed. In the other direction, + journalctl1 with + the option may be used to move volatile data to persistent storage. + -- 2.39.2