Pcornel
Storage · Storage Fundamentals

Ephemeral Storage

Cheat sheet · https://pcornel.dk/topic.php?topic=3845

Back to the Topic

Answer

Ephemeral storage is useful for caches, scratch space, temporary build data and other replaceable state. Its value comes from treating data loss as an expected lifecycle event rather than an exceptional storage failure.

Remember

  • Ephemeral does not mean memory-only; it may use SSD/HDD backing.
  • Ephemeral data can survive some reboots yet still be unsupported across instance recreation or rescheduling.
  • Critical state placed on ephemeral storage creates an application durability defect even when the storage device is healthy.
  • Performance can be excellent without offering persistence guarantees.

First checks

  • kubectl describe pod <pod> | grep -A3 emptyDir — ephemeral volumes
  • df -h /tmp /var/lib/docker — ephemeral usage
  • lsblk | grep nvme — instance store disks (cloud)

Verify in this order

workload → ephemeral volume → lost on restart

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Storage Fundamentals → Ephemeral Storage reference map

BoundaryWhat it meansEvidence limit
Consumer viewWhat the workload/OS believes is availableDoes not prove lower-layer allocation, path or media health
Logical storageVolume/LUN/share/pool/datastore or object namespace presented to the consumerObject existence does not prove backing capacity or correct ownership
Transport/backingProtocol, path, controller, storage service and protection that carry/persist I/OPath/control-plane health does not prove application data
AcceptanceOriginal data can be written, committed and read back correctly by the intended workloadRequired for end-to-end closure

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3845

Confirmation

Confirm action

Continue?