Capstone disk pressure
Investigate disk pressure and log retention evidence.
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.
logrotate- Inspect or dry-run a simulated log-rotation policy.
A dry run reports intended behavior without rotating real logs.
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 -hFilesystem 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/log3K /var/log
Exit status: 0. The command completed successfully in the training fixture.
$ logrotate -d /etc/logrotate.d/nginxdebug: reading /etc/logrotate.d/nginx
debug: rotation pattern accepted
debug: would rotate /var/log/nginx-access.log and /var/log/nginx-error.log
/var/log/nginx-*.log {
daily
rotate 7
compress
missingok
notifempty
}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.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Capstone suspicious loginTry an incident drillAnonymous 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
- 01Capstone website outageInvestigate a website outage using service, config, logs, and listeners.Practice
- 02Capstone suspicious loginReview auth evidence, SSH policy, firewall state, and notes.Practice
- 03Capstone bad deployReview deployment script, config diff, nginx validation, and rollback notes.Practice