Snapshot
Cheat sheet · https://pcornel.dk/topic.php?topic=3975
Answer
Classic LVM snapshots depend on a copy-on-write exception store; thin snapshots share pool blocks and metadata. Both depend on the source and LVM storage remaining healthy, and neither is an independent backup by itself.
Remember
- LVM snapshot ≠ backup.
- Snapshot creation ≠ application-consistent capture.
- Classic snapshot free COW space ≠ thin-pool headroom.
- Snapshot present ≠ restore tested.
First checks
lvcreate -s -L 5G -n snap <vg>/<lv>— classic snapshotlvs -o lv_name,origin,data_percent— snapshot filllvconvert --merge <vg>/snap— roll back
Verify in this order
origin writes → COW to snapshot space
Where it usually breaks
First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.
Logical Volume Management → Snapshot LVM map
| LVM boundary | What to verify | Proof limit |
|---|---|---|
| Identity / mapping | PV, VG, LV/thin-pool identity, size, membership and activation/mapping | Object presence alone does not prove upper filesystem or lower path health |
| Allocation / capacity | VG extents, LV size, thin data + metadata usage and upper-consumer capacity | Free capacity at one layer does not prove allocation succeeds end to end |
| Failure boundary | A snapshot that can be activated/read proves a point-in-time block view is currently accessible; it does not prove application consistency, independence from source failure or successful disaster recovery. | Correlate LVM evidence with both consumer and lower block path before recovery |
| Acceptance | Healthy evidence: snapshot dependencies are understood, COW/pool capacity is sufficient, source and snapshot mappings are healthy and representative recovery/read-back testing matches the intended consistency level. | Close only after the original workload and independent read-back/consistency check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3975