ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
RHEV-M Snapshots
Raz Tamir
Overview
Introduction
Creation
Preview
Commit
Undo
Delete
Snapshots
Create Snapshot - Initial
Create Snapshot - Initial
Create Snapshot - Additional
Create Snapshot - Additional
Engine VDSM
CreateAllSnapshotsFromVmCommand
CreateSnapshotVDSCommand
CommandMultiAsyncTasks --> Task to VDSM Run and protect: createVolume
creating volume - lvcreate
qemu-img create -f qcow2 -F raw -b ...
GetImageInfoVDSCommand
Create Snapshots - Flow Of Events
Preview Snapshots
Preview Snapshots
Engine VDSM
TryBackToAllSnapshotsOfVmCommand
TryBackToSnapshotCommand
CreateSnapshotVDSCommand
CommandMultiAsyncTasks --> Task to VDSM Run and protect: createVolume
creating volume - lvcreate
qemu-img create -f qcow2 -F raw -b .
GetImageInfoVDSCommand
Preview Snapshot - Flow Of Events
Commit Snapshot
Commit Snapshot
Engine VDSM
RestoreAllSnapshotsCommand
DestroyImageVDSCommand
CommandMultiAsyncTasks --> Task to VDSM Run and protect: deleteVolume
update volume – lvchange (change tags)
delete LV – lvremove
GetImageInfoVDSCommand
Commit Snapshot - Flow Of Events
Undo Snapshot
Undo Snapshot
Engine VDSM
RestoreAllSnapshotsCommand
DestroyImageVDSCommand
CommandMultiAsyncTasks --> Task to VDSM deleting volume – lvremove
update volumes – lvchange
GetImageInfoVDSCommand
Undo Snapshot - Flow Of Events
Delete Snapshots
The deletion of a snapshot does not necessarily cause the data in the snapshot to be
deleted
The data from the deleted snapshot and the snapshot created after the deleted
snapshot are merged into a single COW volume
No data has been removed, only the ability to restore a point in time in the life of the
virtual machine hard disk image
Delete Snapshots
Delete Snapshots
Engine VDSM
RemoveSnapshotSingleDiskCommand
MergeSnapshotsVDSCommand
CommandMultiAsyncTasks --> Task to VDSM MergeSnapshots
Creating volume - lvcreate (e.g. ..._MERGE)
qemu-img convert from to (-O fmt -f fmt )
deleting volume – lvremove
GetImageInfoVDSCommand update volumes – lvchange
Delete Snapshot - Flow Of Events
Questions?
Thank you!

More Related Content

RHEVM - Snapshots

Editor's Notes

  • #19: When deleting a snapshot, the data from the deleted snapshot and the snapshot created after the deleted snapshot are merged into a single COW volume. After the two snapshots are merged, the resultant volume contains any data that was created or modified prior to the deleted snapshot and after the deleted snapshot. No data has been removed, only the ability to restore a point in time in the life of the virtual machine hard disk image.