SKYHOUSE.dev Journal

Maintaining the Cloud Fortress

Disk-upgrade prep: root cleanup, read-only sudo, and the plex1 backup fix

Why: The root SSD was sitting at 95% full and Damien is about to start a chain of drive upgrades (new boot SSD, a DAS, replacement backup HDDs). Before spending money we wanted to (a) buy breathing room on root, (b) give Claude a few read-only hardware-inspection tools for the upcoming disk work, and (c) finally fix the plex1 nightly backup, which had been silently failing for weeks.

This was a planning session that turned into three concrete pieces of work. The headline: the plex1 backup failure was never a dying drive — it was an accidental NTFS filesystem plus a too-short timeout. The drive is healthy; the job design was broken.

1. Root disk cleanup (95% → 77%)

Root (/dev/sda3, 109 GB) was at 98 GB used / 95%. Almost all the reclaimable space was Docker churn from the steady stream of *arr / Immich / Portainer updates:

Net: 98 GB → 79 GB, 95% → 77%, ~25 GB free. This removes the urgency from the boot-SSD swap — it can now happen on Damien's timeline, not as an emergency. Confirmed afterward that all 21 containers were still healthy (Immich included).

2. Read-only hardware-diagnostics sudo drop-in

This session hit a gap: sudo du wasn't in the allowlist, so Claude couldn't see into root-owned dirs like /var/lib/docker. With a month of disk/hardware work ahead, we added a third sudoers drop-in for strictly read-only inspection.

3. The plex1 backup fix — NTFS was the culprit, not the drive

The nightly backup-plex1.sh had been failing for weeks. The assumption was a timeout or a dying drive. SMART told a different story: sdh (the plex1_backup target, a USB-connected WD Easystore external) is spotless — 0 reallocated, 0 pending, 0 uncorrectable sectors. The real causes were two:

Fix, executed under a warmed sudo lease after triple-confirming /dev/sdh1 = plex1_backup:

4. Two things worth remembering

Net effect: root has 25 GB of headroom again, Claude can read SMART/firmware data for the upcoming drive work, and the plex1 backup is converging for the first time in weeks — on a healthy drive that just needed the right filesystem.

← Back to Admin Hub