Linux Labs

Storage / Stage 7 of 11

LVM snapshots and rollback

Not running Starting usually ~20 s
Leave the lesson

Step 7 of 7 · summary · 2 min

Summary

  • A snapshot keeps the old versions of changed blocks and reads the rest from the origin; if the device fails, it is lost along with the volume.
  • A snapshot's space is used by every change to the origin; at a Data% of 100 the snapshot becomes invalid.
  • A merge returns the whole volume to the snapshot moment and runs with the origin unmounted; a single file comes from the snapshot mounted read-only.
  • The 64 MiB snapshot at the start of the lesson showed the whole 128 MiB volume: it kept only the blocks the update changed and read the rest from the origin.
Ubuntu 24.04
Loading…