[DRBD-user] DRBD notification

Graham, Simon Simon.Graham at stratus.com
Mon Nov 5 15:32:23 CET 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Take a look at 'drbdsetup /dev/drbd0 events' -- this command will output state changes and other events as they occur (including a special line output for split-brain when it occurs) -- you can write a script that parses the output from this command and reacts immediately...

Simon

> -----Original Message-----
> From: drbd-user-bounces at linbit.com [mailto:drbd-user-
> bounces at linbit.com] On Behalf Of Igor Neves
> Sent: Monday, November 05, 2007 7:32 AM
> To: drbd-user at linbit.com
> Subject: [DRBD-user] DRBD notification
> 
> Hi,
> 
> There is some kind of notification (email, execute some script or
> something) implemented in drbd?
> 
> I need DRBD to be reactive to some situations:
> * Split-Brain (IMPORTANT)
> * State Change (primary->secondary) (LESS IMPORTANT)
> * Sync's (MUCH LESS IMPORTANT)
> * ...
> 
> I can do some cron job script, to parse the output of '/proc/drbd'
> every minute of so, but i want something more professional. It's there
> anything something like this in DRBD?
> 
> I'm using drbd 8.0.6 release.
> 
> Thanks for the help.
> Igor Neves
> 
> ---------
> Igor Neves <igor.neves at 3gnt.net>
> 3GNTW - Tecnologias de Informação, Lda
> 
>  sip igor at 3gnt.net 	jid igor at jabber.3gnt.org
>  icq 249075444		tlm 00351914503611
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user


More information about the drbd-user mailing list