Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Lars Ellenberg schrieb: > On Mon, Oct 19, 2009 at 02:43:52PM +0200, Robert Dahlem wrote: > >> On 19.10.2009 11:51, Lars Ellenberg wrote: >> >> >>>>> I'm trying to install DRBD 0.8.3.4 on top of Linux 2.6.31.3. >>>>> When trying to start DRBD I get an Oops: >>>>> >>> Did it even occur to you that you could also try the "usual" >>> out-of tree module build? >>> >> Sorry, but no, that didn't occur to me. I used the kernel-patch method >> since 0.7 and always preferred it, because there are two drawbacks with >> the "usual" method: >> >> 1.) If you prepare your system for a new kernel version you need to >> remember a special depmod command to prevent ending up with "modprobe: >> FATAL: Module drbd not found" after a reboot: >> >> depmod -ae `cat /usr/src/linux/include/config/kernel.release` >> >> That was not needed with the kernel-patch method. >> >> 2.) If you have a running system and recompile/reinstall your kernel, >> after "make modules_install" the drbd module is gone. You always need to >> remember to change to the drbd directory and do "make install" again. >> > > So you alwasy roll your own kernel. Ok. > > I think "most" use a distro kernel, and most distros solve those > problems with package management, dependencies and trigger scripts, > maybe a system like dkms and possibly a lazy depmod during boot. > Same problem here with Debian, Kernel 2.6.30-bpo.1-amd64 from backports.org and DRBD-8.3.5. DRBD was build as modules source an compiled as Module for this kernel. Server was running 8.3.0 a long time without any problems. After update if drbd starts we get anytime a kernel Oops: [ 17.027785] drbd: initialized. Version: 8.3.5 (api:88/proto:86-91) [ 17.040206] drbd: GIT-hash: ded8cdf09b0efa1460e8ce7a72327c60ff2210fb build by root at buildd-amd64-lenny, 2009-10-29 09:14:30 [ 17.062360] drbd: registered as block device major 147 [ 17.072698] drbd: minor_table @ 0xffff88082a189c80 [ 17.095344] BUG: unable to handle kernel NULL pointer dereference at 00000000 00000298 [ 17.099325] IP: [<ffffffffa0317276>] drbd_connector_callback+0x38/0x18b [drbd ] [ 17.099325] PGD 828497067 PUD 8284fc067 PMD 0 [ 17.099325] Oops: 0000 [#1] SMP [ 17.099325] last sysfs file: /sys/module/drbd/parameters/cn_idx [ 17.099325] CPU 0 [ 17.099325] Modules linked in: drbd cn bond0 xfs exportfs bnx2 snd_pcm snd_ti mer snd soundcore parport_pc snd_page_alloc parport rng_core evdev serio_raw i50 00_edac i2c_i801 i2c_core edac_core pcspkr i5k_amb container button shpchp pci_h otplug processor ext2 mbcache dm_mirror dm_region_hash dm_log dm_snapshot dm_mod ide_cd_mod cdrom ata_generic libata sg sd_mod crc_t10dif arcmsr piix ide_pci_ge neric ehci_hcd ide_core uhci_hcd scsi_mod e1000 e1000e floppy thermal fan therma l_sys [last unloaded: ipmi_msghandler] [ 17.099325] Pid: 27, comm: events/0 Not tainted 2.6.30-bpo.1-amd64 #1 X7DB8 [ 17.099325] RIP: 0010:[<ffffffffa0317276>] [<ffffffffa0317276>] drbd_connect or_callback+0x38/0x18b [drbd] [ 17.099325] RSP: 0018:ffff88082ce3fe70 EFLAGS: 00010202 [ 17.099325] RAX: ffff88002811add8 RBX: ffff8808295fa440 RCX: 0000000000000282 [ 17.099325] RDX: 0000000000000000 RSI: 0000000000000282 RDI: ffff880828cfa010 [ 17.099325] RBP: ffff88002811ca40 R08: 0000000000000000 R09: 0000000000000c31 [ 17.099325] R10: 0000000000000000 R11: 0000000000000c31 R12: ffff880828cfa010 [ 17.099325] R13: ffff8808295fa458 R14: ffff88082ce18fa0 R15: ffffffffa01ed203 [ 17.099325] FS: 0000000000000000(0000) GS:ffff880028108000(0000) knlGS:00000 00000000000 [ 17.099325] CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b [ 17.099325] CR2: 0000000000000298 CR3: 000000082850d000 CR4: 00000000000006e0 [ 17.099325] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 17.099325] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 17.099325] Process events/0 (pid: 27, threadinfo ffff88082ce3e000, task ffff 88082ce18fa0) [ 17.099325] Stack: [ 17.099325] ffff8808295fa440 ffff88002811ca40 ffff8808295fa450 ffff8808295fa 458 [ 17.099325] ffff88082ce18fa0 ffffffffa01ed20f ffff88002811ca40 ffffffff80250 fe5 [ 17.099325] ffff88002811ca58 ffff88002811ca48 0000000000000000 ffff88082ce18 fa0 [ 17.099325] Call Trace: [ 17.099325] [<ffffffffa01ed20f>] ? cn_queue_wrapper+0xc/0x28 [cn] [ 17.099325] [<ffffffff80250fe5>] ? worker_thread+0x174/0x211 [ 17.099325] [<ffffffff80254742>] ? autoremove_wake_function+0x0/0x2e [ 17.099325] [<ffffffff80250e71>] ? worker_thread+0x0/0x211 [ 17.099325] [<ffffffff80250e71>] ? worker_thread+0x0/0x211 [ 17.099325] [<ffffffff80254386>] ? kthread+0x54/0x80 [ 17.099325] [<ffffffff80210aca>] ? child_rip+0xa/0x20 [ 17.099325] [<ffffffff80254332>] ? kthread+0x0/0x80 [ 17.099325] [<ffffffff80210ac0>] ? child_rip+0x0/0x20 [ 17.099325] Code: 41 55 83 3d ec 88 01 00 02 41 54 49 89 fc 55 53 0f 84 52 01 00 00 48 63 d0 48 8b 05 ed 8a 01 00 48 03 04 d5 d0 8b 61 80 48 ff 00 <f6> 41 16 20 be 98 00 00 00 0f 84 12 01 00 00 4c 8d 6f 14 4c 89 [ 17.099325] RIP [<ffffffffa0317276>] drbd_connector_callback+0x38/0x18b [drb d] [ 17.099325] RSP <ffff88082ce3fe70> [ 17.099325] CR2: 0000000000000298 [ 17.687303] ---[ end trace 66ba0a38e9e11bb3 ]--- Is anythink wrong with drbd-8.3.5? Regards, Dimitrij -- Dimitrij Hilt