[DRBD-user] /dev/drbd0: Failure: (132) The sync-after minor number is invalid

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Wed Feb 4 18:26:08 CET 2009

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 am starting drbd on a node that just rebootet (e.g. via reboot -fn).
using "drbdadm up res" i occasionally get the following error

> /dev/drbd0: Failure: (132) The sync-after minor number is invalid

please find more information below. what might be the issue?
is this related to [1], even if i do not use a stacked device?

cheers,
raoul
[1] http://www.gossamer-threads.com/lists/drbd/users/16659#16659

> # lsmod|grep drbd
> drbd                  241864  0 
> cn                      9516  1 drbd

> # uname -a
> Linux wc02 2.6.27.13 #2 SMP Sat Jan 31 18:32:34 CET 2009 x86_64 GNU/Linux

> # cat /proc/drbd 
> version: 8.2.7 (api:88/proto:86-88)
> GIT-hash: cd953e17c5eb47e7df835024fee4b13e5fcaa217 debian/rules build by root at wc02, 2009-01-31 18:53:19

> # ls -al /dev/drbd*
> ls: cannot access /dev/drbd*: No such file or directory

on the other node both resources are in Primary State and WFConnection:
> root at wc01 ~ # cat /proc/drbd 
> version: 8.2.7 (api:88/proto:86-88)
> GIT-hash: cd953e17c5eb47e7df835024fee4b13e5fcaa217 debian/rules build by root at wc02, 2009-01-31 18:53:19
>  0: cs:WFConnection st:Primary/Unknown ds:UpToDate/Outdated C r---
>     ns:33284 nr:0 dw:33688 dr:81058 al:144 bm:124 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:164
>  1: cs:WFConnection st:Primary/Unknown ds:UpToDate/Outdated C r---
>     ns:3036 nr:93464 dw:100276 dr:19858 al:19 bm:40 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:1672

on node2:
> # drbdadm -c /etc/drbd.conf state www
> /dev/drbd0: Failure: (127) Device minor not allocated
> Command 'drbdsetup /dev/drbd0 state' terminated with exit code 10

> root at wc02 ~ # drbdadm attach www
> root at wc02 ~ # echo $?
> 0

> root at wc02 ~ # drbdadm connect www
> root at wc02 ~ # 

dmesg shows:
> [  101.948074] drbd0: conn( StandAlone -> Unconnected ) 
> [  101.948226] drbd0: Starting receiver thread (from drbd0_worker [3006])
> [  101.948299] drbd0: receiver (re)started
> [  101.948354] drbd0: conn( Unconnected -> WFConnection ) 
> [  102.049416] drbd0: Handshake successful: Agreed network protocol version 88
> [  102.049805] drbd0: Peer authenticated using 20 bytes of 'sha1' HMAC
> [  102.049858] drbd0: conn( WFConnection -> WFReportParams ) 
> [  102.050020] drbd0: Starting asender thread (from drbd0_receiver [3468])
> [  102.050165] drbd0: data-integrity-alg: <not-used>
> [  102.050215] drbd0: drbd_sync_handshake:
> [  102.050268] drbd0: self 5EB10AC2EF1FC942:0000000000000000:2A284814B44EE8B2:2524E401E7B4B921
> [  102.050344] drbd0: peer 528CE9D063A92169:5EB10AC2EF1FC943:2A284814B44EE8B3:2524E401E7B4B921
> [  102.050414] drbd0: uuid_compare()=-1 by rule 5
> [  102.053481] drbd0: peer( Unknown -> Primary ) conn( WFReportParams -> WFBitMapT ) pdsk( DUnknown -> UpToDate ) 
> [  102.252622] drbd0: conn( WFBitMapT -> WFSyncUUID ) 
> [  102.261345] drbd0: helper command: /sbin/drbdadm before-resync-target minor-0
> [  102.263061] drbd0: helper command: /sbin/drbdadm before-resync-target minor-0 exit code 0 (0x0)
> [  102.263131] drbd0: conn( WFSyncUUID -> SyncTarget ) disk( Outdated -> Inconsistent ) 
> [  102.263199] drbd0: Began resync as SyncTarget (will sync 480 KB [120 bits set]).
> [  103.049358] drbd0: Resync done (total 1 sec; paused 0 sec; 480 K/sec)
> [  103.049412] drbd0: conn( SyncTarget -> Connected ) disk( Inconsistent -> UpToDate ) 
> [  103.052621] drbd0: helper command: /sbin/drbdadm after-resync-target minor-0
> [  103.054442] drbd0: helper command: /sbin/drbdadm after-resync-target minor-0 exit code 0 (0x0)

if i only do a "drbd up www" after reboot, i get:
> # drbdadm up www
> /dev/drbd0: Failure: (132) The sync-after minor number is invalid
> Command 'drbdsetup /dev/drbd0 syncer --set-defaults --create-device --rate=50M --after=1 --al-extents=257' terminated with exit code 10

with dmesg:
> [   72.584084] drbd0: disk( Diskless -> Attaching ) 
> [   72.584133] drbd0: Starting worker thread (from cqueue [1868])
> [   72.633407] drbd0: Found 6 transactions (111 active extents) in activity log.
> [   72.633453] drbd0: Method to ensure write ordering: barrier
> [   72.633496] drbd0: max_segment_size ( = BIO size ) = 32768
> [   72.633539] drbd0: drbd_bm_resize called with capacity == 390620160
> [   72.634690] drbd0: resync bitmap: bits=48827520 words=762930
> [   72.634737] drbd0: size = 186 GB (195310080 KB)
> [   72.735178] drbd0: recounting of set bits took additional 1 jiffies
> [   72.735234] drbd0: 0 KB (0 bits) marked out-of-sync by on disk bit-map.
> [   72.735281] drbd0: disk( Attaching -> Consistent ) 

-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: drbd.conf
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090204/644a4d3a/attachment.asc>


More information about the drbd-user mailing list