Affected versions: 24.04

📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Disk usage hits 100 percent and services fail to write state files.

Environment & Reproduction

Long-running systems with verbose logs can accumulate large journals.

Root Cause Analysis

systemd-journald retention is unconstrained for available disk capacity.

Quick Triage

Run df -h and sudo journalctl –disk-usage.

Step-by-Step Diagnosis

Identify top space consumers using sudo du -xh /var/log | sort -h | tail -n 20.

Solution – Primary Fix

Free journal space with sudo journalctl –vacuum-time=7d and set limits in /etc/systemd/journald.conf, then sudo systemctl restart systemd-journald.

Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches

Archive and rotate application logs using logrotate for non-journal files.

Verification & Acceptance Criteria

Free space returns above alert threshold and critical services restart.

Rollback Plan

Restore previous journald.conf if log retention policy becomes too aggressive.

Prevention & Hardening

Set explicit journal size limits and monitor root filesystem utilization.

Related: no space left on device and failed writes in syslog.

Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.

View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

systemd-journald service docs and log rotation 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.