systemd‑journald journal files balloon to fill root on Ubuntu 22.04 overlay root after journal file corruption
Environment
Ubuntu 22.04 server with overlayroot (live-image style), systemd 249, kernel 5.15.0-56; persistent journal enabled at /var/log/journal on overlayfs mounted over ext4; disk is 40GB root partition with limited free space.
Symptoms
Root partition fills overnight with /var/log/journal files; services fail due to no space. Journal directory grows tens of GB quickly. journalctl shows 'Failed to write entry' and 'Corrupted object in journal' messages.
Observations
journalctl --verify reports corrupted files. systemd-journald repeatedly logs 'Journal file corrupted -- rebuilding' and then writes large temporary files. Attempts to vacuum via journalctl --vacuum-size are slow; journalctl --rotate then --vacuum-time removed some but growth resumed within hours. No single service obviously spamming higher‑level logs.
Already attempted
Restarted systemd-journald, forced rotation, removed oldest journal files manually (moved to tmp), enabled RateLimitInterval/RateLimitBurst settings in journald.conf, rebooted — issue recurs. No hardware SMART errors reported.
Question
How can I safely stop journald consuming all disk space when journal files are corrupted on overlay root, preserve forensic logs where possible, and prevent recurrence without destructive actions?
Verified community troubleshooting
Stop the flood first: identify and stop any service spamming the journal. Then relocate the corrupted persistent journal off the overlay (stop systemd‑journald, move /var/log/journal to an external mount, recreate /var/log/journal) so journald can start clean without filling root. Enable RateLimitInterval/RateLimitBurst in journald.conf and monitor growth. If the server relies on overlayroot, migrate persistent journals to a separate block device or set Storage=volatile until an upstream kernel/systemd fix is available. These steps are reversible and preserve the corrupted files for offline forensic extraction.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Linux45% match
systemd-journald grows log files until root partition fills after logrotate failed on overlay root filesystem
Open0 answers - Linux27% match
Linux reports 'No space left on device' while df -h shows plenty of free disk space — what is filling my filesystem?
Open1 answer - Cloud Computing27% match
Docker image pulls fail with 'no space left on device' though df shows plenty of disk — overlayfs inode exhaustion on Ubuntu 22.04
Open1 answer - Servers27% match
After a kernel upgrade Docker containers get 'permission denied' writing to bind-mounted volumes (overlay2/overlayfs change)
Open0 answers - Linux22% match
Docker containers report 'no space left on device' after systemd tmpfiles cleaned /var/lib/docker metadata despite free disk space
Open1 answer