📖 ~1 min read
Table of contents
Symptom & Impact
Root filesystem reaches 100% usage and services fail to write state. Package operations, logins, and updates may fail.
Environment & Reproduction
Ubuntu 22.04 hosts with verbose logging or repeated service failures. Reproduce by generating high-volume logs without rotation limits.
Root Cause Analysis
systemd-journald stores persistent logs under /var/log/journal; without sensible caps, sustained error output can exhaust disk space.
Quick Triage
Run df -h and sudo journalctl –disk-usage. Identify largest directories with sudo du -xh /var/log | sort -h.
Step-by-Step Diagnosis
Inspect noisy units using journalctl -p err -b and per-service logs. Review journald config in /etc/systemd/journald.conf.

Solution – Primary Fix
Free space with sudo journalctl –vacuum-time=7d or –vacuum-size=500M, then set SystemMaxUse and RuntimeMaxUse in journald.conf and restart journald.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Forward logs to centralized systems and keep local retention short; tune application verbosity levels.
Verification & Acceptance Criteria
Disk usage returns below threshold, journald obeys configured caps, and core services remain healthy across reboots.
Rollback Plan
Revert journald.conf changes and restart service if retention policy unexpectedly removes needed forensic detail.
Prevention & Hardening
Set log retention baselines, alert on filesystem utilization, and investigate recurring high-volume error sources quickly.
Related Errors & Cross-Refs
No space left on device, Failed to write entry, apt cannot write to cache.
Related tutorial: View the step-by-step tutorial for Ubuntu 22.04 LTS.
View all Ubuntu 22.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
man journald.conf, man journalctl, Ubuntu logging best practices.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.