[DRBD-user] is this a bug?

Thomas Fischer tfj at gmx.de
Tue May 4 11:39:22 CEST 2004

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


Hello *,

I want to use drbd and dm-crypt with kernel 2.6.5 with debian woody on db1
(192.168.1.1) and db2 (192.168.1.2).

So i downloaded the CVS-branch 0.7 last week and made a patch for the kernel
and applied them. After that i configured the kernel with all things needed
for device encryption (with device mapper) and the distributed redundant
block device. I issued make-kpkg and all gone fine. I installed the
kernel-package and created the mapper device and made the ext3 filesystem on
both (db1 and db2). Now i want use drbd.

first i did on db1 (192.168.1.1 - primary):
        drbdsetup /dev/nb0 disk /dev/mapper/encrypted_device /dev/hda2 0
        drbdsetup /dev/nb0 net 192.168.1.1 192.168.1.2 C
        drbdsetup /dev/nb0 primary
finanlly i mounted the device
        mount /dev/nb0 /database

second i did on db2 (192.168.1.2):
drbdsetup /dev/nb0 disk /dev/mapper/encrypted_device /dev/hda2 0
drbdsetup /dev/nb0 net 192.168.1.2 192.168.1.1 C
After i issued the commands on db2 i get the following message in the logs:

May  3 17:22:32 db2 kernel: drbd0: size = 77521657 KB
May  3 17:22:33 db2 kernel: drbd0: 77472505 KB marked out-of-sync by on disk
bit-map.
May  3 17:22:33 db2 kernel: drbd0: No usable activity log found.
May  3 17:26:32 db2 kernel: drbd0: receiver exiting
May  3 17:26:33 db2 kernel: drbd0: receiver exiting
May  3 17:27:35 db2 kernel: drbd0: Connection established.
May  3 17:27:35 db2 kernel: drbd0: asender terminated
May  3 17:27:35 db2 kernel: drbd0: worker terminated
May  3 17:27:35 db2 kernel: drbd0: Connection lost.
May  3 17:27:35 db2 kernel: drbd0: Connection established.
May  3 17:27:35 db2 kernel: drbd0: Resync started as target (need to sync
77472553 KB).
May  3 17:27:35 db2 kernel: ------------[ cut here ]------------
May  3 17:27:35 db2 kernel: kernel BUG at
drivers/block/drbd/lru_cache.c:108!
May  3 17:27:35 db2 kernel: invalid operand: 0000 [#1]
May  3 17:27:35 db2 kernel: CPU:    0
May  3 17:27:35 db2 kernel: EIP:    0060:[lc_find+28/96]    Not tainted
May  3 17:27:35 db2 kernel: EFLAGS: 00010046   (2.6.5)
May  3 17:27:35 db2 kernel: EIP is at lc_find+0x1c/0x60
May  3 17:27:35 db2 kernel: eax: de809000   ebx: de809000   ecx: 00000001  
edx: 00000000
May  3 17:27:35 db2 kernel: esi: 00000000   edi: de80726c   ebp: ddf94000  
esp: dc7fbf40
May  3 17:27:35 db2 kernel: ds: 007b   es: 007b   ss: 0068
May  3 17:27:35 db2 kernel: Process drbd0_worker (pid: 320,
threadinfo=dc7fa000
task=dcd32180)
May  3 17:27:35 db2 kernel: Stack: 00000000 00000000 c024de97 de809000
00000000
00000000 00000000 ddf94000
May  3 17:27:35 db2 kernel:        00000006 ddf94158 dcd32180 00000213
00000000
dc7fa000 de80726c 00000000
May  3 17:27:35 db2 kernel:        00000000 00000000 049ee2f9 00000000
00000213
c0247926 ddf94000 00000000
May  3 17:27:35 db2 kernel: Call Trace:
May  3 17:27:35 db2 kernel:  [drbd_rs_begin_io+695/944]
drbd_rs_begin_io+0x2b7/0x3b0
May  3 17:27:35 db2 kernel:  [w_make_resync_request+262/544]
w_make_resync_request+0x106/0x220
May  3 17:27:35 db2 kernel:  [drbd_worker+170/471] drbd_worker+0xaa/0x1d7
May  3 17:27:35 db2 kernel:  [drbd_thread_setup+46/80]
drbd_thread_setup+0x2e/0x50
May  3 17:27:35 db2 kernel:  [drbd_thread_setup+0/80]
drbd_thread_setup+0x0/0x50
May  3 17:27:35 db2 kernel:  [kernel_thread_helper+5/16]
kernel_thread_helper+0x5/0x10
May  3 17:27:35 db2 kernel:
May  3 17:27:35 db2 kernel: Code: 0f 0b 6c 00 a0 c1 34 c0 56 53 e8 b5 ff ff
ff 8b 54 83 28 83

But things work. I copied some files on db1 into the directory /database and
they appeared on db2 also.
Should i be worried because of the logs?
Let me know if you need more information!

With best regards 
tom

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl




More information about the drbd-user mailing list