[Pacemaker] Resource-level fencing without stonith?

Florian Haas florian at hastexo.com
Fri Mar 23 13:27:50 EDT 2012

On Fri, Mar 23, 2012 at 6:07 PM, Lajos Pajtek <lajospajtek at yahoo.com> wrote:
> Hi,
> I am building a two-node, active-standby cluster with shared storage. I think I got the basic primitives right, but fencing, implemented using SCSI persistent reservations, gives me some headache.First, I am unable to get stonith:fence_scsi work on RH/CentOS 6. (Using the sg_persist utility I am able to register keys, etc so that's not the problem.)

Any specific reason for not using IPMI? That's practically ubiquitous,
and pretty much always works.

> This made me think about the fact that conceptually SCSI fencing should be resource-level fencing, not node-level fencing. The other node is not powered down or rebooted so perhaps I shouldn't be using stonith at all. Currently I think about having stonith-enabled="false" and I am writing a master-slave resource agent script to manage the SCSI persistent reservations in case of fail-over.

That idea of such a resource agent is fine, but please don't write one
from scratch. Instead, expand on this one:

That one's off to a good start, but the original author never had time
to finish it.

Mind you; you'll likely still want STONITH, even if you use the sg_persist RA.

Hope this helps.

Need help with High Availability?

More information about the Pacemaker mailing list