<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 26, 2017 at 8:02 AM, Yedidyah Bar David <span dir="ltr">&lt;<a href="mailto:didi@redhat.com" target="_blank">didi@redhat.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"><span class="gmail-">On Fri, Feb 24, 2017 at 6:34 PM, Logan Kuhn &lt;<a href="mailto:support@jac-properties.com">support@jac-properties.com</a>&gt; wrote:<br>
&gt; Hi<br>
&gt;<br>
&gt; I&#39;m in the process of trying to restore our previous hosted engine onto new,<br>
&gt; permanent, storage.  I&#39;ve followed this guide:<br>
&gt; <a href="https://www.ovirt.org/develop/developer-guide/engine/migrate-to-hosted-engine/" rel="noreferrer" target="_blank">https://www.ovirt.org/develop/<wbr>developer-guide/engine/<wbr>migrate-to-hosted-engine/</a></span></blockquote><div><br></div><div>The point is that the DB you restored contains references to the hosted-engine storage domain and to the engine VM you used on your initial hosted-engine env.</div><div>You have to clean up these references to let the engine correctly import the new hosted-engine env.</div><div><div>With 4.1 we introduced two new options to engine-backup in order to make correctly working for a backup took on a previous hosted engine env, they are:<br></div></div><div><div><div> --he-remove-storage-vm             Removes the hosted-engine storage domain, all its entities and the hosted-engine VM during restore.</div><div> --he-remove-hosts                  Removes all the hosted-engine hosts during restore.</div></div></div><div><br></div><div>Hosted-engine host should be redeployed as well since they point to the previous env as well.</div><div><br></div><div>The correct path to migrate from a previous hosted-engine env to a new one is:</div><div>- set global maintenance mode on the previous env</div><div>- set maintenance mode for the hosted engine hosts on the previous engine</div><div>- take the backup of the previous engine</div><div>Follow <a href="https://www.ovirt.org/develop/developer-guide/engine/migrate-to-hosted-engine/">https://www.ovirt.org/develop/developer-guide/engine/migrate-to-hosted-engine/</a> adding  &#39;--he-remove-storage-vm  --he-remove-hosts &#39; to the DB restore command. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
&gt; It went pretty smoothly up until the hosted engine deploy tried to add the<br>
&gt; host to the environment. The error was Unable to add HEVM to the manager.<br>
&gt; However, I can login to the environment just fine, but it does not have the<br>
&gt; HEVM and the host it&#39;s currently running on is down.<br>
&gt;<br>
&gt; I&#39;ve attached the hosted engine setup log.  Let me know if there are any<br>
&gt; other logs that will be helpful<br>
<br>
</span>Please check/share also: From the engine:<br>
/var/log/ovirt-engine/engine.<wbr>log<br>
/var/log/ovirt-engine/host-<wbr>deploy/*<br>
<br>
>From the host:<br>
/var/log/vdsm/vdsm.log<br>
/tmp/ovirt* (if found. If all is ok they are copied to engine and removed)<br>
<br>
Best,<br>
<br>
&gt;<br>
&gt; Logan<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Didi<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>
</font></span></blockquote></div><br></div></div>