[DRBD-user] Refusing to be primary (outdated)

Lars Ellenberg lars.ellenberg at linbit.com
Thu Sep 27 09:25:59 CEST 2007

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


On Wed, Sep 26, 2007 at 10:35:36AM -0300, Luis F. V. Gomes wrote:
> 
> Ok. I will try to make a script to detect this situation and use 
> drbdadm to force a new primary node. Later I can manually restore the 
> Maildirs using scp.

how do you propose to detect "this" situation?

you really want to *automatically* override "outdated" state?

then, what is the point to have it marked as "outdated"
in the first place?

thank you for sharing your thoughts and proposals on this.

> At 19:08 2007-09-25, Lars Ellenberg wrote:
> 
> >On Tue, Sep 25, 2007 at 02:56:36PM -0300, Luis F. V. Gomes wrote:
> >> Hi all
> >>
> >> I think this may have happened to one of yours but I could not find
> >> any hints to solve this problem automatically in the archives:
> >> Due to a blackout, node 1 shuts down first and becomes outdated (DRBD
> >> 8); node 2 acquires its resources and becomes primary for a few
> >> minutes until it shuts down too.
> >> After power comes back, node 2 does not boot due to a hardware
> >> transient problem (the disk is intact). Node 1 boots but refuses to
> >> be primary because it is outdated and my clustered services (http and
> >> email servers) are a joke.
> >
> >to force a non-up2date (local data is outdated or inconsistent) drbd
> >to become Primary anyways, because you prefer to be online with
> >potentially stale data than to be completely offline,
> > drbdadm -- --overwrite-data-of-peer primary all
> >
> >but, yes, then you really forced drbd into UGLY mode,
> >diverging data sets and all, once you connect both nodes again
> >you will see some infamous "split brain detected" message,
> >and you'll have fun to sort out the mess.
> >
> >provided that all important data on those boxes is actually
> >Maildirs, it may even be possible to merge it easily, though.
> >
> >depending on exactly how "old" that "outdated" is,
> >this may be an option unless you prefer to fix the other node.
> >
> >> Is there any configuration workaround for this situation?
> >>
> >> I just want the SMTP and POP services to wake up in node 1 (probably
> >> using an alternative temporary spool directory) and later manually
> >> resynchronize the data (maildir and queues) after fixing note 2.
> >>
> >> RedHat EL 5
> >> Heartbeat 2.0.8.3
> >> drbd.x86_64 8.0.3-1.el5.centos
> >> dovecot.x86_64 1.0-1.2.rc15.el5
> >> exim.x86_64 4.63-3.el5
> >
> >good luck!
> >
> >--
> >: Lars Ellenberg                            Tel +43-1-8178292-55 :
> >: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
> >: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :
> 
> 
>         Atenciosamente,
> 
> 
> !                          ,,,
> !                         (@ @)
> +--------------------oOO-/-(*)-\-OOo---+----------------------------------+
> | Luis Fernando V. Gomes               |   Email:  lf at ele.puc-rio.br
> | Gerente de Suporte                   |
> | Dept. Engenharia Eletrica            |
> | PUC-Rio                              |   Voz: +(55) (21) 3527-1220
> | R. Marques de Sao Vicente 225/401L   |   Fax: +(55) (21) 3527-1232
> | 22451-900 - Rio de Janeiro/RJ, Brasil|
> +--------------------------------------+----------------------------------+ 
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 

-- 
: Lars Ellenberg                           http://www.linbit.com :
: DRBD/HA support and consulting             sales at linbit.com :
: LINBIT Information Technologies GmbH      Tel +43-1-8178292-0  :
: Vivenotgasse 48, A-1120 Vienna/Europe     Fax +43-1-8178292-82 :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list