Redirect-on-Write
Cheat sheet · https://pcornel.dk/topic.php?topic=4221
Answer
Redirect-on-write is a snapshot method where new writes go to fresh blocks while the snapshot keeps pointing at the old ones. There is no extra copy on write, so snapshot overhead stays low, but metadata integrity becomes critical.
Remember
- Redirect-on-write ≠ copy-before-overwrite.
- Metadata integrity is critical to both active and snapshot views.
- Free-capacity pressure can still threaten writes.
- RoW snapshot ≠ immutable off-system backup.
First checks
zfs get written <ds>@<snap>— data written since snapshot (ZFS, redirect-on-write)btrfs subvolume list -s <mount>— Btrfs snapshotsarray snapshot reserve— array view
Commands
zfs list -o name,used,usedbysnapshots
Verify in this order
write → new location; snapshot keeps old pointers
Where it usually breaks
First mismatch in source consistency → capture/journal → transport → repository/replica → catalog/checkpoint → restore/failover read-back; preserve identity/pre-state before mutation.
Snapshots → Redirect-on-Write proof map
| Storage boundary | What to verify | Proof limit |
|---|---|---|
| Identity / state | Correct object, source/target or snapshot point and same-window timestamps | Inventory alone does not prove data correctness |
| Dependency path | Snapshot mapping/chain, active write target, capacity and backing storage | A healthy adjacent component is not end-to-end proof |
| Failure boundary | Successful redirected writes prove new active mappings were committed; they do not prove snapshot independence, application consistency or sufficient future capacity. | Correlate evidence for the same operation and time window |
| Acceptance | Healthy evidence for Redirect-on-Write: the expected point-in-time mapping and dependency chain are intact, required backing data is readable, and the intended snapshot lifecycle action completes with correct current-data read-back. | Close only after original read-back/recovery test and protection-state verification |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4221