rhevm - snapshots

22
RHEV-M Snapshots Raz Tamir

Upload: raz-tamir

Post on 15-Apr-2017

142 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: RHEVM - Snapshots

RHEV-M Snapshots

Raz Tamir

Page 2: RHEVM - Snapshots

OverviewIntroduction

Creation

Preview

Commit

Undo

Delete

Page 3: RHEVM - Snapshots

Snapshots

Page 4: RHEVM - Snapshots

Create Snapshot - Initial

Page 5: RHEVM - Snapshots

Create Snapshot - Initial

Page 6: RHEVM - Snapshots

Create Snapshot - Additional

Page 7: RHEVM - Snapshots

Create Snapshot - Additional

Page 8: RHEVM - Snapshots

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

Page 9: RHEVM - Snapshots

Preview Snapshots

Page 10: RHEVM - Snapshots

Preview Snapshots

Page 11: RHEVM - 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

Page 12: RHEVM - Snapshots

Commit Snapshot

Page 13: RHEVM - Snapshots

Commit Snapshot

Page 14: RHEVM - Snapshots

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

Page 15: RHEVM - Snapshots

Undo Snapshot

Page 16: RHEVM - Snapshots

Undo Snapshot

Page 17: RHEVM - Snapshots

Engine VDSM

RestoreAllSnapshotsCommand

DestroyImageVDSCommand

CommandMultiAsyncTasks --> Task to VDSM deleting volume – lvremove

update volumes – lvchange

GetImageInfoVDSCommand

Undo Snapshot - Flow Of Events

Page 18: RHEVM - Snapshots

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

Page 19: RHEVM - Snapshots

Delete Snapshots

Page 20: RHEVM - Snapshots

Delete Snapshots

Page 21: RHEVM - 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

Page 22: RHEVM - Snapshots

Questions?

Thank you!