Use it when the storage-protection question has been narrowed to Snapshots → Copy-on-Write Snapshot. Preserve object identity, timestamps, dependency state and the newest authoritative data before changing configuration, deleting snapshot state, resynchronizing or changing replication ownership.
Copy-on-Write Snapshot
On the first post-snapshot write to an existing location, the original contents are copied into snapshot-preserved space before the new data replaces the active block. Reads choose the active or preserved copy according to snapshot mapping.
1. Copy-on-write snapshots copy old data before overwriting.
2. Extra write per first change (classic LVM, VSS).
3. Snapshot area can fill and invalidate.
4. Performance impact on writes.
5. Keep short-lived.
write → copy old block to snapshot area → overwrite
Context & applicabilityCommon mistakes · platform/version boundaries
A valid CoW mapping shows the original version was preserved for that overwritten region, but it does not show every block, application transaction or backend device is healthy.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
write request → snapshot map lookup → preserve original block → active overwrite → snapshot pointer → backend media
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Copy-on-write ≠ redirect-on-write.
- First-write overhead can be higher than later overwrites.
- Snapshot reserve exhaustion can invalidate protection.
- CoW snapshot ≠ independent backup.
lvs -o lv_name,origin,data_percent— classic LVM COW fillvssadmin list shadowstorage— VSS diff areazfs list -t snapshot— ZFS (COW filesystem)
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
A valid CoW mapping shows the original version was preserved for that overwritten region, but it does not show every block, application transaction or backend device is healthy.
In depth
Copy-on-write: the first change to a block copies the old version aside
With copy-on-write (COW), a snapshot starts empty. On the first write to an origin block after the snapshot, the old content is copied to the snapshot area, and then the origin is overwritten. Reads from the snapshot come from the copied blocks, or from the unchanged origin.
Classic LVM snapshots are COW
lvcreate(8) describes two snapshot kinds. A COW snapshot is created when a size is given with -L; that space comes from the VG and holds the copied blocks. The manual notes that often 20 % of the origin is enough. A thin snapshot is created from a thin origin without a size and shares blocks in the thin pool. --monitor lets dmeventd extend a COW snapshot automatically.
# lvcreate -s -l 20%ORIGIN -n data_snap vg0/data
# lvs -o lv_name,origin,lv_size,data_percent vg0
LV Origin LSize Data%
data 500.00g
data_snap data 100.00g 3.42
# mount -o ro /dev/vg0/data_snap /mnt/snap # back up from here
# lvremove vg0/data_snap
Data% on a COW snapshot is how full its copy area is. If it reaches 100 %, the snapshot becomes unusable.
Performance effect
| Phase | Cost |
|---|---|
| Create | Near instant |
| First write per block after creation | Extra read and write (copy, then write) |
| Several COW snapshots of one origin | Each write may copy to each snapshot |
| Delete | Cheap |
COW versus redirect-on-write
ZFS, Btrfs and LVM thin snapshots write new data to new locations (redirect-on-write) instead of copying old blocks, so they avoid the double write. Prefer thin snapshots over classic COW snapshots for anything kept longer than a backup run.
Documented example, not captured output.
Quick reference
With copy-on-write (CoW), the first write to a block after the snapshot copies the original block to the snapshot area, then overwrites the live block. Each first write therefore costs one read and two writes. LVM classic snapshots and VMware's older VMFS snapshots behave this way.
Impact: write latency rises while snapshots exist, and an LVM CoW snapshot becomes invalid if its reserved space (-L) fills up. Check with lvs -o lv_name,data_percent.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Snapshots → Copy-on-Write Snapshot. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/man/master/8/zfs-snapshot.8.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Snapshots → Copy-on-Write Snapshot proof map
Fast identity, dependency, failure-boundary and acceptance checks for Snapshots → Copy-on-Write Snapshot.
| 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 | A valid CoW mapping proves the original version was preserved for that overwritten region; it does not prove every block, application transaction or backend device is healthy. | Correlate evidence for the same operation and time window |
| Acceptance | Healthy evidence for Copy-on-Write Snapshot: 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 |