[Drbd-dev] drbdsetup events patch to announce Split-brain
philipp.reisner at linbit.com
Mon Oct 29 11:19:57 CET 2007
On Thursday 25 October 2007 14:24:55 Montrose, Ernest wrote:
> 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.
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"
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"
* 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.
: 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...
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