Skip to content
Clairos Learn

Troubleshooting · Lesson 12 of 26 · 8 minutes

Incident disk filling

Use disk and log evidence for storage triage.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated Linux lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Junior operators build confidence by gathering evidence before changing systems.

df
Inspect the virtual filesystem capacity report. Real systems can run out of space or inodes independently.

Available space is a snapshot, not a guarantee that a later write will succeed.

du
Estimate usage attributed to files or directories; compare it with filesystem capacity when investigating storage.

du describes file usage, whereas df describes filesystem capacity.

find
Search directory trees by criteria rather than relying on one shallow listing.

Quote wildcard patterns so find receives them instead of the shell expanding them first.

Worked example and expected result
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
lab-root         20G  6.4G   14G  32% /
lab-logs        2.0G  180M  1.9G   9% /var/log

Exit status: 0. The command completed successfully in the training fixture.

$ du -sh /var/log
3K	/var/log

Exit status: 0. The command completed successfully in the training fixture.

$ find /var/log -name .1
/var/log/nginx-access.log.1
/var/log/nginx-error.log.1

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Repeat this workflow in the sandbox with a different scratch filename. Keep the system fixtures unchanged and compare the observed output with your expectation before moving on.

Explain it

In “Incident disk filling”, which interpretation is safe?

Apply it elsewhere

Before adapting the du workflow from “Incident disk filling” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Incident bad deployTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Incident website downTriage a simulated website outage from service, config, and logs.Practice
  2. 02Incident bad deployCompare configs and hash scripts during deploy triage.Practice
  3. 03Incident unknown listenerMap a listener to process and firewall evidence.Practice