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.
Storage=noneIncorrect. none disables journal storage.
Storage=autoIncorrect. auto chooses based on available persistent storage.
Storage=persistentCorrect. 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
Syslog facility and priority
Metadata that classifies a message source and its severity.
Journal persistence
Whether systemd journal data survives a reboot and where it is stored.
Log rotation
A process that retains, renames, compresses, or removes log generations.