Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Lars Ellenberg <Lars.Ellenberg@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] DRBD8: Stuck in WFBitMapS state even across reboot.
Date: Thu, 30 Nov 2006 20:59:53 +0100	[thread overview]
Message-ID: <20061130195953.GC7746@soda.linbit> (raw)
In-Reply-To: <BD7042533C2F8943A6A4257A9E31C45439C84F@EXNA.corp.stratus.com>

/ 2006-11-30 10:38:33 -0500
\ Montrose, Ernest:
> Phil,
> This involves Xen Vm's.  I would create one vm, I would then put an i/o
> load on there (Something that keeps reading and writing).  I would then
> go to the host and do an ifdown on the heartbeat interface in an attempt
> to force a split brain situation. I would then do an ifup. And every now
> and then this
> would happen (not all the time).  When it happens, it survives a reboot.
> I actually have not figured out how to get out of it.
> 
> I will try to find a more automatic way to reproduce it.

drbd_receiver.c, drbd_asb_recover_0p

| 	ch_peer = mdev->p_uuid[UUID_SIZE];
|       ch_self = drbd_bm_total_weight(mdev); ### <==

this ch_self may be different
from the one we communicated before, right?

|       switch ( mdev->net_conf->after_sb_0p ) {
|       ...
|
|       case DiscardZeroChg:

so, if we communicated ch_self == 0, but now ch_self is > 0,
and ch_peer is 0 (inactive peer sees this reversed), then

|                if( ch_peer == 0 && ch_self == 0) {

inactive peer does this, and may decide he is the source;

|                        rv=test_bit(DISCARD_CONCURRENT,&mdev->flags) ? -1 : 1;
|                        break;
|                } else {

active peer does this branch,
and decides he is the source.

|                        if ( ch_peer == 0 ) { rv =  1; break; }
|                        if ( ch_self == 0 ) { rv = -1; break; }
|                }
|                if( mdev->net_conf->after_sb_0p == DiscardZeroChg ) break;

doh. have to think about that...

-- 
: 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 :

  reply	other threads:[~2006-11-30 19:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30 15:38 [Drbd-dev] DRBD8: Stuck in WFBitMapS state even across reboot Montrose, Ernest
2006-11-30 19:59 ` Lars Ellenberg [this message]
2006-12-01  9:43   ` Philipp Reisner
  -- strict thread matches above, loose matches on Subject: below --
2006-12-01 12:06 Montrose, Ernest
2006-11-30 20:12 Montrose, Ernest
2006-11-27 22:28 Montrose, Ernest
2006-11-30 15:11 ` Philipp Reisner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061130195953.GC7746@soda.linbit \
    --to=lars.ellenberg@linbit.com \
    --cc=drbd-dev@lists.linbit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox