Configure /etc/systemd/journald.conf to persist journals under /var/log/journal.
Which setting is appropriate?
Storage=persistent requests persistent journal storage under /var/log/journal.
Detailed explanation
Storage=volatileIncorrect. volatile stores under /run and is lost on reboot.
Incorrect. volatile stores under /run and is lost on reboot.
Storage=noneIncorrect. none disables journal storage.
Incorrect. none disables journal storage.
Storage=autoIncorrect. auto chooses based on available persistent storage.
Incorrect. auto chooses based on available persistent storage.
Storage=persistentCorrect. It explicitly requests persistent storage.
Correct. It explicitly requests persistent storage.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'Storage=persistent' | cut -d= -f2Expected result
persistentKey points
- persistent means durable
- volatile uses /run
- auto depends on directory presence
Notes
- Environment: POSIX cut / 模擬設定のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.