summaryrefslogtreecommitdiff
path: root/openbsd/frontends/scripts
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-20 17:28:36 +0300
committerPaul Buetow <paul@buetow.org>2026-06-20 17:28:36 +0300
commitc9f06a21fb1daa74c9db341636a2c4b118bda1d8 (patch)
treec99369f8da6b3ef49850d92d0396caa00d7d8f99 /openbsd/frontends/scripts
parent6c13b6a253aec415b8ad850df4abfcecc8efbcd7 (diff)
carp: rollback sink to last snapshot on BACKUP transition
After a CARP failover where f1 serves as MASTER, any NFS writes go to the sink dataset (zdata/sink/f0/zdata/enc/nfsdata). When f1 returns to BACKUP, zfs receive from f0 fails with "destination has been modified since most recent snapshot" because the filesystem state is ahead of the last received snapshot. Fix: on BACKUP transition, roll the sink back to the last zrepl snapshot before setting readonly=on. Writes during the MASTER window (health checks, test writes) are intentionally discarded — f0 is authoritative and replication resumes cleanly from the common snapshot. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'openbsd/frontends/scripts')
0 files changed, 0 insertions, 0 deletions