dataiotech Labs
dbaguidedbaguideDBAdataxtoolsdataopsphere
Home/Error Library/mongodb-no-space-left-on-device-wiredtiger-cache-full
MongoDB
MongoDB 6.0 - 8.0Disk & WiredTiger
12 min read
No space left on device / WiredTiger: cache is full / Out of disk space

MongoDB Disk Exhaustion & Cache Stall: Journal/Data Storage Decoupling, TTL Purging & Emergency Freeing

Preventing catastrophic engine freezes when disk capacity hits 100%, configuring wiredTigerCacheSizeGB, automated TTL index eviction, and journal disk isolation.

Reviewed by:Senior Database Architect & SRE (dataiotech Labs)
Tested Versions: MongoDB 6.0 / 7.0 / 8.0

Operational Verification & Reliability Metadata

Last Technical Review: 2 Kasım 2026
Tested VersionsMongoDB 7.0.8, 8.0.1 (Docker / Atlas)
Required PrivilegesOS root/sudo and MongoDB clusterAdmin
Risk Assessment
Criticalmongod process aborts immediately when disk space hits 100% capacity
Expected OutputFilesystem utilization on /var/lib/mongodb dropping below 80%
Rollback Procedure:Expand EBS volume or LVM partition
MongoDB Docs: WiredTiger Storage Engine
First 60 Seconds Emergency Protocol:

The error string is a symptom, not the root cause. Do not restart the server blindly. Run the diagnostic queries below to pinpoint the actual failure mode.

▸Symptom

mongod terminates with fatal disk capacity assertions:

plaintext
WiredTiger error: handle-write: No space left on device Fatal Assertion: terminating due to unrecoverable storage engine error

▸What You See in Production

The service crashes. Restart attempts abort during journal initialization.


▸Root Cause Matrix

ProbabilityRoot CauseDescription
%60Journal & Diagnostic Disk SaturationDiagnostic metrics and journal files exhaust local storage volume.
%25Cache Eviction StallDirty cache pages cannot flush to disk due to I/O saturation.
%15Storage FragmentationLarge deletes do not release allocation blocks to the host filesystem.

▸EMERGENCY RUNBOOK (0-5 min)

bash
# 1. Free diagnostic metrics rm -rf /var/lib/mongodb/diagnostic.data/* # 2. Truncate logs echo "" > /var/log/mongodb/mongod.log sudo systemctl start mongod

▸PERMANENT BLUEPRINT

  1. 1Decouple Journal Partition: Place journals on dedicated I/O mounts.
  2. 2TTL Index Expirations: Automate eviction for ephemeral data structures.
  3. 3Cache Sizing: Budget wiredTigerCacheSizeGB at 50% of available RAM.

▸Verification

javascript
db.stats();

Other Database Error Triage Playbooks

Other battle-tested diagnostic guides for high-severity database errors.

All Errors (82)