<html><head/><body><html><head></head><body>I more or less have a complete solution. Need some more tests, though. I have discovered a potential problem. When a disk is migrated due to the fact that a new disk is created the UUID is changed.<br><br><div class="gmail_quote">Alexandre DERUMIER <aderumier@odiso.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre style="white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px">for the uri, you can do <br /><br />#info block<br /><br />in monitor, this is the file= part.<br /><br />you can use proxmox sub path to generate it<br /><br />my path = PVE::Storage::path($storecfg, $dst_volid);<br /><br /><br /><br /><br />migration part should be something like<br /><br />$drive = "virtio0";<br />my $targetpath = PVE::Storage::path($storecfg, $dst_volid);<br />PVE::QemuServer::vm_mon_cmd($vmid, "drive-mirror", device => "drive-$drive", target => $targetpath);<br /><br />while{<br />PVE::QemuServer::vm_mon_cmd($vmid, "block-migrate-status");<br />}<br /><br />PVE::QemuServer::vm_mon_cmd($vmid, "block-job-complete", device => "drive-$drive");<br /><br />----- Mail original ----- <br /><br />De: "Michael Rasmussen" <mir@datanom.net> <br />À: pve-devel@pve.proxmox.com <br />Envoyé: Mercredi 9 Janvier 2013 22:12:47 <br />Objet: Re: [pve-devel] Storage
migration: online design solution <br /><br />On Wed, 9 Jan 2013 22:01:42 +0100 <br />Michael Rasmussen <mir@datanom.net> wrote: <br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">On Wed, 09 Jan 2013 12:05:05 +0100 (CET) <br />Alexandre DERUMIER <aderumier@odiso.com> wrote: <br /><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">#drive_mirror -n -f drive-virtio0 sheepdog:<a href="127.0.0.1:7000">127.0.0.1:7000</a>:vm-144-disk-1 </blockquote><br /># info block <br />drive-virtio2: removable=0 io-status=ok <br />file=/dev/pve-storage1_vg/vm-102-disk-1 ro=0 drv=raw encrypted=0 bps=0 <br />bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 <br /><br /># drive_mirror -f drive-virtio2 pve-storage2_lvm:vm-102-disk-2 <br />Invalid block format 'raw' <br /><br />Is raw only supported for destinations other than LVM?
</blockquote><br />Found out that it has to be a URI: /dev/pve-storage2_vg/vm-102-disk-1 <br />works:-) <br /></pre></blockquote></div><br>
-- <br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.</body></html></body></html>