Eric,<div><br></div><div>Following along with your direction I get stuck at virsh blockcopy. I receive an error "unsupported configuration: block copy is not supported with this QEMU binary."</div><div><br></div>
<div>As I originally explained this host is running Red Hat EL6.3.</div><div><br></div><div>Is live blockcopy supported in EL6.3?</div><div><br></div><div>Packages:</div><div>qemu-kvm-0.12.1.2-2.295.el6_3.2.x86_64</div><div>
libvirt-client-0.9.10-21.el6_3.4.x86_64</div><div><br></div><div>Regards,</div><div>Jamie Ian Fargen</div><div><br><br><div class="gmail_quote">On Tue, Feb 12, 2013 at 10:12 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 02/12/2013 06:22 AM, Jamie Fargen wrote:<br>
> Eric-<br>
<br>
[Please don't top-post on technical lists]<br>
<div class="im"><br>
><br>
> Why wouldn't a 'virsh blockcopy --pivot domain src dest' be sufficient to<br>
> migrate the volumes to a new storage pool?<br>
<br>
</div>It IS sufficient, as part of the sequence I documented here:<br>
<div class="im"><br>
>><br>
>> # save off the persistent definition for later<br>
>> virsh dumpxml --inactive $dom > $dom.xml<br>
>> # make the guest transient<br>
>> virsh undefine $dom<br>
>> # remind myself which disks need migration<br>
>> virsh domblklist $dom<br>
>> # for each disk (such as "vda"), do a migration<br>
>> virsh blockcopy $dom $disk /path/to/new --wait --verbose --pivot<br>
>> # make the guest persistent again<br>
>> virsh define $dom.xml<br>
<br>
</div>Or maybe I'm misunderstanding your question.  Are you asking why<br>
blockcopy doesn't work with a persistent domain?  And the answer to that<br>
is because as of at least qemu 1.4, there is no support for remembering<br>
the progress of a block copy across a domain restart; there have been<br>
patches proposed for qemu 1.5 that add a persistent bitmap, and there<br>
are plans to teach libvirt to use this new feature to allow 'virsh<br>
blockcopy' even for a persistent domain, so that you don't have to<br>
juggle through the steps of going to a transient domain just to do the<br>
blockcopy.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Eric Blake   eblake redhat com    <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>
</div></div></blockquote></div><br></div>