[DRBD-user] Resync

John Lauwers john at robotronic.be
Mon Aug 14 15:50:53 CEST 2006

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


>
> what exactly is the sequence of events if it does not work?
> (please, not "the same thing but...", but write it down.
>  each step you do. what you did expect. and what happend.)

OK,

Node 1 Primary
Node 2 Secondary

I have Samba server running on node1.
I go to a windows computer I open a file that is on a samba share, and
change its contents.
I pull the plug of node1. I go look to the same file on the samba share and
I see that the file is correct (repliction did his work).
I change the contents of the file (which is now the file on node2) and I
save it.
When I then put the plug back in node1, when I then look at the file it is
the old file again.
The file is the same file before I pulled the network plug.
The file is NOT replicated on the node1.
So my last changes had no effect

> find your syslog kernel messages.
> grep them for DRBD related messages around those events.
> post them here.

Here you are !

Node1 :

Aug 14 14:44:35 roboserver1 kernel: drbd0: drbdsetup [2723]: cstate
StandAlone --> Unconnected
Aug 14 14:44:35 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
Unconnected --> WFConnection
Aug 14 14:44:35 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
WFConnection --> WFReportParams
Aug 14 14:44:35 roboserver1 kernel: drbd0: Handshake successful: DRBD
Network Protocol version 74
Aug 14 14:44:35 roboserver1 kernel: drbd0: Connection established.
Aug 14 14:44:35 roboserver1 kernel: drbd0: I am(P):
1:00000002:00000002:00000054:0000003a:10
Aug 14 14:44:35 roboserver1 kernel: drbd0: Peer(S):
1:00000002:00000002:00000054:00000039:00
Aug 14 14:44:35 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
WFReportParams --> WFBitMapS
Aug 14 14:44:36 roboserver1 kernel: drbd0: Primary/Unknown -->
Primary/Secondary
Aug 14 14:44:36 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
WFBitMapS --> SyncSource
Aug 14 14:44:36 roboserver1 kernel: drbd0: Resync started as SyncSource
(need to sync 24 KB [6 bits set]).
Aug 14 14:44:36 roboserver1 kernel: drbd0: Resync done (total 1 sec; paused
0 sec; 24 K/sec)
Aug 14 14:44:36 roboserver1 kernel: drbd0: drbd0_worker [1807]: cstate
SyncSource --> Connected
Aug 14 15:19:06 roboserver1 kernel: drbd0: PingAck did not arrive in time.
Aug 14 15:19:06 roboserver1 kernel: drbd0: drbd0_asender [2725]: cstate
Connected --> NetworkFailure
Aug 14 15:19:06 roboserver1 kernel: drbd0: asender terminated
Aug 14 15:19:06 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
NetworkFailure --> BrokenPipe
Aug 14 15:19:06 roboserver1 kernel: drbd0: short read expecting header on
sock: r=-512
Aug 14 15:19:06 roboserver1 kernel: drbd0: worker terminated
Aug 14 15:19:06 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
BrokenPipe --> Unconnected
Aug 14 15:19:06 roboserver1 kernel: drbd0: Connection lost.
Aug 14 15:19:06 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
Unconnected --> WFConnection
Aug 14 15:20:59 roboserver1 kernel: drbd0: Primary/Unknown -->
Secondary/Unknown
Aug 14 15:21:02 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
WFConnection --> WFReportParams
Aug 14 15:21:02 roboserver1 kernel: drbd0: Handshake successful: DRBD
Network Protocol version 74
Aug 14 15:21:02 roboserver1 kernel: drbd0: Connection established.
Aug 14 15:21:02 roboserver1 kernel: drbd0: I am(S):
1:00000002:00000002:00000055:0000003a:00
Aug 14 15:21:02 roboserver1 kernel: drbd0: Peer(S):
1:00000002:00000002:00000054:0000003b:00
Aug 14 15:21:02 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
WFReportParams --> WFBitMapS
Aug 14 15:21:02 roboserver1 kernel: drbd0: Secondary/Unknown -->
Secondary/Secondary
Aug 14 15:21:03 roboserver1 kernel: drbd0: drbd0_receiver [2724]: cstate
WFBitMapS --> SyncSource
Aug 14 15:21:03 roboserver1 kernel: drbd0: Resync started as SyncSource
(need to sync 88 KB [22 bits set]).
Aug 14 15:21:03 roboserver1 kernel: drbd0: Resync done (total 1 sec; paused
0 sec; 88 K/sec)
Aug 14 15:21:03 roboserver1 kernel: drbd0: drbd0_worker [3617]: cstate
SyncSource --> Connected
Aug 14 15:21:24 roboserver1 kernel: drbd0: Secondary/Secondary -->
Primary/Secondary
Aug 14 15:21:24 roboserver1 kernel: EXT3 FS on drbd0, internal journal

Node 2 :

Aug 14 14:44:40 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
WFConnection --> WFReportParams
Aug 14 14:44:40 roboserver2 kernel: drbd0: Handshake successful: DRBD
Network Protocol version 74
Aug 14 14:44:40 roboserver2 kernel: drbd0: Connection established.
Aug 14 14:44:40 roboserver2 kernel: drbd0: I am(S):
1:00000002:00000002:00000054:00000039:00
Aug 14 14:44:40 roboserver2 kernel: drbd0: Peer(P):
1:00000002:00000002:00000054:0000003a:10
Aug 14 14:44:40 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
WFReportParams --> WFBitMapT
Aug 14 14:44:40 roboserver2 kernel: drbd0: Secondary/Unknown -->
Secondary/Primary
Aug 14 14:44:41 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
WFBitMapT --> SyncTarget
Aug 14 14:44:41 roboserver2 kernel: drbd0: Resync started as SyncTarget
(need to sync 24 KB [6 bits set]).
Aug 14 14:44:41 roboserver2 kernel: drbd0: Resync done (total 1 sec; paused
0 sec; 24 K/sec)
Aug 14 14:44:41 roboserver2 kernel: drbd0: drbd0_worker [1373]: cstate
SyncTarget --> Connected
Aug 14 15:19:11 roboserver2 kernel: drbd0: PingAck did not arrive in time.
Aug 14 15:19:11 roboserver2 kernel: drbd0: drbd0_asender [2456]: cstate
Connected --> NetworkFailure
Aug 14 15:19:11 roboserver2 kernel: drbd0: asender terminated
Aug 14 15:19:11 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
NetworkFailure --> BrokenPipe
Aug 14 15:19:11 roboserver2 kernel: drbd0: short read expecting header on
sock: r=-512
Aug 14 15:19:11 roboserver2 kernel: drbd0: worker terminated
Aug 14 15:19:11 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
BrokenPipe --> Unconnected
Aug 14 15:19:11 roboserver2 kernel: drbd0: Connection lost.
Aug 14 15:19:11 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
Unconnected --> WFConnection
Aug 14 15:19:14 roboserver2 kernel: drbd0: Secondary/Unknown -->
Primary/Unknown
Aug 14 15:19:15 roboserver2 kernel: EXT3 FS on drbd0, internal journal
Aug 14 15:21:03 roboserver2 kernel: drbd0: Primary/Unknown -->
Secondary/Unknown
Aug 14 15:21:07 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
WFConnection --> WFReportParams
Aug 14 15:21:07 roboserver2 kernel: drbd0: Handshake successful: DRBD
Network Protocol version 74
Aug 14 15:21:07 roboserver2 kernel: drbd0: Connection established.
Aug 14 15:21:07 roboserver2 kernel: drbd0: I am(S):
1:00000002:00000002:00000054:0000003b:00
Aug 14 15:21:07 roboserver2 kernel: drbd0: Peer(S):
1:00000002:00000002:00000055:0000003a:00
Aug 14 15:21:07 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
WFReportParams --> WFBitMapT
Aug 14 15:21:07 roboserver2 kernel: drbd0: Secondary/Unknown -->
Secondary/Secondary
Aug 14 15:21:07 roboserver2 kernel: drbd0: drbd0_receiver [1362]: cstate
WFBitMapT --> SyncTarget
Aug 14 15:21:07 roboserver2 kernel: drbd0: Resync started as SyncTarget
(need to sync 88 KB [22 bits set]).
Aug 14 15:21:07 roboserver2 kernel: drbd0: Resync done (total 1 sec; paused
0 sec; 88 K/sec)
Aug 14 15:21:07 roboserver2 kernel: drbd0: drbd0_worker [3263]: cstate
SyncTarget --> Connected
Aug 14 15:21:29 roboserver2 kernel: drbd0: Secondary/Secondary -->
Secondary/Primary




Thanks in advance !!




More information about the drbd-user mailing list