[DRBD-user] again: secondary/unknown, primary/unknown

Dan Barker dbarker at visioncomm.net
Mon Jan 17 17:07:44 CET 2011

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


All the commands you show are against r0. The problems (oos blocks) are all
on r1.

Repeat your commands referencing the correct resource and they will do what
you want. Specifically:
node1 is fine, primary and waiting for connection with 4096 blocks to sync.
node2 needs:
drbdadm secondary r1 
drbdadm discard-my-data r1 
drbdadm connect r1

The resource should very quickly go to secondary/primary uptodate/uptodate.
Drbdadm primary r1 if you want. I can't tell from your description.

Dan

-----Original Message-----
From: drbd-user-bounces at lists.linbit.com
[mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Thomas Baumann
Sent: Sunday, January 16, 2011 5:25 PM
To: drbd-user
Subject: [DRBD-user] again: secondary/unknown, primary/unknown

Hi list,
I saw several approaches to get the resource get in sync again, but it 
will not work:

node1:

version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
     ns:264076 nr:0 dw:0 dr:264076 al:0 bm:64 lo:0 pe:0 ua:0 ap:0 ep:1 
wo:b oos:0
  1: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown   r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:4096


node2:

version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
  1: cs:WFConnection ro:Secondary/Unknown ds:UpToDate/DUnknown C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:8192

I tried following:

node1$ drbdadm secondary r0
node1$ cat /proc/drbd
version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
     ns:264076 nr:0 dw:0 dr:264076 al:0 bm:64 lo:0 pe:0 ua:0 ap:0 ep:1 
wo:b oos:0
  1: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown   r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:4096

node2$ cat /proc/drbd  # remains as it seems not to be connected
version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
  1: cs:WFConnection ro:Secondary/Unknown ds:UpToDate/DUnknown C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:8192

node2$ drbdadm disconnect r0
node2$ cat /proc/drbd   # changes to StandAlone
version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
  1: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown   r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:8192
node2$ drbdadm -- --discard-my-data connect r0
node2$ cat /proc/drbd    # changes to former status
version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
  1: cs:WFConnection ro:Secondary/Unknown ds:UpToDate/DUnknown C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:8192

node1$ drbdadm primary r0
node1$ cat /proc/drbd
version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
     ns:264076 nr:0 dw:0 dr:264076 al:0 bm:64 lo:0 pe:0 ua:0 ap:0 ep:1 
wo:b oos:0
  1: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown   r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:4096

So - nothing to get the resource r0 again in sync.

What is missing?
Best regards and thanks for help.

Thomas.
_______________________________________________
drbd-user mailing list
drbd-user at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4993 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20110117/4744d079/attachment.bin>


More information about the drbd-user mailing list