dcw2: agent-container storage is a USB flash drive that dropped off the bus (btrfs went read-only, host rebooted) #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened
On 2026-07-22 ~09:23 dcw2 rebooted after its btrfs storage pool failed. Kernel log from the previous boot:
Diagnosis
limit=0— the kernel saw/dev/sdaas zero sectors. The device did not corrupt, it fell off the USB bus while mounted. Every subsequent read is "beyond end of device" because there is no device.corrupt 0, gen 0— no checksum or generation errors. Data was fine; the link died. Confirmed on the next boot by a cleanstart tree-log replay.state EA— btrfs had already flipped to error + aborted-transaction, i.e. the filesystem was unusable, which took down the incus storage pool and the containers on it.The hardware
/dev/sdais154b:1007— a PNY USB 3.2 flash drive (250 GB), on theuasdriver, backing the incus storage poolusband/mnt/usb-noether.This drive hosts
noether— the primary Claude Code agent container, including the canonical agent memory and CLAUDE.md.Ruled out:
vcgencmd get_throttled=0x0, no undervoltage, not even a historical flag.corrupt 0, gen 0above.Remaining suspect: cheap flash controller + UAS + sustained container write load. A well-known Pi 4 failure mode.
Options
usb-storage.quirks=154b:1007:uin/boot/cmdline.txtto disable UAS and fall back to BOT. Slower, far more tolerant of flaky controllers. Requires a reboot of dcw2, which drops noether/pica/pipi/orca/dcc2.Related fix already applied
dcw2 had no persistent journal (Raspberry Pi OS ships
/usr/lib/systemd/journald.conf.d/40-rpi-volatile-storage.confforcingStorage=volatile) and no rsyslog, so boot -1 was unrecoverable — the log above came from a human clipboard, not from disk. Persistent journald is now configured (99-persistent.conf,Storage=persistent,SystemMaxUse=500M,MaxRetentionSec=2month) and verified writing to/var/log/journal/. A recurrence will now be diagnosable.