Add full VM snapshot support #153

Closed
opened 2022-06-16 11:45:47 -04:00 by joshuaboniface · 3 comments

Libvirt and the RBD backend support full snapshots; implement them.

Libvirt and the RBD backend support full snapshots; implement them.
joshuaboniface added the
feature
label 2022-06-16 11:45:47 -04:00
Author
Owner

It seems that libvirt does not suppor this for non-qcow2-backed systems at this time.

It would be possible though to simply implement this for all blockdevs attached to a VM to simplify that usecase, so we can do that instead.

It seems that libvirt does not suppor this for non-qcow2-backed systems at this time. It would be possible though to simply implement this for all blockdevs attached to a VM to simplify that usecase, so we can do that instead.
joshuaboniface started working 2022-09-21 09:40:11 -04:00
joshuaboniface stopped working 2022-09-21 09:40:21 -04:00
10s
joshuaboniface deleted spent time 2022-09-21 09:40:28 -04:00
- 10s
Author
Owner

I think this could be done in a crude way by doing:

  1. virsh pause on the VM
  2. Quickly snapshotting all volumes
  3. virsh unpause on the VM

It should be quick enough to be impreceptable given that RBD snapshots are basically instantaneous to create.

The collection of disk snapshots could then be saved/referenced by a "vm snapshot" database that ensures they could be used.

The big question comes from tasks beyond making the snapshot, like restoring from a snapshot. This is not something that has been implemented yet in PVC so doing so for individual RBD snapshots would be the best first step.

I think this could be done in a crude way by doing: 1. `virsh pause` on the VM 2. Quickly snapshotting all volumes 3. `virsh unpause` on the VM It should be quick enough to be impreceptable given that RBD snapshots are basically instantaneous to create. The collection of disk snapshots could then be saved/referenced by a "vm snapshot" database that ensures they could be used. The big question comes from tasks beyond *making* the snapshot, like restoring from a snapshot. This is not something that has been implemented yet in PVC so doing so for individual RBD snapshots would be the best first step.
Author
Owner

This idea has been superseded by VM backups, which is more in line with the overall goals, and has now been implemented. Backup (including incremental backup) and restore is supported. This does require external storage of some kind, but provides a more robust option than simply snapshotting/rolling back snapshots.

This idea has been superseded by VM backups, which is more in line with the overall goals, and has now been implemented. Backup (including incremental backup) and restore is supported. This does require external storage of some kind, but provides a more robust option than simply snapshotting/rolling back snapshots.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: parallelvirtualcluster/pvc#153
No description provided.