<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#3333FF" bgcolor="#FFFFFF">
<tt>Thx Klaus, appreciate your feedback.<br>
<br>
Regards<br>
Javier<br>
</tt><br>
<div class="moz-cite-prefix">
<div style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%;">
<tbody>
<tr style="font-size:0;">
<td align="left" style="vertical-align:top;">
<table cellpadding="0" cellspacing="0" border="0" style="font-size:0;">
<tbody>
<tr style="font-size:0;">
<td align="left" style="padding:15px 0 30px;vertical-align:top;">
<table cellpadding="0" cellspacing="0" border="0" style="font-size:0;">
<tbody>
<tr style="font-size:0;">
<td align="left" style="padding:0;vertical-align:top;">
<table cellpadding="0" cellspacing="0" border="0" style="font-size:0;">
<tbody>
<tr style="font-size:0;">
<td align="left" style="vertical-align:top;">
<table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#3B3739;font-style:normal;font-weight:700;white-space:nowrap;">
<tbody>
<tr style="font-size:14.67px;">
<td align="left" style="vertical-align:top;font-family:Arial;">Francisco Javier<span style="font-family:remialcxesans;font-size:1px;color:#FFFFFF;line-height:1px;">​</span></td>
<td align="left" style="vertical-align:top;font-family:Arial;font-weight:400;"> </td>
<td align="left" style="vertical-align:top;font-family:Arial;">Lopez</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="font-size:0;">
<td align="left" style="vertical-align:top;">
<table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#3B3739;font-style:normal;font-weight:400;white-space:nowrap;">
<tbody>
<tr style="font-size:13.33px;">
<td align="left" style="vertical-align:top;font-family:Arial;">IT System Engineer</td>
<td align="left" style="vertical-align:top;color:#EA7200;font-family:Arial;"> | </td>
<td align="left" style="vertical-align:top;font-family:Arial;">Global IT</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="font-size:0;">
<td align="left" style="vertical-align:top;">
<table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#EA7200;font-style:normal;font-weight:400;white-space:nowrap;">
<tbody>
<tr style="font-size:13.33px;">
<td align="left" style="vertical-align:top;color:#3B3739;font-family:Arial;">O: <a href="tel:+34%20619%20728%20249" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#3B3739;"><strong style="font-weight:400;">+34 619 728 249</strong></a></td>
<td align="left" style="vertical-align:top;font-family:Arial;"> | </td>
<td align="left" style="vertical-align:top;color:#3B3739;font-family:Arial;">M: <a href="tel:+34%20619%20728%20249" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#3B3739;"><strong style="font-weight:400;">+34 619 728 249</strong></a></td>
<td align="left" style="vertical-align:top;font-family:Arial;"> | <br>
</td>
<td align="left" style="vertical-align:top;color:#0B4CB4;font-family:Arial;"><a href="mailto:franciscojavier.lopez@solera.com" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#0B4CB4;"><strong style="font-weight:400;">franciscojavier.lopez@solera.com</strong></a></td>
<td align="left" style="vertical-align:top;font-family:Arial;"> | </td>
<td align="left" style="vertical-align:top;color:#0B4CB4;font-family:Arial;"><a href="https://www.solera.com/" target="_blank" id="LPlnk689713" title="https://www.solera.com/" style="text-decoration:none;color:#0B4CB4;"><strong style="font-weight:400;">Solera.com</strong></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="font-size:0;">
<td align="left" style="vertical-align:top;">
<table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#3B3739;font-style:normal;font-weight:400;white-space:nowrap;">
<tbody>
<tr style="font-size:13.33px;">
<td align="left" style="vertical-align:top;font-family:Arial;">Audatex Datos, S.A.</td>
<td align="left" style="vertical-align:top;color:#EA7200;font-family:Arial;"> | </td>
<td align="left" style="vertical-align:top;font-family:Arial;">Avda. de Bruselas, 36, Salida 16, A‑1 (Diversia)</td>
<td align="left" style="vertical-align:top;font-family:Arial;">, </td>
<td align="left" style="vertical-align:top;font-family:Arial;">Alcobendas</td>
<td align="left" style="vertical-align:top;font-family:Arial;">, </td>
<td align="left" style="vertical-align:top;font-family:Arial;">Madrid</td>
<td align="left" style="vertical-align:top;font-family:Arial;">, </td>
<td align="left" style="vertical-align:top;font-family:Arial;">28108</td>
<td align="left" style="vertical-align:top;font-family:Arial;">, </td>
<td align="left" style="vertical-align:top;font-family:Arial;">Spain</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="font-size:0;line-height:normal;">
<td align="left" style="padding:10px 0;vertical-align:top;"><img src="cid:image339311.png@D1525B14.71452121" border="0" alt="" style="font-size:0;"></td>
</tr>
<tr style="font-size:0;">
<td style="padding:0;"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
On 5/9/2019 1:14 PM, Klaus Wenninger wrote:<br>
</div>
<blockquote type="cite" cite="mid:c224c40c-3a9b-ec52-1758-38835230abc7@redhat.com">
<pre class="moz-quote-pre" wrap="">On 5/9/19 1:03 PM, Lopez, Francisco Javier [Global IT] wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Good day guys !

I'm implementing fencing in my two node cluster with this detail:

- fence_vmware_soap
- PostgreSql release 10.X
- CentOS 7.X

As far as I know, to create the resources, I can use two different ways:

- Create only one resource for both nodes, following this way:

  # pcs -f stonith_cfg stonith create fence_nodes \
  fence_vmware_soap \
  ipaddr=<VM_IP> \
  ssl_insecure=1 \
  login="<VM_user>" \
  passwd="<VM_passwd>" \
  action=reboot \
  pcmk_host_list="node_01,node_02" \
  power_wait=3 op monitor interval=60s

- Create two different resources, one for each node, following this way:

  # pcs -f stonith_cfg stonith create fence_node_01 \
  fence_vmware_soap  \
  ipaddr=<VM_IP> \
  ssl_insecure=1 \
  login="<VM_user>" \
  passwd="<VM_passwd>" \
  action=reboot \
  pcmk_host_list="node_01" \
  power_wait=3 op monitor interval=60s

  # pcs -f stonith_cfg stonith create fence_node_02 \
  fence_vmware_soap  \
  ipaddr=<VM_IP> \
  ssl_insecure=1 \
  login="<VM_user>" \
  passwd="<VM_passwd>" \
  action=reboot \
  pcmk_host_list="node_02" \
  power_wait=3 op monitor interval=60s

  With this method I understand I will have to add some constraints, etc.

Said this, my questions are:

- Which are the differences among them ? (if any).
- Is there any recommended option and why ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">For your 2-node-cluster there might be a definite reason why you'd
like to have 2 fence-resources as to prevent fence-races when both
are still alive but just don't see each other. If you make one
wait a little longer to fence you can determine which one would
rather win.
If the aim is just to prevent that they fence each other at the same
time introduction of a random delay should be fine as well.
(That is pcmk_delay_max and if you want to further tailor the delay
with astatic delay component you can use pcmk_delay_base on top.)

Klaus
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Regards
Javier
Francisco Javier​           Lopez

IT System Engineer     |    Global IT

O: *+34 619 728 249* <a class="moz-txt-link-rfc2396E" href="tel:+34%20619%20728%20249"><tel:+34%20619%20728%20249></a>     | 
M: *+34 619 728 249* <a class="moz-txt-link-rfc2396E" href="tel:+34%20619%20728%20249"><tel:+34%20619%20728%20249></a>     | 
        *franciscojavier.lopez@solera.com*
<a class="moz-txt-link-rfc2396E" href="mailto:franciscojavier.lopez@solera.com"><mailto:franciscojavier.lopez@solera.com></a>      |    *Solera.com*
<a class="moz-txt-link-rfc2396E" href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.solera.com%2F&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=ccIbmo%2F%2FE7ifL7TAsFDqnJHEAl3pKEpbZDMwfuZ4CCo%3D&amp;reserved=0"><https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.solera.com%2F&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=ccIbmo%2F%2FE7ifL7TAsFDqnJHEAl3pKEpbZDMwfuZ4CCo%3D&amp;reserved=0></a>

Audatex Datos, S.A.    | 
Avda. de Bruselas, 36, Salida 16, A‑1 (Diversia)   ,          Alcobendas      , 
Madrid  ,          28108   ,          Spain

 


------------------------------------------------------------------------

" Este e-mail y sus archivos adjuntos son confidenciales y están
dirigidos exclusivamente a la(s) persona(s) destinataria prevista. Si
ha recibido este mensaje por error, por favor, notifique
inmediatamente al remitente y elimine este mensaje. La empresa no
firma contratos por e-mail y todas las negociaciones están sujetas a
la firma de un contrato por escrito.

This e-mail and any attached files are confidential and intended for
the named addressee(s) only. If you have received this message in
error, please notify the sender and delete the email immediately. The
company does not conclude contracts by email and all negotiations are
subject to written contract. "

_______________________________________________
Manage your subscription:
<a class="moz-txt-link-freetext" href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.clusterlabs.org%2Fmailman%2Flistinfo%2Fusers&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=Hgno43Tl4vCx5AEIwoZkT6Xq2AhzpKoaiQ9n%2FWcjGcQ%3D&amp;reserved=0">https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.clusterlabs.org%2Fmailman%2Flistinfo%2Fusers&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=Hgno43Tl4vCx5AEIwoZkT6Xq2AhzpKoaiQ9n%2FWcjGcQ%3D&amp;reserved=0</a>

ClusterLabs home: <a class="moz-txt-link-freetext" href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.clusterlabs.org%2F&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=cCoTTaMC8MnieDaur7KPQSKHlGKBaeWMM6kRu6SOzE4%3D&amp;reserved=0">https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.clusterlabs.org%2F&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=cCoTTaMC8MnieDaur7KPQSKHlGKBaeWMM6kRu6SOzE4%3D&amp;reserved=0</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
_______________________________________________
Manage your subscription:
<a class="moz-txt-link-freetext" href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.clusterlabs.org%2Fmailman%2Flistinfo%2Fusers&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=Hgno43Tl4vCx5AEIwoZkT6Xq2AhzpKoaiQ9n%2FWcjGcQ%3D&amp;reserved=0">https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.clusterlabs.org%2Fmailman%2Flistinfo%2Fusers&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=Hgno43Tl4vCx5AEIwoZkT6Xq2AhzpKoaiQ9n%2FWcjGcQ%3D&amp;reserved=0</a>

ClusterLabs home: <a class="moz-txt-link-freetext" href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.clusterlabs.org%2F&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=cCoTTaMC8MnieDaur7KPQSKHlGKBaeWMM6kRu6SOzE4%3D&amp;reserved=0">https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.clusterlabs.org%2F&amp;data=01%7C01%7C%7C201d67c0bdaf4291190008d6d46f8b8e%7Cc45b48f313bb448b9356ba7b863c2189%7C1&amp;sdata=cCoTTaMC8MnieDaur7KPQSKHlGKBaeWMM6kRu6SOzE4%3D&amp;reserved=0</a></pre>
</blockquote>
<br>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
" Este e-mail y sus archivos adjuntos son confidenciales y están dirigidos exclusivamente a la(s) persona(s) destinataria prevista. Si ha recibido este mensaje por error, por favor, notifique inmediatamente al remitente y elimine este mensaje. La empresa no
 firma contratos por e-mail y todas las negociaciones están sujetas a la firma de un contrato por escrito.
<br>
<br>
This e-mail and any attached files are confidential and intended for the named addressee(s) only. If you have received this message in error, please notify the sender and delete the email immediately. The company does not conclude contracts by email and all
 negotiations are subject to written contract. "<br>
</font>
</body>
</html>