[DRBD-user] Problem with connection after replacing secondary HDD

Chris Maciejewski chris at wima.co.uk
Sat Oct 18 12:28:36 CEST 2008

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


Hello List,

I have the following problem.
After replacing faulty HDD in my secondary node, I am trying the following:

on secondary:
$ drbdadm secondary all
$ drbdadm -- --discard-my-data connect all

on primary:
$ drbdadm connect all

but unfortunately primary shows:

$ cat /proc/drbd
version: 8.0.11 (api:86/proto:86)
GIT-hash: b3fe2bdfd3b9f7c2f923186883eb9e2a0d3a5b1b build by
phil at mescal, 2008-02-12 11:56:43

 1: cs:StandAlone st:Primary/Unknown ds:UpToDate/DUnknown   r---
    ns:0 nr:0 dw:77046420 dr:91588241 al:28775 bm:28902 lo:0 pe:0 ua:0 ap:0
	resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
	act_log: used:0/127 hits:19232830 misses:33175 starving:0 dirty:4400
changed:28775
------------------------------------------------------

$ tail /var/log/messages
Oct 18 11:20:21 coron kernel: [56508.837269] drbd1: conn( StandAlone
-> Unconnected )
Oct 18 11:20:21 coron kernel: [56508.837297] drbd1: Starting receiver
thread (from drbd1_worker [4608])
Oct 18 11:20:21 coron kernel: [56508.837324] drbd1: receiver (re)started
Oct 18 11:20:21 coron kernel: [56508.837334] drbd1: conn( Unconnected
-> WFConnection )
Oct 18 11:20:21 coron kernel: [56508.939713] drbd1: Handshake
successful: DRBD Network Protocol version 86
Oct 18 11:20:21 coron kernel: [56508.981338] drbd1: Peer authenticated
using 20 bytes of 'sha1' HMAC
Oct 18 11:20:21 coron kernel: [56508.981346] drbd1: conn( WFConnection
-> WFReportParams )
Oct 18 11:20:21 coron kernel: [56508.981354] drbd1: Starting asender
thread (from drbd1_receiver [16742])
Oct 18 11:20:21 coron kernel: [56508.981431] drbd1: conn(
WFReportParams -> Disconnecting )
Oct 18 11:20:21 coron kernel: [56508.981470] drbd1: asender terminated
Oct 18 11:20:21 coron kernel: [56508.981473] drbd1: Terminating asender thread
Oct 18 11:20:21 coron kernel: [56508.981513] drbd1: tl_clear()
Oct 18 11:20:21 coron kernel: [56508.981517] drbd1: Connection closed
Oct 18 11:20:21 coron kernel: [56508.981523] drbd1: conn(
Disconnecting -> StandAlone )
Oct 18 11:20:21 coron kernel: [56508.981528] drbd1: receiver terminated
Oct 18 11:20:21 coron kernel: [56508.981530] drbd1: Terminating receiver thread
------------------------------------------------------

and secondary shows:

$ cat /proc/drbd
version: 8.0.11 (api:86/proto:86)
GIT-hash: b3fe2bdfd3b9f7c2f923186883eb9e2a0d3a5b1b build by
root at server2, 2008-10-18 10:02:32

 1: cs:WFConnection st:Secondary/Unknown ds:Inconsistent/DUnknown C r---
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
	resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
	act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0
------------------------------------------------------
$ tail /var/log/messages
Oct 18 11:17:16 VMServer2 kernel: [46574564.140000] drbd1: Handshake
successful: DRBD Network Protocol version 86
Oct 18 11:17:16 VMServer2 kernel: [46574564.140000] drbd1: Peer
authenticated using 20 bytes of 'sha1' HMAC
Oct 18 11:17:16 VMServer2 kernel: [46574564.140000] drbd1: conn(
WFConnection -> WFReportParams )
Oct 18 11:17:16 VMServer2 kernel: [46574564.140000] drbd1: Starting
asender thread (from drbd1_receiver [22801])
Oct 18 11:17:16 VMServer2 kernel: [46574564.180000] drbd1: sock was
reset by peer
Oct 18 11:17:16 VMServer2 kernel: [46574564.180000] drbd1: conn(
WFReportParams -> BrokenPipe )
Oct 18 11:17:16 VMServer2 kernel: [46574564.200000] drbd1: asender terminated
Oct 18 11:17:16 VMServer2 kernel: [46574564.200000] drbd1: Terminating
asender thread
Oct 18 11:17:16 VMServer2 kernel: [46574564.200000] drbd1: tl_clear()
Oct 18 11:17:16 VMServer2 kernel: [46574564.200000] drbd1: Connection closed
Oct 18 11:17:16 VMServer2 kernel: [46574564.200000] drbd1: conn(
BrokenPipe -> Unconnected )
Oct 18 11:17:16 VMServer2 kernel: [46574564.200000] drbd1: receiver terminated
Oct 18 11:17:16 VMServer2 kernel: [46574564.200000] drbd1: receiver (re)started
Oct 18 11:17:16 VMServer2 kernel: [46574564.200000] drbd1: conn(
Unconnected -> WFConnection )
------------------------------------------------------

Any help would be very much appreciated.

Regards,
Chris



More information about the drbd-user mailing list