Crash-consistent Backup
Cheat sheet · https://pcornel.dk/topic.php?topic=3631
Answer
A crash-consistent VM backup captures the disks as if the VM lost power at that moment. Journaling filesystems and most databases recover from it, but applications are not quiesced, so use application-consistent backups for databases where possible.
Remember
- Crash-consistent ≠ corrupted by definition; it means no application-consistency guarantee.
- Filesystem journal recovery ≠ application transaction consistency.
- VM boots after restore ≠ stateful application is correct.
- Workload suitability depends on application recovery semantics.
First checks
backup job log— consistency typeqm config <vmid> | grep agent— agent disabled → crash-consistentfsck / chkdsk after restore— recovery behaviour
Verify in this order
snapshot without quiesce → copy
Where it usually breaks
First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.
VM Backup → Crash-consistent Backup reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Capture | Disk-consistent point without app quiescence | Power-loss-like semantics |
| Filesystem | May replay journal | Not app consistency |
| Application | May perform crash recovery | App-specific |
| Acceptance | Integrity/function test passes | Required for stateful apps |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3631