Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Disk full

Runbook for a server whose disk filled up under a public website - find what grew, free space only through the safe commands (caches, log archives), never touch uploads, settings or the database by hand, and watch what…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/operations/incidents/disk-full.md

On this page

Disk full

This runbook is for administrators when the disk under a public website is full. A full disk causes most "site down" symptoms. The detailed procedure is Disk full (hosting runbook); this page adds the checks a public body needs afterwards.

Contents

  1. Find what grew
  2. Free space safely
  3. What never to remove
  4. The audit trail while the disk was full
  5. Prevent it
  6. Related pages

Find what grew

df -h
du -sh var/* | sort -h | tail -15
./console exp:logs --list

Look outside the installation too: backups written to the same disk, the database's data directory, system logs.

Free space safely

php bin/php/ezcache.php --clear-all --allow-root-user   # caches are regenerated
./console exp:logs --archives                           # see the log archives
./console exp:logs --prune --dry-run                    # what pruning would remove
./console exp:logs --apply --prune
./console exp:logs --apply --compress

A log growing by megabytes a minute is a symptom: find out why before emptying it with ./console exp:logs --apply --truncate=<key> (the content stays in the .1 archive). Warm the caches again when there is space: php bin/php/warm.php --allow-root-user.

What never to remove

PathWhy
var/storage, var/<site>/storageuploads and images: the organization's content
settings/configuration
var/storage/sqlite3/the SQLite database with its -wal and -shm files
var/<site>/log/audit/the audit trail: evidence; archive it, do not delete it

Do not run rm -rf under var/ by hand during an incident; use the commands above.

The audit trail while the disk was full

With [AuditSettings] OnWriteFailure=continue (the default) the site went on and unwritten records were noted in error.log as AUDIT-UNWRITTEN; the audit dashboard warns. With refuse, security-relevant actions were refused (AUDIT-REFUSED) (Audit trail, "When the audit cannot write"). Afterwards:

./console exp:logs --search=AUDIT-UNWRITTEN --file=var/log/error.log
./console exp:audit verify --allow-root-user

Record the gap in the audit trail in your incident notes: an auditor will ask about it.

Prevent it

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x