Manage virtual disks and snapshots
Use disk images, copy-on-write layers, and snapshots safely.
- Explain when snapshots are useful and when they are risky.
A VM disk is commonly backed by an image file or block device. Many platforms use copy-on-write layers for snapshots and clones: unchanged blocks are shared, changed blocks are written separately. Snapshots are great for short-lived rollback points, but long snapshot chains can increase read amplification and complexity.
Backups and snapshots are not the same thing. Snapshots are local state checkpoints; backups are durable recovery artifacts stored separately. Production operations typically prune old snapshots and keep retention policies explicit.
Practice: build a snapshot chain
Try it
Up to 15 XPWatch copy-on-write happen
Each cell is a block of the disk. Try this:
- Change a block or two, then take a snapshot. What got copied?
- Change one block again, then revert. What came back?
- Take three more snapshots without writing anything. How far does an unchanged block now have to be read?
- Consolidate. What did you gain, and what did you lose?
- Active changes······
- Base imageABCDEF
- Stored on disk
- 6 blocks
- Snapshots
- 0
- Slowest read
- 2 layers read
Try it
Up to 15 XPSnapshot or backup?
A snapshot depends on the disk it came from, so it dies with that disk. Decide which one saves you in each case.
“Roll back a failed upgrade within ten minutes.”
“The storage array holding the VM fails.”
“You find ransomware that got in three weeks ago.”
“Try a risky config change this afternoon.”
“Keep records for seven years for an audit.”
Key takeaways
Explain when snapshots are useful and when they are risky.
VMs are powerful when automation and guardrails stay strong.
Observe before scaling; recover before incidents become outages.
Lesson quiz
5 questions · pass with 4 correct · up to 50 XP
Passing this quiz completes the lesson and keeps your streak going. Questions you miss come back in review sessions later.
Questions about this lesson
Stuck? Ask. Figured something out? Share it. Explaining is one of the best ways to learn.
Loading posts…