Skip to contentSkip to conversation

about drbd "fencing" config option

Drbd-dev Lars Ellenberg 1 participant 1 message Apr 7, 2006 DRBD driver

lore
Share & tools
lore

Lars Ellenberg

author maintainer
#0 lore raw

/ 2006-04-06 11:15:02 -0600
\ Alan Robertson:

Quoted 11 lines
Quoted 8 lines · Philipp Reisner

Hi,
Again an 8.0 pre release. There where _no_ actual bug reports for the first pre release, so this release has no actual bug fixes, only smoothing the rough edges:
8.0-pre2 (api:81/proto:80)
--------
* removed the "on-disconnect" and "split-brain-fix" config options and added the "fencing" config option instead.

What's a fencing option do?

configure how we behave when we think that "someone" should do fencing.

for example:
we are Connected Primary/Secondary
we lose replication channel
"fencing = DontCare" --> we just keep goin, we are the primary after all
this risks diverging data sets in case of split brain.
"fencing = resource" --> we invoke the "outdate-peer-handler",
which currently is a hackish script using ssh, but should eventually become something that utilises heartbeat comunication channels. heartbeat should not have stonith configured here, or we risk that in the event of total communication loss --> stonith the other node might win, and we might have acknowledged transactions within the time period "connection loss" to "beeing stonithed", that then will be gone.
"fencing = stonith"
we expect heartbeat to have stonith configured, so we will freeze all io immediately, invoke the outdate-peer-handler, and will only unfreeze io when this handler returns success -- or some higher authority explicitly unfreeze us.
the handler should attempt (or trigger) resource level fencing first, (mark peer as "outdated") and fallback to stonith if resource level fencing did not work out.

this could also be called the "oracle mode", though orcale people probably want write-quorum >= 2, which will be implemented someday, too.

stonith should, if configured, always be implemented as "switch off", not as "reset", to avoid them stonithing each other.

if you configure drbd fencing=resource, but have stonith configured in heartbeat, that is a configuration error.

if you configure drbd fencing=stonith, but have no stonith configured in heartbeat, that will freeze io uneccessarily.

if you have fencing = resource, and no stonith configured, we need not freeze io and still avoid diverging data sets even during total communication loss: a secondary that has any doubt about the peers disk state will refuse to become primary, whereas a primary that does not know about its peers disk state will continue to be primary.

if after a cluster crash the cluster should come up without communication, one cannot promote drbd to primary until communication is restored or "some authority" explicitly assures one of the nodes that the other node has been fenced.

if one node knows that the peers disk is "bad" (has been marked "outdated", is "inconsistent"), this is stored in meta data, so that a degraded cluster may crash/reboot and become primary anyways.
obviously we do not store "peers disk is good", that would be stupid.

Signature · 3 lines
: Lars Ellenberg                                  Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :