<div dir="ltr">Hello.<div><br><div>After <a href="http://git.drbd.org/drbd-9.0.git/commit/4fe4c962f41307c2db2846f18f5137082f339cd9">4fe4c96 commit</a> in DRBD9, <br></div><div>If both volume's size is different, It is not going on progress sync initially, at WFBitmapS/WFBitmapT</div><div><br></div><div>When ds is Inconsistent/Inconsistent, then I command "primary --force"</div><div>It was stalled at receive_bitmap(), because decode_bitmap_c() return err is positive value.</div><div>In decoding at recv_bm_rle_bits(), bit_offset can't arrive bm_bits' value.<br></div><div><br></div><div>I'm looking for this case more.</div><div>Plz. help me</div><div><br></div><div>Before 4fe4c96, it works between nodes by the minimum volume's size.<br></div><div><br></div><div><br></div><div><br></div><div>In case 1:1 config, volume 200MB, 210MB log below </div><div><br></div><div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0: Starting worker thread (from drbdsetup [102643])</div><div>Jul 12 18:00:04 DRBD9_1 drbd: Starting DRBD resources: [</div><div>Jul 12 18:00:04 DRBD9_1 drbd: create res: r0</div><div>Jul 12 18:00:04 DRBD9_1 systemd-udevd: error: /dev/drbd1: Wrong medium type</div><div>Jul 12 18:00:04 DRBD9_1 drbd: prepare disk: r0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: disk( Diskless -> Attaching )</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: Maximum number of peer devices = 1</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0: Method to ensure write ordering: flush</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: my node_id: 0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: Adjusting my ra_pages to backing device's (32 -> 1024)</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: my node_id: 0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: drbd_bm_resize called with capacity == 430080</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: resync bitmap: bits=53760 words=840 pages=2</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: recounting of set bits took additional 0ms</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: Suspended AL updates</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: disk( Attaching -> Inconsistent )</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: attached to current UUID: 0000000000000004</div><div>Jul 12 18:00:04 DRBD9_1 systemd-udevd: error: /dev/drbd1: Wrong medium type</div><div>Jul 12 18:00:04 DRBD9_1 drbd: adjust disk: r0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0 DRBD9_2: Starting sender thread (from drbdsetup [102653])</div><div>Jul 12 18:00:04 DRBD9_1 drbd: prepare net: r0</div><div>Jul 12 18:00:04 DRBD9_1 drbd: attempt to connect: r0</div><div>Jul 12 18:00:04 DRBD9_1 drbd: ]</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0 DRBD9_2: conn( StandAlone -> Unconnected )</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0 DRBD9_2: Starting receiver thread (from drbd_w_r0 [102644])</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0 DRBD9_2: conn( Unconnected -> Connecting )</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0 DRBD9_2: Handshake successful: Agreed network protocol version 111</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0 DRBD9_2: Feature flags enabled on protocol level: 0x7 TRIM THIN_RESYNC WRITE_SAME.</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0 DRBD9_2: Starting ack_recv thread (from drbd_r_r0 [102662])</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0: Preparing cluster-wide state change 480688786 (0->1 499/146)</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0: State change 480688786: primary_nodes=0, weak_nodes=0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0: Committing cluster-wide state change 480688786 (3ms)</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0 DRBD9_2: conn( Connecting -> Connected ) peer( Unknown -> Secondary )</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: current_size: 430080</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: c_size: 450560 u_size: 0 d_size: 450560 max_size: 450560</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: la_size: 0 my_usize: 0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: my node_id: 0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: node_id: 1 idx: 0 bm-uuid: 0x0 flags: 0x0 max_size: 450560 (DUnknown)</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: calling drbd_determine_dev_size()</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: my node_id: 0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: node_id: 1 idx: 0 bm-uuid: 0x0 flags: 0x0 max_size: 450560 (DUnknown)</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: drbd_sync_handshake:</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: self 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:53760 flags:0</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: peer 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:56320 flags:24</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: uuid_compare()=0 by rule 10</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: No resync, but 53760 bits in bitmap!</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: pdsk( DUnknown -> Inconsistent ) repl( Off -> Established )</div><div>Jul 12 18:00:04 DRBD9_1 kernel: drbd r0/0 drbd1: Resumed AL updates</div><div>Jul 12 18:00:04 DRBD9_1 drbd: WARN: stdin/stdout is not a TTY; using /dev/consoledrbdadm: Unknown command 'sh-b-pri'</div><div>Jul 12 18:00:04 DRBD9_1 drbd: .</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0: Preparing cluster-wide state change 3595219668 (0->-1 7683/4609)</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0: State change 3595219668: primary_nodes=1, weak_nodes=FFFFFFFFFFFFFFFC</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0: Committing cluster-wide state change 3595219668 (1ms)</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0: role( Secondary -> Primary )</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1: disk( Inconsistent -> UpToDate )</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1: size = 210 MB (215040 KB)</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0: Forced to consider local data as UpToDate!</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1: new current UUID: E33ECAD77287E565 weak: FFFFFFFFFFFFFFFC</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: drbd_sync_handshake:</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: self E33ECAD77287E565:0000000000000000:0000000000000000:0000000000000000 bits:53760 flags:0</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: peer 0000000000000004:FFFFFFFFFFFFFFFF:0000000000000000:0000000000000000 bits:56320 flags:104</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: uuid_compare()=3 by rule 30</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: Writing the whole bitmap, full sync required after drbd_sync_handshake.</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: repl( Established -> WFBitMapS )</div><div>Jul 12 18:00:40 DRBD9_1 kernel: drbd r0/0 drbd1 DRBD9_2: send bitmap stats [Bytes(packets)]: plain 0(0), RLE 21(1), total 21; compression: 99.7%</div></div><div><br></div><div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>Jul 12 17:59:57 DRBD9_2 drbd: Starting DRBD resources: [</div><div>Jul 12 17:59:57 DRBD9_2 drbd: create res: r0</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0: Starting worker thread (from drbdsetup [83726])</div><div>Jul 12 17:59:57 DRBD9_2 systemd-udevd: error: /dev/drbd1: Wrong medium type</div><div>Jul 12 17:59:57 DRBD9_2 drbd: prepare disk: r0</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: disk( Diskless -> Attaching )</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: Maximum number of peer devices = 1</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0: Method to ensure write ordering: flush</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: my node_id: 1</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: Adjusting my ra_pages to backing device's (32 -> 1024)</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: my node_id: 1</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: drbd_bm_resize called with capacity == 450560</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: resync bitmap: bits=56320 words=880 pages=2</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: recounting of set bits took additional 0ms</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: Suspended AL updates</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: disk( Attaching -> Inconsistent )</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0/0 drbd1: attached to current UUID: 0000000000000004</div><div>Jul 12 17:59:57 DRBD9_2 drbd: adjust disk: r0</div><div>Jul 12 17:59:57 DRBD9_2 systemd-udevd: error: /dev/drbd1: Wrong medium type</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0 DRBD9_1: Starting sender thread (from drbdsetup [83737])</div><div>Jul 12 17:59:57 DRBD9_2 drbd: prepare net: r0</div><div>Jul 12 17:59:57 DRBD9_2 drbd: attempt to connect: r0</div><div>Jul 12 17:59:57 DRBD9_2 drbd: ]</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0 DRBD9_1: conn( StandAlone -> Unconnected )</div><div>Jul 12 17:59:57 DRBD9_2 kernel: drbd r0 DRBD9_1: Starting receiver thread (from drbd_w_r0 [83727])</div><div>Jul 12 17:59:58 DRBD9_2 kernel: drbd r0 DRBD9_1: conn( Unconnected -> Connecting )</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0 DRBD9_1: Handshake successful: Agreed network protocol version 111</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0 DRBD9_1: Feature flags enabled on protocol level: 0x7 TRIM THIN_RESYNC WRITE_SAME.</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0 DRBD9_1: Starting ack_recv thread (from drbd_r_r0 [83745])</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0 DRBD9_1: Preparing remote state change 480688786 (primary_nodes=0, weak_nodes=0)</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0 DRBD9_1: Committing remote state change 480688786</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0 DRBD9_1: conn( Connecting -> Connected ) peer( Unknown -> Secondary )</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1: current_size: 450560</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: c_size: 430080 u_size: 0 d_size: 430080 max_size: 430080</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: la_size: 0 my_usize: 0</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: node_id: 0 idx: 0 bm-uuid: 0x0 flags: 0x0 max_size: 430080 (DUnknown)</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1: my node_id: 1</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: calling drbd_determine_dev_size()</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: node_id: 0 idx: 0 bm-uuid: 0x0 flags: 0x0 max_size: 430080 (DUnknown)</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1: my node_id: 1</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: drbd_sync_handshake:</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: self 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:56320 flags:0</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: peer 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:53760 flags:24</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: uuid_compare()=0 by rule 10</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1: No resync, but 56320 bits in bitmap!</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: pdsk( DUnknown -> Inconsistent ) repl( Off -> Established )</div><div>Jul 12 18:00:04 DRBD9_2 kernel: drbd r0/0 drbd1: Resumed AL updates</div><div>Jul 12 18:00:04 DRBD9_2 drbd: WARN: stdin/stdout is not a TTY; using /dev/consoledrbdadm: Unknown command 'sh-b-pri'</div><div>Jul 12 18:00:04 DRBD9_2 drbd: .</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0 DRBD9_1: Preparing remote state change 3595219668 (primary_nodes=0, weak_nodes=0)</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0 DRBD9_1: Committing remote state change 3595219668</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0 DRBD9_1: peer( Secondary -> Primary )</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: pdsk( Inconsistent -> UpToDate )</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1: size = 220 MB (225280 KB)</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: drbd_sync_handshake:</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: self 0000000000000004:0000000000000000:0000000000000000:0000000000000000 bits:56320 flags:0</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: peer E33ECAD77287E565:FFFFFFFFFFFFFFFF:0000000000000000:0000000000000000 bits:53760 flags:120</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: uuid_compare()=-3 by rule 20</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: Writing the whole bitmap, full sync required after drbd_sync_handshake.</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: repl( Established -> WFBitMapT )</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1 DRBD9_1: s(53760) bit_offset(53760) word_offset(840) bm_bits(56320)</div><div>Jul 12 18:00:40 DRBD9_2 kernel: drbd r0/0 drbd1: after decode_bitmap_c() err(1)</div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img src="cid:image001.png@01D0F522.B2A586F0"><br><div><p style="margin:0cm 0cm 0.0001pt;background-image:initial;background-repeat:initial"><font face="verdana, sans-serif"><span style="font-size:10pt;color:black"><span lang="EN-US">기술연구소 </span><span lang="EN-US"> Mobile : 010-4762-0519</span></span><span lang="EN-US" style="font-size:10.5pt;color:rgb(136,136,136)"></span></font></p><p style="margin:0cm 0cm 0pt"></p><p style="margin:0cm 0cm 0.0001pt;background-image:initial;background-repeat:initial"><font face="verdana, sans-serif"><b><span style="font-size:10.5pt;color:black">박 경 민<span lang="EN-US"> 차장</span></span></b><span style="font-size:10pt;color:black"><span lang="EN-US"> kmpak</span></span><span lang="EN-US" style="font-size:10pt;color:black">@<a href="http://mantech.co.kr/" style="color:rgb(17,85,204)" target="_blank">mantech.co.kr</a></span><span lang="EN-US" style="font-size:10.5pt;color:rgb(136,136,136)"></span></font></p><p style="margin:0cm 0cm 0.0001pt;line-height:21px"><font color="#000000" face="verdana, sans-serif"><span style="font-size:8pt;line-height:16px">서울특별시 성동구 성수일로<span lang="EN-US">4</span>길<span lang="EN-US"> 25 </span>서울숲코오롱디지털타워<span lang="EN-US"> 12</span>층<span lang="EN-US"> </span></span><span lang="EN-US" style="font-size:8pt;line-height:16px"> </span></font></p><p style="margin:0cm 0cm 0.0001pt;line-height:21px"><font color="#000000" face="verdana, sans-serif"><span lang="EN-US" style="font-size:8pt;line-height:16px">Fax : 02-575-4858 / Tel : (02) 2136-6978 (978)</span></font></p><p style="margin:0cm 0cm 0.0001pt;line-height:21px"><font color="#000000" face="verdana, sans-serif"><span lang="EN-US" style="font-size:8pt;line-height:16px"><span></span><span></span><img src="cid:image002.png@01D126A1.B8986400"><br></span></font></p></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aa21wYWtAbWFudGVjaC5jby5rcg%3D%3D&type=zerocontent&guid=b6c752e5-8cb5-44e9-8bf3-b6788a08399a"><font color="#ffffff" size="1">ᐧ</font></div>