[DRBD-user] mix of lenny32 and 64Bit fails: before-resync-target handler returned 3

Ekkard Gerlach ekkardgerlach at aiai.de
Thu Aug 19 23:47:54 CEST 2010

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


Hi, 

I've mixed a lenny32 on a non-64Bit processor machine und a 64Bit machine: 
The lenny32 (prax2) don't want to connect:

prax2: before-resync-target handler returned 3, dropping connection.
====================================================================
Aug 19 22:46:12 prax2 kernel: [  580.839216] block drbd1: peer( Unknown -> Primary ) conn( WFReportParams -> WFBitMapT ) pdsk(
DUnknown -> UpToDate )
Aug 19 22:46:12 prax2 kernel: [  581.008559] block drbd1: conn( WFBitMapT -> WFSyncUUID )
Aug 19 22:46:12 prax2 kernel: [  581.015801] block drbd1: helper command: /sbin/drbdadm before-resync-target minor-1
Aug 19 22:46:12 prax2 kernel: [  581.017580] block drbd1: helper command: /sbin/drbdadm before-resync-target minor-1 exit code 3 (0x300)
Aug 19 22:46:12 prax2 kernel: [  581.017591] block drbd1: before-resync-target handler returned 3, dropping connection.
Aug 19 22:46:12 prax2 kernel: [  581.017610] block drbd1: peer( Primary -> Unknown ) conn( WFSyncUUID -> Disconnecting ) pdsk(UpToDate -> 
DUnknown )
Aug 19 22:46:12 prax2 kernel: [  581.017693] block drbd1: asender terminated


The 64Bit node (prax1) wants to sync but: 
============================================================
Aug 19 22:46:12 prax1 kernel: [  828.579807] block drbd1: peer( Unknown -> Secondary ) conn( WFReportParams -> WFBitMapS ) pdsk(
Inconsistent -> UpToDate )
Aug 19 22:46:12 prax1 kernel: [  828.756352] block drbd1: conn( WFBitMapS -> SyncSource ) pdsk( UpToDate -> Inconsistent )
Aug 19 22:46:12 prax1 kernel: [  828.756362] block drbd1: Began resync as SyncSource (will sync 31456284 KB [7864071 bits set]).
Aug 19 22:46:12 prax1 kernel: [  828.758828] block drbd1: meta connection shut down by peer.
Aug 19 22:46:12 prax1 kernel: [  828.758898] block drbd1: peer( Secondary -> Unknown ) conn( SyncSource -> NetworkFailure )


I've installed both machines these days. 
prax2:~# dpkg -l | grep drbd
ii  drbd8-utils                            2:8.0.14-2+lenny1          RAID 1 over tcp/ip for Linux utilities

prax1:~# dpkg -l | grep drbd
ii  drbd8-utils                              2:8.0.14-2+lenny1          RAID 1 over tcp/ip for Linux utilities

prax1:~# uname -a
Linux prax1 2.6.32-bpo.5-vserver-amd64 #1 SMP Fri Jun 11 11:09:30 UTC 2010 x86_64 GNU/Linux

prax2:~# uname -a
Linux prax2 2.6.32-bpo.5-vserver-686 #1 SMP Sat Jun 12 00:50:08 UTC 2010 i686 GNU/Linux

prax1:~# ls /sbin/drbdmeta -l
-rwsr-xr-- 1 root haclient 61248 13. Mär 21:28 /sbin/drbdmeta

prax2:~# ls /sbin/drbdmeta -l
-rwsr-xr-- 1 root haclient 55548 12. Mär 19:53 /sbin/drbdmeta



prax2:~# /sbin/drbdsetup /dev/drbd0 show
disk {
        size                    0s _is_default; # bytes
        on-io-error             detach;
        fencing                 dont-care _is_default;
}
syncer {
        rate                    102400k; # bytes/second
        after                   -1 _is_default;
        al-extents              257;
}
_this_host {
        device                  "/dev/drbd0";
        disk                    "/dev/vg-prax2/vserver-misc";
        meta-disk               internal;
}
# (56)           (null) = (integer) 0   [len: 4]
# (57)           (null) = (bit) off     [len: 1]
# (58)           (null) = (bit) off     [len: 1]
# (52)           (null) = (string)'3'  [len: 0]
# (51)           (null) = (string)'@'  [len: 0]
# (64)      unknown tag = (string)'A'  [len: 0]
# (65)      unknown tag = (bit) off     [len: 1]
# Found unknown tags, you should update your
# userland tools


prax1:~# /sbin/drbdsetup /dev/drbd0 show
disk {
        size                    0s _is_default; # bytes
        on-io-error             detach;
        fencing                 dont-care _is_default;
}
net {
        timeout                 60 _is_default; # 1/10 seconds
        max-epoch-size          2048 _is_default;
        max-buffers             2048 _is_default;
        unplug-watermark        128 _is_default;
        connect-int             10 _is_default; # seconds
        ping-int                10 _is_default; # seconds
        sndbuf-size             0; # bytes
        ko-count                4;
        cram-hmac-alg           "sha1";
        shared-secret           "space-for-vserver";
        after-sb-0pri           disconnect _is_default;
        after-sb-1pri           disconnect _is_default;
        after-sb-2pri           disconnect _is_default;
        rr-conflict             disconnect _is_default;
        ping-timeout            5 _is_default; # 1/10 seconds
}
syncer {
        rate                    102400k; # bytes/second
        after                   -1 _is_default;
        al-extents              257;
}
protocol C;
_this_host {
        device                  "/dev/drbd0";
        disk                    "/dev/vg-prax1/vserver-misc";
        meta-disk               internal;
        address                 192.168.228.2:7700;
}
_remote_host {
        address                 192.168.228.3:7700;
}
# (56)           (null) = (integer) 0   [len: 4]
# (57)           (null) = (bit) off     [len: 1]
# (58)           (null) = (bit) off     [len: 1]
# (44)           (null) = (string)''    [len: 0]
# (67)      unknown tag = (integer) 0   [len: 4]
# (60)           (null) = (bit) off     [len: 1]
# (61)           (null) = (bit) off     [len: 1]
# (52)           (null) = (string)'3'  [len: 0]
# (51)           (null) = (string)'@'  [len: 0]
# (64)      unknown tag = (string)'A'  [len: 0]
# (65)      unknown tag = (bit) off     [len: 1]
# Found unknown tags, you should update your
# userland tools


Update userland tools on both sides? - I took the latest kernel ... 

Download drbd sources an install them? -  I tried it: 

prax2:~# aptitude install drbd8-source 

prax2:~# module-assistant a-i drbd8
[...]
In file included from /usr/src/modules/drbd8/drbd/drbd_bitmap.c:31:                                                                          
/usr/src/modules/drbd8/drbd/drbd_int.h:529: error: ‘EXT_UUID_SIZE’ undeclared here (not in a function)                                       
/usr/src/modules/drbd8/drbd/drbd_int.h:784: error: ‘UUID_SIZE’ undeclared here (not in a function)                                           
In file included from /usr/src/modules/drbd8/drbd/drbd_bitmap.c:31:                                                                          
/usr/src/modules/drbd8/drbd/drbd_int.h:857: error: field ‘new_state_tmp’ has incomplete type                                                 
/usr/src/modules/drbd8/drbd/drbd_int.h:859: error: field ‘state’ has incomplete type                                                         
In file included from /usr/src/modules/drbd8/drbd/drbd_int.h:1262,                                                                           
                 from /usr/src/modules/drbd8/drbd/drbd_bitmap.c:31:                                                                          
/usr/src/modules/drbd8/drbd/drbd_wrappers.h: In function ‘drbd_get_hardsect’:                                                                
/usr/src/modules/drbd8/drbd/drbd_wrappers.h:21: error: ‘struct request_queue’ has no member named ‘hardsect_size’                            
/usr/src/modules/drbd8/drbd/drbd_wrappers.h: At top level:                                                                                   
/usr/src/modules/drbd8/drbd/drbd_wrappers.h:340: error: redefinition of typedef ‘gfp_t’                                                      
/usr/src/linux-headers-2.6.32-bpo.5-common-vserver/include/linux/types.h:182: error: previous declaration of ‘gfp_t’ was here  
[...]

Any ideas? 

thx
Ekkard



More information about the drbd-user mailing list