Sign inSign up free

Something Is Filling the Disk

hard 40 XP ~10 minHands-on lab

Disk usage alerts are firing: /srv/lab/logs grows by about a megabyte a second. Three services (indexer, reportd and harbor) write logs there, and their log names don't make it obvious which file belongs to which process.

Task

  • Stop only the process that is filling the disk. The other two keep running and keep logging.
  • Write its PID (just the number) to /home/student/culprit.pid.
  • Shrink its log to its last 1000 lines (keep that file, at the same path, with exactly those lines) so the space is freed and the end is kept for the post-mortem.
  • Don't touch the other logs.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.