Red Hat Bugzilla – Bug 1285925
[Docs] [Beta] [REST API] Document freezing/thawing the file-systems of a VM
Last modified: 2016-03-09 18:17:37 EST
RHEV 3.6 supports adding OpenStack Cinder as an external provider. Cinder uses Ceph as its storage back end. Taking a live snapshot of a virtual machine with a Ceph/Cinder disk requires some additional steps.
Daniel Erez explains in bug 1253562:
"[W]e should add documentation for a couple of complementary features that are exposed only through the rest-api: freeze/thaw the file-systems of the VM using qemu guest agent.
During a live snapshot of a VM with Cinder disks, we must freeze filesystems on the guest OS before we take a Ceph snapshot (to ensure a consistent snapshot), and we must thaw back the guest filesystems after the snapshot was finished.
This all done automatically by the engine. However, we've exposed these actions (freeze/thaw) to the rest-api to allow manual invocation by the user (e.g. might be needed in case of a failure in thaw, in which the user can try to manually execute the thaw operation again; without it, the VM would stay unresponsive).
So, it would be helpful to add the following two examples:
1. Freeze the filesystems of the VM using qemu guest agent.
2. Thaw the filesystems of the VM using qemu guest agent.
Assigning to Dayle for review.
Dayle, a quick note that this bug was originally describing a single use case (for Cinder disks), but this feature has a more general application in taking live snapshots for any running virtual machine, so the documentation for this feature should not be limited to just this use case.
Added 2 new topics to the Virtual Machines -> Actions section:
* freezing virtual machine filesystems
* thawing virtual machine filesystems
I decided to keep the topic more generic about live snapshots, as Lucy suggested in the bug (https://bugzilla.redhat.com/show_bug.cgi?id=1285925#c1) as the Cinder/Ceph instructions seem to still apply to the notes here. I've also added a link to the Snapshots section of the VMM Guide.
I've switched the reviewer to Andrew Burden as he helped me out in the beginning with this bug and is already quite familiar with it.
Please let me know if it needs corrections or I've missed something.
Thanks for reviewing!
This content has passed QA and is now published on the Customer Portal as part of the Red Hat Enterprise Virtualization 3.6 Documentation suite.
REST API Guide:
Manually Freezing Virtual Machine Filesystem:
Manually Thawing Virtual Machine Filesystem:
Admonitions have been added to the following topics to alert users of these additional steps for taking snapshots of virtual machines if the virtual disk is on an OpenStack Volume (Cinder) disk:
Virtual Machine Snapshots Sub-collection:
And in the Virtual Machine Management Guide: