<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 19, 2018 at 4:12 PM, Artem Tambovskiy <span dir="ltr"><<a href="mailto:artem.tambovskiy@gmail.com" target="_blank">artem.tambovskiy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">Thanks a lot, Simone!<br><br>This is clearly shows a problem: <br><br><div>[root@ov-eng ovirt-engine]# sudo -u postgres psql -d engine -c 'select vds_name, vds_spm_id from vds'</div><div> vds_name | vds_spm_id </div><div>-----------------+------------</div><div> ovirt1.local | 2</div><div> ovirt2.local | 1</div><div>(2 rows)</div><div><br></div>While <span style="font-size:12.8px">hosted-engine.conf on </span>ovirt1.local have host_id=1, and ovirt2.local host_id=2. So totally opposite values.<br>So how to get this fixed in the simple way? Update the engine DB?<br></div></div></div></div></div></blockquote><div><br></div><div>I'd suggest to manually fix /etc/ovirt-hosted-engine/hosted-engine.conf on both the hosts</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>Regards,</div><div>Artem</div></div><div class="m_35998765263767471HOEnZb"><div class="m_35998765263767471h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 19, 2018 at 5:37 PM, Simone Tiraboschi <span dir="ltr"><<a href="mailto:stirabos@redhat.com" target="_blank">stirabos@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Mon, Feb 19, 2018 at 12:13 PM, Artem Tambovskiy <span dir="ltr"><<a href="mailto:artem.tambovskiy@gmail.com" target="_blank">artem.tambovskiy@gmail.com</a>></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><br></div><div>Last weekend my cluster suffered form a massive power outage due to human mistake. </div><div>I'm using SHE setup with Gluster, I managed to bring the cluster up quickly, but once again I have a problem with duplicated host_id (<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1543988" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1543988</a>) on second host and due to this second host is not capable to run HE. </div><div> <br>I manually updated file hosted_engine.conf with correct host_id and restarted agent & broker - no effect. Than I rebooted the host itself - still no changes. How to fix this issue? </div></div></blockquote><div><br></div></span><div>I'd suggest to run this command on the engine VM:</div><div>sudo -u postgres scl enable rh-postgresql95 -- psql -d engine -c 'select vds_name, vds_spm_id from vds'<br></div><div>(just <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">sudo -u postgres psql -d engine -c 'select vds_name, vds_spm_id from vds'</span> if still on 4.1) and check /etc/ovirt-hosted-engine/hoste<wbr>d-engine.conf on all the involved host.</div><div>Maybe you can also have a leftover configuration file on undeployed host.</div><div><br></div><div>When you find a conflict you should manually bring down sanlock</div><div>In doubt a reboot of both the hosts will solve for sure.</div><span><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 dir="ltr"><div><br></div><div>Regards,</div><div>Artem</div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></span></div><br></div></div>
</blockquote></div><br></div>
</div></div></div><br></div>
</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></div>