* Re: [Drbd-dev] RE: [DRBD-cvs] svn commit by phil - r2607 -trunk/drbd- The fix forthe "both nodes in WFBitMaps" issue, Ernest
[not found] <BD7042533C2F8943A6A4257A9E31C45439C8A2@EXNA.corp.stratus.com>
@ 2006-12-22 13:44 ` Philipp Reisner
0 siblings, 0 replies; 2+ messages in thread
From: Philipp Reisner @ 2006-12-22 13:44 UTC (permalink / raw)
To: drbd-dev; +Cc: Montrose, Ernest
[-- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [Drbd-dev] RE: [DRBD-cvs] svn commit by phil - r2607 -trunk/drbd- The fix forthe "both nodes in WFBitMaps" issue, Ernest
@ 2006-12-22 13:52 Montrose, Ernest
0 siblings, 0 replies; 2+ messages in thread
From: Montrose, Ernest @ 2006-12-22 13:52 UTC (permalink / raw)
To: Philipp Reisner, drbd-dev
Phil,
Thanks for the update. But I think I may have been trying to recover
from problem by issuing the "--discard-my-data". What I mean is that,
it was already in that state when I issued the connect with --discard...
Thank you for the quick fix!! I will test hopefully before Xmas :)
EM--
-----Original Message-----
From: Philipp Reisner [mailto:philipp.reisner@linbit.com]
Sent: Friday, December 22, 2006 8:45 AM
To: drbd-dev@linbit.com
Cc: Montrose, Ernest
Subject: Re: [Drbd-dev] RE: [DRBD-cvs] svn commit by phil - r2607
-trunk/drbd- The fix forthe "both nodes in WFBitMaps" issue, Ernest
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 :
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-22 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <BD7042533C2F8943A6A4257A9E31C45439C8A2@EXNA.corp.stratus.com>
2006-12-22 13:44 ` [Drbd-dev] RE: [DRBD-cvs] svn commit by phil - r2607 -trunk/drbd- The fix forthe "both nodes in WFBitMaps" issue, Ernest Philipp Reisner
2006-12-22 13:52 Montrose, Ernest
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox