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

Thomas Baumann tom at tiri.li
Sun Jan 16 23:25:26 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.


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.



More information about the drbd-user mailing list