<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
External snapshots in general are not documented well enough.</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
<br>
</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
Just extend the current disk, followed by redefining the root partition within the running VM.</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> libvirt-users-bounces@redhat.com <libvirt-users-bounces@redhat.com> on behalf of Peter Krempa <pkrempa@redhat.com><br>
<b>Sent:</b> Tuesday, April 28, 2020 1:39:35 AM<br>
<b>To:</b> Paul van der Vlis <paul@vandervlis.nl><br>
<b>Cc:</b> libvirt-users@redhat.com <libvirt-users@redhat.com><br>
<b>Subject:</b> Re: Migrate to a bigger disk possible?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Mon, Apr 27, 2020 at 20:58:19 +0200, Paul van der Vlis wrote:<br>
> Op 27-04-2020 om 10:41 schreef Peter Krempa:<br>
> > On Mon, Apr 27, 2020 at 10:13:37 +0200, Paul van der Vlis wrote:<br>
> <br>
> >> A point is that I have to create disk(s) on the other side with<br>
> >> qemu-img, I did not found a way to do that automatically. My question<br>
> > <br>
> > We are able to pre-create the storage given that a full copy is<br>
> > requested (copy-storage-all, not copy-storage-inc) and the images reside<br>
> > in a location covered by a libvirt 'directory' storage pool at least on<br>
> > the destination of the migration.<br>
> <br>
> Really interesting. I see an option "--migrate-disks" and I guess this<br>
> will do this. Something like:<br>
> <br>
> virsh migrate --live --p2p --copy-storage-all --persistent \<br>
>   --undefinesource --verbose ----migrate-disks vda \<br>
>   $vm qemu+ssh://$other/system<br>
> <br>
> Is there a way to simply migrate all writeable disks without specifying<br>
> them?<br>
<br>
Yes. --copy-storage-all without actually using --migrate-disks. In the<br>
end --migrate-disks even requires you to specify either --copy-storage-all<br>
or --copy-storage-inc.<br>
<br>
> <br>
> > Unfortunately we can't do it for incremental at this point.<br>
> <br>
> So far I understand it, incremental means something like a<br>
> synchronisation like rsync does. So parts what are allready there, don't<br>
> have to be copied again. Please correct me when I am wrong.<br>
<br>
If you have a backing chain, that means an overlay image on top of the<br>
original base image e.g. a snapshot, then --copy-storage-inc copies only<br>
the overlay image, not all data.<br>
<br>
Obviously if you have only one/base image then everything is copied. So<br>
if you meant to use a full copy, but got it just accidentally I suggest<br>
you use --copy-storage-all.<br>
<br>
> When the disks are not there at the other side, an incremental backup<br>
> would be the same as a full copy.<br>
<br>
No, that is not entirely so. This unfortunately has to do with external<br>
snapshots and it's most probably not documented clear enough.<br>
<br>
> <br>
> >> was what would happen when I would create a bigger disk there then the<br>
> >> original one.<br>
> > <br>
> > I'm not sure now whether the new size will be picked up, but nothing<br>
> > should break, so you can give it a try. Certainly a shutdown and start<br>
> > of the VM will fix it if it's not picked up or a blockresize.<br>
> <br>
> Again thanks for your help!<br>
> <br>
> With regards,<br>
> Paul<br>
> <br>
> <br>
> -- <br>
> Paul van der Vlis Linux systeembeheer Groningen<br>
> <a href="https://www.vandervlis.nl/">https://www.vandervlis.nl/</a><br>
> <br>
<br>
</div>
</span></font></div>
</body>
</html>