liveBook · Manning

Crash consistent snapshot

As explained in 100 SQL Server Mistakes and How to Avoid Them

A crash-consistent snapshot captures storage as it exists during or immediately after a crash without ensuring that application I/O has been flushed coherently.

A crash-consistent snapshot is a block-level, point-in-time copy that preserves disk write order but does not flush database I/O coherently. It may leave SQL Server inconsistent when transactions are in flight. section 12.3 section 12.12

Mistake: treating a VM snapshot as a reliable database recovery strategy. The snapshot can appear valid until restoration, when buffered data and already-written data no longer describe one coherent database state. section 12.3

Bad-change rollback

A change plan restores a database-hosting VM after a failed deployment. If its storage protection is crash-consistent, the rollback may restore a corrupted database rather than a usable recovery point. section 12.3

Use these checks before relying on storage snapshots for SQL Server:

  • Confirm that the provider supports application-consistent snapshots, not only crash-consistent snapshots. section 9.7
  • Verify that Volume Shadow Copy Service (VSS) flushes pending I/O before the snapshot. section 9.7 section 12.3
  • Keep validated database backups in the recovery strategy; use snapshots as a rapid-recovery complement rather than a replacement. section 12.12

How 100 SQL Server Mistakes and How to Avoid Them covers it

How deep it goes
Defines block-level consistency, explains buffer-cache risk, and contrasts VSS-based application consistency.
Examples
Uses disk or VM restoration after a bad change to demonstrate why crash-consistent rollback can fail.
What it assumes
Assumes basic storage snapshots and SQL Server recovery knowledge while explaining buffered I/O and VSS from operational context.
What you can do after
Evaluate snapshot safety by checking application consistency, VSS integration, and backup coverage.
How it connects
Connects storage snapshots with SQL Server, VM recovery, application-consistent snapshots, VSS, backups, and database corruption.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of 100 SQL Server Mistakes and How to Avoid Them. The section links point to the parts of the book it draws on.