<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 16, 2017 at 11:33 AM, Резников А.А. <span dir="ltr">&lt;<a href="mailto:reznikov_aa@soskol.com" target="_blank">reznikov_aa@soskol.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 bgcolor="#FFFFFF">
    <div class="gmail-m_868427492502081225moz-cite-prefix">16.03.2017 12:05, Simone Tiraboschi
      пишет:<br>
    </div>
    <blockquote type="cite">grep host_id
      /etc/ovirt-hosted-engine/<wbr>hosted-engine.conf</blockquote>
    <br>
    <p><br>
    </p>
    <p> vds_spm_id |     vds_name     <br>
      ------------+-----------------<wbr>-<br>
                1        |     h1new.lan<br>
                2        |     h2new.lan<br>
    </p>
    <p>[root@h1 /]# grep host_id
      /etc/ovirt-hosted-engine/<wbr>hosted-engine.conf<br>
      host_id=3<br>
    </p>
    <p>[root@h2 /]# grep host_id
      /etc/ovirt-hosted-engine/<wbr>hosted-engine.conf<br>
      host_id=4<br>
    </p>
    <p><i>Funny, the host id does not match.</i><br>
    </p>
    <p>It seems I understand what wrong. In the past, I had two hosts of
      the cluster with id 1 and 2, after i delete them.<br>
      Simon, what is the correct decision? Change vds_spm_id in the
      engine base or fix host_id in
      &quot;/etc/ovirt-hosted-engine/<wbr>hosted-engine.conf&quot;?<br></p></div></blockquote><div><br></div><div>It&#39;s really the same, probably it&#39;s easier to edit  /etc/ovirt-hosted-engine/<wbr>hosted-engine.conf on the two hosts since it&#39;s just a text file.</div><div>Please take care that you have to stop all the monitoring domain task in vdsm and remove all the existing sanlock locks.</div><div>Probably the easiest option is to set the host (you can do it one host at at time keeping running VMs include the engine one on the other) in maintenance mode from the engine, edit /etc/ovirt-hosted-engine/<wbr>hosted-engine.conf to reflect the spm_id you have in the engine DB and then reboot the host to ensure that all the locks are gone.</div><div><br></div><div>Since 4.0 we cannot hit this kind of issue anymore since the hosted-engine hosts (but the bootstrap one) should be deployed from the engine and this ensure that the spm_id is always in sync. </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"><div bgcolor="#FFFFFF"><p>
    </p>
    <p>Thanks, Alex.<br>
    </p>
  </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></div>