<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Thank you Eric for the quick reply!</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<div>Do you know if there's a way to remove (not revert) an external snapshot on a live domain?</div><div><br></div><div>I'm trying to backup (live) machines with the shortest downtime possible.</div><div><br></div>
<div>The script I'm using makes a (full) snapshot of a VM, restore its state, copies (with qemu-img convert) the snapshot out of the qcow file and removes the snapshot.   </div><div><div><br></div><div>Thanks again,</div>
<div> Davide.</div></div></div><br><div class="gmail_quote">2012/10/24 Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 10/24/2012 02:27 PM, Davide Guerri wrote:<br>
> Hi all,<br>
> it's possible to do an internal snapshot with the --disk-only option (for<br>
> qcow2 images)?<br>
<br>
</div>Not with the current qemu implementation.  The qemu folks left room in<br>
the 'blockdev-snapshot-async' monitor command to eventually allow for an<br>
internal snapshot, but haven't wired it up yet.  But if they ever do<br>
wire it up, then libvirt is ready to support it.<br>
<div class="im"><br>
><br>
> The following command<br>
><br>
> virsh snapshot-create-as my-dom my-snap my-description<br>
><br>
> creates an internal snapshot but the following<br>
<br>
</div>Also, be aware that Peter just posted patches to allow for creating an<br>
external snapshot without using --disk-only, with much better response<br>
time than internal snapshots take:<br>
<a href="https://www.redhat.com/archives/libvir-list/2012-October/msg01290.html" target="_blank">https://www.redhat.com/archives/libvir-list/2012-October/msg01290.html</a><br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> virsh snapshot-create-as my-dom my-snap my-description --disk-only<br>
><br>
> creates an external snapshot.<br>
><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Eric Blake   <a href="mailto:eblake@redhat.com">eblake@redhat.com</a>    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br>