Archived
Check NixOS configurations / eval-hosts (push) Successful in 10m27s
The metadata creation check used grep -q "UpToDate" which matches when the resource is DOWN — drbdadm dstate reads metadata directly and returns just "UpToDate" (no slash) for a down-but-previously-synced resource. This caused metadata creation to be silently skipped, leaving mismatched UUIDs from an interrupted sync which cause DRBD to go WFConnection→StandAlone immediately. Fix: require exact "UpToDate/UpToDate" (with slash, only possible when the resource is UP and both disks are confirmed synced) before skipping. Also give the StandAlone detection a 5-iteration (15 s) grace period before dying, to avoid false-positive on the first few ticks while the peer is still coming up. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>