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.

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

Environment & Reproduction

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

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

Root Cause Analysis

systemd-journald retention is unconstrained for available disk capacity.

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

Quick Triage

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

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

Step-by-Step Diagnosis

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

Illustrative mockup for ubuntu-24-04-lts — post-195-1
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

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.

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

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

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

Verification & Acceptance Criteria

Free space returns above alert threshold and critical services restart.

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

Rollback Plan

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

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

Prevention & Hardening

Set explicit journal size limits and monitor root filesystem utilization.

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

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.

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

References & Further Reading

systemd-journald service docs and log rotation best practices.

Illustrative mockup for ubuntu-24-04-lts — post-195-2
Illustrative mockup – Progressive Robot — Illustrative mockup — Progressive Robot

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.