[DRBD-user] slab.c

Stephan Rattai srattai at zmnh.uni-hamburg.de
Thu May 13 10:29:57 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.


Hi, 

I'm having a bit trouble with drbd-0.7_pre7. 

I'm testing with kernel 2.6.6 on a Dual PIII-800 with 512 Megs and a single 
Xeon 2,4G and 1Gig connected via Gbe. 

First Problem: I can create a filesystem on the primary's /dev/nb0 but when I 
try to mount 
it on the secondary node, mount whines about /dev/nb0 already being mounted 
or the mountpoint being in use which is definetely not the case. dmesg says 

drbd0: ASSERT( mdev->state == Primary ) 
in /root/src/drbd-0.7_pre7/drbd/drbd_main.c:1134. 

/proc/drbd says: 

version: 0.7-pre7 (api:72/proto:72)
0: cs:Connected st:Secondary/Primary ld:Consistent
    ns:258 nr:629686 dw:629945 dr:606 al:2 bm:2 lo:0 pe:0 ua:0

when I strace the mount I get:

mount("/dev/nb0", "/mnt/replika/", "ext2", MS_RDONLY|0xc0ed0000, 0x8085d80) = 
-1 EBUSY (Device or resource busy)

I have absolutely no idea why. On the primary node everything works just fine 
so the filesystem must be ok. 

The other problem is that the module seems to crash the machine when I try to 
reload it after it has been unloaded. After having unloaded the module I get:

drbd0: short read expecting header on sock: r=-512
drbd0: worker terminated
drbd0: asender terminated
drbd0: Connection lost.
drbd0: receiver terminated
drbd0: worker terminated
drbd0: ASSERT( mdev->ee_vacant==0 ) 
in /root/src/drbd-0.7_pre7/drbd/drbd_main.c:1417
slab error in kmem_cache_destroy(): cache `drbd_ee_cache': Can't free all 
objects
Call Trace:
 [<c0147595>] kmem_cache_destroy+0xd5/0x120
 [<e1108ab8>] drbd_destroy_mempools+0x58/0x90 [drbd]
 [<e1115f15>] drbd_cleanup+0x215/0x4b5 [drbd]
 [<c01383db>] sys_delete_module+0x15b/0x1b0
 [<c015264e>] do_munmap+0x16e/0x1f0
 [<c01062db>] syscall_call+0x7/0xb

drbd: kmem_cache_destroy(drbd_ee_cache) FAILED


When I try to reload I get:

drbd: initialised. Version: 0.7-pre7 (api:72/proto:72)
drbd0: size = 40061952 KB
drbd0: 40061952 KB marked out-of-sync by on disk bit-map.
drbd0: No usable activity log found.
drbd0: Connection established.
drbd0: No resync -> clearing bit map.
drbd0: sock was shut down by peer
drbd0: short read expecting header on sock: r=0
drbd0: meta connection shut down by peer.
drbd0: asender terminated
drbd0: worker terminated
drbd0: Connection lost.
drbd0: Discarding network configuration.
drbd0: receiver terminated
drbd0: worker terminated
drbd0: ASSERT( mdev->ee_vacant==0 ) 
in /root/src/drbd-0.7_pre7/drbd/drbd_main.c:1417
slab error in kmem_cache_destroy(): cache `drbd_ee_cache': Can't free all 
objects
Call Trace:
 [<c0147595>] kmem_cache_destroy+0xd5/0x120
 [<e1108ab8>] drbd_destroy_mempools+0x58/0x90 [drbd]
 [<e1115f15>] drbd_cleanup+0x215/0x4b5 [drbd]
 [<c01383db>] sys_delete_module+0x15b/0x1b0
 [<c015264e>] do_munmap+0x16e/0x1f0
 [<c01062db>] syscall_call+0x7/0xb

drbd: kmem_cache_destroy(drbd_ee_cache) FAILED
kmem_cache_create: duplicate cache drbd_ee_cache
------------[ cut here ]------------
kernel BUG at mm/slab.c:1372!
invalid operand: 0000 [#1]
PREEMPT SMP
CPU:    0
EIP:    0060:[<c014712e>]    Not tainted
EFLAGS: 00010202   (2.6.6)
EIP is at kmem_cache_create+0x4de/0x600
eax: 00000031   ebx: dfdae810   ecx: c0577424   edx: 00000000
esi: e1119eaa   edi: e1119eaa   ebp: dfdae6e0   esp: dc44df24
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 3583, threadinfo=dc44c000 task=dc237710)
Stack: c04412a0 e1119e9c 00000004 00001000 dc44df48 dfdae738 00000024 c0000000
       fffffffc 00000028 dfdde8d4 dd480800 df773600 00000001 e1108b79 e1119e9c
       0000006c 00000004 00001000 00000000 00000000 e11211f5 df773600 e1112dd0
Call Trace:
 [<e1108b79>] drbd_create_mempools+0x89/0xe0 [drbd]
 [<e11211f5>] init_module+0x1f5/0x3ce [drbd]
 [<e1112dd0>] drbd_make_request_26+0x0/0x6f [drbd]
 [<c013a185>] sys_init_module+0x135/0x280
 [<c01062db>] syscall_call+0x7/0xb

Code: 0f 0b 5c 05 27 0a 44 c0 eb cc 8b 54 24 1c b8 00 e0 ff ff b9

And that's it. A few seconds later the machine is gone with the wind.

If you need any more information, please tell me.


-- 
Stephan  Rattai
University of Hamburg
Centre for Molecular Neurobiology Hamburg (ZMNH)
IT services
Falkenried 94
20251 Hamburg
Germany
Tel.:040 - 428 - 03 - 8592
Fax.:040 - 428 - 03 - 6621



More information about the drbd-user mailing list