Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Philipp Reisner <philipp.reisner@linbit.com>
To: drbd-dev@lists.linbit.com
Cc: "Montrose, Ernest" <Ernest.Montrose@stratus.com>
Subject: Re: [Drbd-dev] RE: [DRBD-cvs] svn commit by phil - r2607 -trunk/drbd- The fix forthe "both nodes in WFBitMaps" issue, Ernest
Date: Fri, 22 Dec 2006 14:44:40 +0100	[thread overview]
Message-ID: <200612221444.41292.philipp.reisner@linbit.com> (raw)
In-Reply-To: <BD7042533C2F8943A6A4257A9E31C45439C8A2@EXNA.corp.stratus.com>

[-- Attachment #1: Type: text/plain, Size: 2306 bytes --]

Am Donnerstag, 21. Dezember 2006 19:19 schrieben Sie:
> Phil,
> Thanks for looking at this.  I was just trying to remove all the cluter
> To help you out.  I include a tar ball here with the full messages file
> for both nodes. Search for "Split" as a starting point since the issue
> seems
> to occur after a split brian. There are two files in the tar ball:
> addams/Gomez/var/log/messages
> addams/morticia/var/log/messages
>
> Thanks!!
>

Hi Ernest,

With the full log, I got pointed to the bug rather quickly.

Dec 19 11:56:35 morticia kernel: drbd0: Handshake successful: DRBD Network Protocol version 85
Dec 19 11:56:35 morticia kernel: drbd0: drbd_sync_handshake:
Dec 19 11:56:35 morticia kernel: drbd0: self B53E750F0FDF5CD5:7CF87E16765B2990:A6CE234412D1AEF0:32225FC919BDC7B8
Dec 19 11:56:35 morticia kernel: drbd0: peer EA51CF76B39C65CF:7CF87E16765B2991:A6CE234412D1AEF1:32225FC919BDC7B9
Dec 19 11:56:35 morticia kernel: drbd0: uuid_compare()=100
Dec 19 11:56:35 morticia kernel: drbd0: Split-Brain detected, manually solved. Sync from this node
Dec 19 11:56:35 morticia kernel: drbd0: peer( Unknown -> Primary ) conn( WFReportParams -> WFBitMapS ) pdsk( DUnknown -> UpToDate )


Dec 19 11:56:35 gomez kernel: drbd0: Handshake successful: DRBD Network Protocol version 85
Dec 19 11:56:35 gomez kernel: drbd0: drbd_sync_handshake:
Dec 19 11:56:35 gomez kernel: drbd0: self EA51CF76B39C65CF:7CF87E16765B2991:A6CE234412D1AEF1:32225FC919BDC7B9
Dec 19 11:56:35 gomez kernel: drbd0: peer B53E750F0FDF5CD5:7CF87E16765B2990:A6CE234412D1AEF0:32225FC919BDC7B8
Dec 19 11:56:35 gomez kernel: drbd0: uuid_compare()=100
Dec 19 11:56:35 gomez kernel: drbd0: Split-Brain detected, manually solved. Sync from this node
Dec 19 11:56:35 gomez kernel: drbd0: peer( Unknown -> Secondary ) conn( WFReportParams -> WFBitMapS ) pdsk( DUnknown -> UpToDate )

Here are the lines that gave the hint.
It looks like you passed on both sides the option "--discard-my-data".

Now I fixed this. In the future it should disconnect if you pass
the "--discard-my-data" on both sides to the the net command.

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

[-- Attachment #2: drbd-cvs@lists.linbit.com: [DRBD-cvs] svn commit by phil - r2641 - trunk/drbd - Fixed an other bug That Ernest of Stratus pointed out. --]
[-- Type: message/rfc822, Size: 2949 bytes --]

From: drbd-cvs@lists.linbit.com
To: drbd-cvs@lists.linbit.com
Subject: [DRBD-cvs] svn commit by phil - r2641 - trunk/drbd - Fixed an other bug That Ernest of Stratus pointed out.
Date: Fri, 22 Dec 2006 14:39:18 +0100
Message-ID: <20061222133919.1D34E2CFF492@mail.linbit.com>

Author: phil
Date: 2006-12-22 14:39:17 +0100 (Fri, 22 Dec 2006)
New Revision: 2641

Modified:
   trunk/drbd/drbd_receiver.c
Log:
Fixed an other bug That Ernest of Stratus pointed out.


Modified: trunk/drbd/drbd_receiver.c
===================================================================
--- trunk/drbd/drbd_receiver.c	2006-12-21 15:49:27 UTC (rev 2640)
+++ trunk/drbd/drbd_receiver.c	2006-12-22 13:39:17 UTC (rev 2641)
@@ -1927,10 +1927,10 @@
 	}
 
 	if ( hg == -100 ) {
-		if(mdev->net_conf->want_lose && !mdev->p_uuid[UUID_FLAGS]) {
+		if(mdev->net_conf->want_lose && !(mdev->p_uuid[UUID_FLAGS]&1)){
 			hg = -1;
 		}
-		if(!mdev->net_conf->want_lose && mdev->p_uuid[UUID_FLAGS]) {
+		if(!mdev->net_conf->want_lose && (mdev->p_uuid[UUID_FLAGS]&1)){
 			hg = 1;
 		}
 

_______________________________________________
drbd-cvs mailing list
drbd-cvs@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-cvs


       reply	other threads:[~2006-12-22 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BD7042533C2F8943A6A4257A9E31C45439C8A2@EXNA.corp.stratus.com>
2006-12-22 13:44 ` Philipp Reisner [this message]
2006-12-22 13:52 [Drbd-dev] RE: [DRBD-cvs] svn commit by phil - r2607 -trunk/drbd- The fix forthe "both nodes in WFBitMaps" issue, Ernest Montrose, Ernest

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=200612221444.41292.philipp.reisner@linbit.com \
    --to=philipp.reisner@linbit.com \
    --cc=Ernest.Montrose@stratus.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