On 03/07/14 07:47 PM, Giuseppe Ragusa wrote:
 >
 > > }
 > > handlers {
 > > fence-peer "/usr/lib/drbd/rhcs_fence";
 > > }
 > > }
 > >
 > >
 > rhcs_fence is wrong fence-peer utility. You should use
 > /usr/lib/drbd/crm-fence-peer.sh and
 > /usr/lib/drbd/crm-unfence-peer.sh instead.

But my understanging (probably wrong) was that the fence-peer handler is
meant to be called for STONITH, not for "usual" promotions/demotions
to/from Primary/Secondary.

If I use the aforementioned pair of handlers (crm-*.sh) for
fence/unfence, do I still get STONITH behavior for "split brain cases"?

Many thanks for your suggestion!

Regards,
Giuseppe

Correct. The 'rhcs_fence' handler passes fence calls on to cman, which you have set to redirect on to pacemaker. This isn't what it was designed for, and hasn't been tested. It was meant to be an updated replacement for obliterate-peer.sh in cman+rgmanager clusters directly (no pacemaker).

Cheers

--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without access to education?

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to