# Services fail with "No space left on device"

UrbeStack sysadmin note about Linux. Last updated 30 Nov 2026.

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

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

```
du -xh --max-depth=1 / | sort -h | tail
```

Check the size of the local backups.

```
du -sh /backups
```

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
```

See which customers used the most space at the last nightly measurement.

```
urbestack-disk-usage
```

To shrink the system journal to 200 MB, run the following command.

```
journalctl --vacuum-size=200M
```

When `df -h /` shows available space, restart the services that failed. For MariaDB, run `urbestack-service-restart --name mariadb`.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
