<div dir="ltr">Thank you all for the answers. I can see your point, but anyway it seems that fencing is like for additional precaution.<div>If my requirements allow some manual intervention in some cases (eg. unknown resource state after failover), then I might go ahead without fencing. At least until STONITH is not mandatory :)<div><br></div><div>Thanks,</div><div>Maciej</div></div></div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pon., 11 lut 2019 o 17:54 Digimer <<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2019-02-11 6:34 a.m., Maciej S wrote:<br>
> I was wondering if anyone can give a plain answer if fencing is really<br>
> needed in case there are no shared resources being used (as far as I<br>
> define shared resource). <br>
> <br>
> We want to use PAF or other Postgres (with replicated data files on the<br>
> local drives) failover agent together with Corosync, Pacemaker and<br>
> virtual IP resource and I am wondering if there is a need for fencing<br>
> (which is very close bind to an infrastructure) if a Pacemaker is<br>
> already controlling resources state. I know that in failover case there<br>
> might be a need to add functionality to recover master that entered<br>
> dirty shutdown state (eg. in case of power outage), but I can't see any<br>
> case where fencing is really necessary. Am I wrong?<br>
> <br>
> I was looking for a strict answer but I couldn't find one...<br>
> <br>
> Regards,<br>
> Maciej<br>
<br>
Fencing is as required as a wearing a seat belt in a car. You can<br>
physically make things work, but the first time you're "in an accident",<br>
you're screwed.<br>
<br>
Think of it this way;<br>
<br>
If services can run in two or more places at the same time without<br>
coordination, you don't need a cluster, just run things everywhere. If<br>
you need coordination though, you need fencing.<br>
<br>
The role of fencing is to force a node that has entered into an unknown<br>
state and force it into a known state. In a system that requires<br>
coordination, often times fencing is the only way to ensure sane operation.<br>
<br>
Also, with pacemaker v2, fencing (stonith) became mandatory at a<br>
programmatic level.<br>
<br>
-- <br>
Digimer<br>
Papers and Projects: <a href="https://alteeve.com/w/" rel="noreferrer" target="_blank">https://alteeve.com/w/</a><br>
"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." - Stephen Jay Gould<br>
</blockquote></div>