<div dir="ltr"><div><div><div><div><span class="gmail-im"><div>&gt; The &quot;plug&quot; should match the name used by the hypervisor, not the actual host name (if they differ).<br></div></span>I
 understand the difference between plug and hostname. I don&#39;t clearly 
understand which fence config is correct (I reffer to pcs stonith 
describe fence_...):<br></div><br>the same entry on every node:<span class="gmail-im"><br>pmck_host_map=&quot;node1:Centos1;n<wbr>ode2:Centos2&quot;<br></span></div><br>or different entry at every node like this:<br></div><br>port=Centos1 (on node1)<br></div>port=Centos2 (on node2)<br><div class="gmail_extra">?<br></div><div class="gmail_extra">Thanks,<br clear="all"></div><div><div class="gmail-m_4949692893609643848gmail_signature"><div dir="ltr"><div class="gmail_extra">Regards<br clear="all">
<br><div class="gmail_quote">2017-07-31 14:28 GMT+02:00 Digimer <span dir="ltr">&lt;<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>&gt;</span>:<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">On 2017-07-31 03:18 AM, ArekW wrote:<br>
&gt; Hi, I&#39;m confused how to properly set stonith when a hostname is<br>
&gt; different than port/plug name. I have 2 vms on vbox/vmware with<br>
&gt; hostnames: node1, node2. The port&#39;s names are: Centos1, Centos2.<br>
&gt; According to my understanding the stonith device must know which vm to<br>
&gt; control (each other) so I set:<br>
&gt; pmck_host_map=&quot;node1:Centos1;<wbr>node2:Centos2&quot; and it seems to work good,<br>
&gt; however documentation describes port as a decimal &quot;port number&quot;(?).<br>
&gt; Would it be correct to use something like pmck_host_list=&quot;node1<br>
&gt; node2&quot;? But how the fence device will combine the hostname with port<br>
&gt; (or plug)? I presume that node1 must somehow know that node2&#39;s plug is<br>
&gt; Centos2, otherwise It could reboot itself (?)<br>
&gt; Thank you.<br>
<br>
</div></div>The &quot;plug&quot; should match the name used by the hypervisor, not the actual<br>
host name (if they differ).<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Digimer<br>
Papers and Projects: <a href="https://alteeve.com/w/" rel="noreferrer" target="_blank">https://alteeve.com/w/</a><br>
&quot;I am, somehow, less interested in the weight and convolutions of<br>
Einstein’s brain than in the near certainty that people of equal talent<br>
have lived and died in cotton fields and sweatshops.&quot; - Stephen Jay Gould<br>
</font></span></blockquote></div><br></div></div></div></div></div>