linux.observer
← All labs

Linux storage / Intermediate / 20–30 min

The disk space that disappeared

A deleted log is still consuming space inside a container. Trace the open file descriptor and recover the space without taking the lab container down.

LAB IDlinux-01-ghost-disk-fullTRACK / linux.observer
Hard disk and server storage for a Linux troubleshooting lab

The scenario

The cleanup job removed a large log, yet the bytes remain allocated. Investigate the container's processes and file descriptors, then recover the space safely.

Mission objectives

  • Find the deleted file still held open by a process.
  • Release its file descriptor without stopping the lab container.
  • Verify the deleted log is no longer held open.

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/linux-01-ghost-disk-full.sh
less linux-01-ghost-disk-full.sh
bash linux-01-ghost-disk-full.sh
cd labs/linux-01-ghost-disk-full
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

Compare directory entries with open file descriptors inside the container.

Hint #2

Use lsof to find deleted open files and identify the process holding the log.

Hint #3 · Deep Dive Runbook on opsbreakfix.com

Read the deep dive runbook ↗

Solved it?

Read the Official Root Cause Analysis & Certification Roadmap on opsbreakfix.com

Continue to opsbreakfix.com ↗

OpsBreakFix ecosystem

Explore the sites.

One connected home for operations knowledge and tools.