mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
33 lines
966 B
Plaintext
33 lines
966 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * microshift_install_get_ready/microshift-greenboot.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="microshift-greenboot-systemd-journal-data_{context}"]
|
|
= Enabling systemd journal service data persistency
|
|
|
|
The default configuration of the `systemd` journal service stores the data in the volatile `/run/log/journal` directory. To view system logs across system starts and restarts, you must enable log persistence and set limits on the maximal journal data size.
|
|
|
|
.Procedure
|
|
|
|
. Make the directory by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo mkdir -p /etc/systemd/journald.conf.d
|
|
----
|
|
|
|
. Create the configuration file by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
cat <<EOF | sudo tee /etc/systemd/journald.conf.d/microshift.conf &>/dev/null
|
|
[Journal]
|
|
Storage=persistent
|
|
SystemMaxUse=1G
|
|
RuntimeMaxUse=1G
|
|
EOF
|
|
----
|
|
|
|
. Edit the configuration file values for your size requirements.
|