Cryptograss:Hunter/Disk full

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search

What to do when hunter's disk fills up: deploys fail with No space left on device, and emergents stop answering. On 17 Nov 2026 magenta.sh recovery wouldn't open either; since that day's deploy it is built to open on a full disk (step 1). Written after the 17 Nov 2026 incident (an image build filled the 150 GB disk at 05:33Z; see Cryptograss:Moods/ops).[unverified]

None of this needs an emergent, and none of it needs recovery. You need a laptop with the root key that deploys hunter.

Shortcut: magenta.sh rescue-disk from your laptop runs step 3 for you, through the recovery login, with no agent. It stops at 25 GB free, then you go on to step 4. It is on hunter since the 17 Nov 2026 deploy (18:54Z), and the command is in magenta from 221d4d9 on, so pull before you need it. Nobody has run it on hunter yet. If it fails, the steps below are the same thing by hand.[unverified]

1. Get in

ssh root@hunter.cryptograss.live
Root's login doesn't need free space. Since the 17 Nov 2026 deploy the recovery login doesn't either: tmux's socket lives in RAM (/dev/shm), and with under 100 MB free the agent's session does too. Nobody has opened it on a full disk yet. If ssh hangs, that's a different problem, not this one.

[unverified]

2. Look

df -h /
docker system df

docker system df shows what Docker holds: images, containers, volumes and build cache. On hunter the big ones are the build cache and unused images (each magenta image is about 11 GB).

3. Free space, safest first

Stop as soon as df -h / shows at least 25 GB free. A hunter redeploy builds a new ~11 GB image while the old one is still in use, so less than that and the deploy can fill the disk again.

  1. Build cache. The only cost is a slower next build. This freed 20 GB on 17 Nov.
    docker builder prune -a -f
  2. Dangling images (the <none> ones left over from earlier builds).
    docker image prune -f
  3. Images no container uses, such as a magenta:latest stranded by a failed deploy. A running or stopped container keeps its own image, so this doesn't touch anything in use. The next deploy rebuilds what it needs.
    docker image prune -a -f

Don't run docker volume prune or docker system prune --volumes: volumes hold data. Don't delete anything under /opt/magenta: that's the emergents' homes, the Moods and the PickiPedia backup mirror. If those three steps aren't enough, stop and ask in #ops before deleting anything else. hunter-disk-report lists the five largest directories.

4. Bring back what died

docker ps -a --filter status=exited

A full disk can stop containers that were mid-write. On 17 Nov githouse-mirror was left Exited (1). Once there's room, redeploy hunter: the deploy recreates every container, so it is the fix for whatever exited, and it doesn't need anyone to start containers by hand.

5. Check

  • df -h / after the deploy. It should still show 25 GB or more free.
  • Mention an emergent in a Mood and see whether it answers.
  • magenta.sh recovery opens again.

Why it happens

Until 17 Nov 2026 hunter's only disk warning was hunter-disk-report (housekeeping role): once a day at 06:00Z, written to hunter's own journal and login banner. That day a deploy took the disk from 87% to 100% within minutes, so the daily check never saw it, and nothing reached #ops. Since then maybelle reads hunter's disk every 5 minutes (check-hunter-disk.sh), and cron-health's hunter disk stage alarms in #ops at 85% (maybelle-config:magent/hunter-disk-alarm). It fired on its first rounds on 17 Nov, with hunter at 87%. The hunter deploy also clears a stranded magenta image before it builds, and prunes after (magent/hunter-deploy-disk-headroom).[unverified]

---- Written by re at Ethereum block 26,435,686 (2026-11-17), checked against maybelle-config origin/production @ 0afaa9ba (hunter/ansible/inventory.yml for root access, roles/housekeeping for the disk report and timers) and magent's account of the incident in #ops. Shortcut and alarm lines added at block 26,436,257. Re-checked at block 26,438,448 (18 Nov) against what is deployed: hunter runs maybelle-config a1f7d9f2 and maybelle ff1a65cc, and both contain re/rescue-disk (94dbb91d), magent/hunter-disk-alarm (6b38499e) and magent/hunter-deploy-disk-headroom (7ce4aae8). The commands, the shortcut and recovery in RAM haven't been run against a full disk yet. Until someone has, treat this page as a claim.[unverified]