Get your free beta license ↗
Panel and server · Linux

Services fail with “No space left on device”

Last updated 30 Nov 2026
Summary

MariaDB, mail, or the web interface fails, and its logs show No space left on device. The Linux server's disk is full, so find what filled it, often local backups, and free up space.

Symptoms

Services fail to write, and their logs show No space left on device. The root filesystem shows 100% usage in df -h.

df -h /

Cause

The server's disk is full. Common causes are local backups, logs, or one customer's files. UrbeStack keeps local backups in /backups for 5 days unless you change the setting.

Resolution

  1. Find the largest top-level directories on the root filesystem.

    du -xh --max-depth=1 / | sort -h | tail
  2. Check the size of the local backups.

    du -sh /backups
  3. To keep fewer days of backups, set the retention period to 3 days. The nightly run removes the older backups.

    urbestack-setting-set --key backups.keep_days --value 3
  4. See which customers used the most space at the last nightly measurement.

    urbestack-disk-usage
  5. To shrink the system journal to 200 MB, run the following command.

    journalctl --vacuum-size=200M
  6. When df -h / shows available space, restart the services that failed. For MariaDB, run urbestack-service-restart --name mariadb.