fix(asus): own the 8TB backup mounts in ansible and alert on stale backups #186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/asus-backup-mount-durability"
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?
Follow-up to #177. That PR made the backup jobs fail loudly when the drive is gone; this one stops the drive from going gone in the first place, and notices within the hour if a backup stops happening for any other reason.
1.
roles/usb-backup-mountsThe seven btrfs subvolume mounts move to
noauto,x-systemd.automount.systemd-fstab-generatorbinds each.mountunit to the underlying.deviceunit:mountpointstill true.mountunit; path left cleanThat is the whole 2026-08-09 failure: the drive came back as
/dev/sdainstead of/dev/sdc, nothing remounted, anddf/mountpoint/node_filesystem_*all kept reporting a healthy 7.3T/177G over a device node that no longer existed.2. Inventory: asus-laptop loses
unreachable: trueIt was stale - the host answers fine on port 2222 with the standard key - and it was load-bearing in the wrong direction: because the host was marked unmanaged, its backup drive had no owning role, so when the mounts broke there was nothing to fix them with and they had to be repaired by hand.
3.
prometheus-rules-backup-drive.yamlHomelabBackupStale(daily, >36h) andHomelabWeeklyBackupStale(nas namespace, >9d).Deliberately measures the outcome, not the plumbing: during the incident every plumbing signal was green and the only false statement was "a backup completed recently". An
absent()-on-mountpoint alert was considered and rejected - with automount a path is legitimately unmounted until first access, so it would fire after every reboot. Daily/weekly are split becausenas/holds only weekly jobs and one flat threshold would page on all four every week for being healthy (the same mistake caught in #173).Verification (live host + cluster)
--check --difffirst, then applied:ok=8 changed=1 failed=0/dev/sda1with 0 read/write/corruption errorssucceeded=1immich-originals-backupat 88h stale; the weekly rule correctly stays silent on the four nas jobs at 3.7d