Feature #4064
Add quiesce support to qcow2 based disk snapshots for VM's with guest-agent support
Status: | Closed | Start date: | 10/16/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Javi Fontan | % Done: | 0% | |
Category: | Drivers - VM | |||
Target version: | Release 4.14.2 | |||
Resolution: | fixed | Pull request: |
Description
To allow for consistent (no dirty fs cache in VM) disk snapshots please add support for "--quiesce" feature if the VM has guest agent support (the deployment file could be used for this).
Associated revisions
feature #4064: support quiesce for disk snapshots
feature #4064: support quiesce for disk snapshots
(cherry picked from commit 1245c82c1fe24f6c0817a5ca33c7073c0bf80635)
feature #4064: support quiesce for ceph snapshots
feature #4064: support quiesce for ceph snapshots
(cherry picked from commit d0b9591464d7bec9b506c703d1f0184aa905b318)
History
#1 Updated by Ruben S. Montero over 5 years ago
- Tracker changed from Feature to Backlog
- Category set to Drivers - VM
- Target version set to Release 5.0
#2 Updated by Anton Todorov over 5 years ago
I am solving the issue in TM_MAD `snap_create_live` by calling following code before doing the snapshot:
if virsh --connect \$LIBVIRT_URI qemu-agent-command $DEPLOY_ID "{\"execute\":\"guest-fsfreeze-freeze\"}" 2>&1 >/dev/null; then trap 'virsh --connect \$LIBVIRT_URI qemu-agent-command $DEPLOY_ID "{\"execute\":\"guest-fsfreeze-thaw\"}"' EXIT TERM INT HUP fi
If there is no qemu-guest-agent running the snapshot is not worse than the one created with `snap_create` (suspend-snapshot-restore)
Cheers
Anton Todorov
#3 Updated by Ruben S. Montero over 5 years ago
- Target version changed from Release 5.0 to Release 4.14.2
#4 Updated by Ruben S. Montero over 5 years ago
- Tracker changed from Backlog to Feature
#5 Updated by Javi Fontan over 5 years ago
- Assignee set to Javi Fontan
#6 Updated by Javi Fontan over 5 years ago
Anton. I've added your patch to qcow2 drivers with a little modification. Thank you!
#7 Updated by Javi Fontan over 5 years ago
- Status changed from Pending to Closed
- Resolution set to fixed