Feature #4064

Add quiesce support to qcow2 based disk snapshots for VM's with guest-agent support

Added by Stefan Kooman almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:10/16/2015
Priority:NormalDue 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

Revision 1245c82c
Added by Anton Todorov almost 4 years ago

feature #4064: support quiesce for disk snapshots

Revision 35491244
Added by Anton Todorov almost 4 years ago

feature #4064: support quiesce for disk snapshots

(cherry picked from commit 1245c82c1fe24f6c0817a5ca33c7073c0bf80635)

Revision d0b95914
Added by Anton Todorov almost 4 years ago

feature #4064: support quiesce for ceph snapshots

Revision 6ec37485
Added by Anton Todorov almost 4 years ago

feature #4064: support quiesce for ceph snapshots

(cherry picked from commit d0b9591464d7bec9b506c703d1f0184aa905b318)

History

#1 Updated by Ruben S. Montero almost 4 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 almost 4 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 almost 4 years ago

  • Target version changed from Release 5.0 to Release 4.14.2

#4 Updated by Ruben S. Montero almost 4 years ago

  • Tracker changed from Backlog to Feature

#5 Updated by Javi Fontan almost 4 years ago

  • Assignee set to Javi Fontan

#6 Updated by Javi Fontan almost 4 years ago

Anton. I've added your patch to qcow2 drivers with a little modification. Thank you!

#7 Updated by Javi Fontan almost 4 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

Also available in: Atom PDF