<div dir="ltr">Hi,<div><div><br></div><div>I suggest another solution for you (which wasn&#39;t tested as a whole but much simpler in my opinion).</div><div><br></div><div> On the source <span style="font-size:12.8px">environment:</span></div><div><span style="font-size:12.8px">- Create a local DC with a single local storage domain (let&#39;s call it sd1). </span></div><div><span style="font-size:12.8px">- Deactivate and detach the FC domain from the existing shared DC and attach it to the local DC (From oVirt 4.1, attaching a shared storage domain to a local data center is possible). </span></div><div><span style="font-size:12.8px">- Register FC domain VMs (from &#39;VM import&#39; sub-tab under the FC domain).</span></div><div><span style="font-size:12.8px">- Move the disks from the FC domain to the local domain.</span></div><div><span style="font-size:12.8px">- Deactivate, detach and remove <b>without format</b> the local domain from the source environment.</span></div><div><span style="font-size:12.8px">- Maintenance the host in the local data center (let&#39;s call it host1).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"> On the destination environment:</span></div><div><span style="font-size:12.8px">- Add host1 to the destination environment and create a local data center with this host and a new local domain.</span></div><div><span style="font-size:12.8px">- Import the existing local domain (sd1) to the local data center and register its VMs.</span></div></div><div><span style="font-size:12.8px">- Deactivate and detach the iSCSI domain from the existing data center and attach it to the local data center.</span></div><div><span style="font-size:12.8px">- Move all the disks from the local domain to the iSCSI domain.</span></div><div><span style="font-size:12.8px">- Deactivate and detach the iSCSI domain from the local data center, attach and activate it in the shared data center and register its VMs.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks,</span></div><div><pre cols="72" style="white-space:pre-wrap;font-size:12.8px"><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;white-space:normal;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase">ELAD BEN AHARON</p><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;white-space:normal;font-size:10px;margin:0px 0px 4px;text-transform:uppercase">SENIOR QUALITY ENGINEER</p><p style="font-family:overpass,sans-serif;white-space:normal;margin:0px;font-size:10px;color:rgb(153,153,153)"><a href="https://www.redhat.com/" target="_blank" style="color:rgb(0,136,206);margin:0px">Red Hat Israel Ltd.</a></p><span style="font-family:overpass,sans-serif;white-space:normal;font-size:10px;margin:0px;color:rgb(153,153,153)"><p style="margin:0px">34 Jerusalem Road, Building A, 1st floor</p></span><span style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium;white-space:normal"></span><span style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium;white-space:normal"><p style="font-size:10px;margin:0px;color:rgb(153,153,153)">Ra&#39;anana, Israel 4350109</p></span><span style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium;white-space:normal"></span><p style="font-family:overpass,sans-serif;white-space:normal;margin:0px 0px 6px;font-size:10px"><span style="color:rgb(153,153,153);margin:0px;padding:0px"><a href="mailto:ebenahar@redhat.com" target="_blank" style="color:rgb(0,136,206);margin:0px">ebenahar@redhat.com</a>   </span><font color="#999999"> T: </font><a href="tel:+972-9-7692007" target="_blank" style="color:rgb(0,136,206);margin:0px">+972-9-7692007</a><font color="#999999">/</font><a href="tel:8272007" target="_blank" style="color:rgb(0,136,206);margin:0px">8272007</a> </p><table border="0" style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium;white-space:normal"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto" class="gmail-m_8548617302053779112gmail-CToWUd gmail-CToWUd"></a></td><td style="font-size:10px"><a href="https://redhat.com/trusted" target="_blank" style="color:rgb(204,0,0);font-weight:bold">TRIED. TESTED. TRUSTED.</a><br><br></td></tr></tbody></table></pre></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 4:14 PM, Gianluca Cecchi <span dir="ltr">&lt;<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 2:59 PM, Gianluca Cecchi <span dir="ltr">&lt;<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I have a source oVirt environment with storage domain on FC</div><div>I have a destination oVirt environment with storage domain on iSCSI</div><div>The two environments can communicate only via the network of their respective hypervisors.</div><div>The source environment, in particular, is almost isolated and I cannot attach an export domain to it or something similar.</div><div>So I&#39;m going to plan a direct move through dd of the disks of some VMs</div><div><br></div><div>The workflow would be</div><div>On destination create a new VM with same config and same number of disks of the same size of corresponding source ones.</div><div>Also I think same allocation policy (thin provision vs preallocated)</div><div>Using lvs -o+lv_tags I can detect the names of my origin and destination LVs, corresponding to the disks</div><div>When a VM is powered down, the LV that maps the disk will be not open, so I have to force its activation (both on source and on destination)</div><div><br></div><div>lvchange --config &#39;global {use_lvmetad=0}&#39; -ay vgname/lvname<br></div><div><br></div><div>copy source disk with dd through network (I use gzip to limit network usage basically...)</div><div>on src_host:</div><div>dd if=/dev/src_vg/src_lv bs=1024k | gzip | ssh dest_host &quot;gunzip | dd bs=1024k of=/dev/dest_vg/dest_lv&quot;<br></div><div><br></div><div>deactivate LVs on source and dest</div><div><br></div><div>lvchange --config &#39;global {use_lvmetad=0}&#39; -an vgname/lvname<br></div><div><br></div><div>Try to power on the VM on destination</div><div><br></div><div>Some questions:</div><div>- about overall workflow</div><div>- about dd flags, in particular if source disks are thin vs preallocated</div><div><br></div><div>Thanks,</div><div>Gianluca</div><div><br></div></div>
</blockquote></div><br></div><div class="gmail_extra"><br></div></div></div><div class="gmail_extra">Some further comments:</div><div class="gmail_extra"><br></div><div class="gmail_extra">- probably better/safe to use SPM hosts for lvchange commands both on source and target, as this imply metadata manipulation, correct?</div><div class="gmail_extra">- when disks are preallocated, no problems, but when they are thin, I can be in this situation</div><div class="gmail_extra"><br></div><div class="gmail_extra">source disk defined as 90Gb disk and during time it has expanded up to 50Gb</div><div class="gmail_extra">dest disk at the beginning just after creation will normally be of few GB (eg 4Gb), so the dd command will fail when fulll...</div><div class="gmail_extra">Does this mean that it will be better to create dest disk as preallocated anyway or is it safe to run </div><div class="gmail_extra">lvextend -L+50G dest_vg/dest_lv</div><div class="gmail_extra">from command line?</div><div class="gmail_extra">Will oVirt recognize its actual size or what?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>