[Drbd-dev] drbdsetup events patch to announce Split-brain
Philipp Reisner
philipp.reisner at linbit.com
Mon Oct 29 11:19:57 CET 2007
On Thursday 25 October 2007 14:24:55 Montrose, Ernest wrote:
> Phil,
> Currently we do not use the payload for anything. I was just being
> paranoid thinking that we might need it in the future. But you can drop
> it if you wish. If we have a pressing need for it in the future, we'll
> deal with it then.
>
Ernest,
Over the weekend I realized that the split brain event is quite
similar to a number of events we already signal back to userspace.
The invocation of handlers is also visible through the "drbdsetup events"
interface.
The attached patch creates an handler called "split-brain". If you
can live with that interface as well, I will commit that...
In the future I want to go this way:
* Allow one to set the usermode_helper to the empty string. Then it
is still possible to get all events through the "drbdsetup events"
interface.
* The "outdate-peer" usermode_helper sends an exit code back
to kernel space. This is not yet possible when one only uses
the "drbdsetup events" interface. This should get fixed.
-Phil
--
: Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, 1120 Vienna, Austria http://www.linbit.com :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sb_as_handler.diff
Type: text/x-diff
Size: 3402 bytes
Desc: not available
Url : http://lists.linbit.com/pipermail/drbd-dev/attachments/20071029/961989ca/sb_as_handler.bin
More information about the drbd-dev
mailing list