kernel BUG at block/blk-core.c:1495! invalid opcode: 0000 [2] PREEMPT SMP CPU 3 Modules linked in: it87 hwmon_vid drbd Pid: 5678, comm: clvmd Tainted: G D 2.6.27-gentoo #4 RIP: 0010:[<ffffffff803e850d>] [<ffffffff803e850d>] submit_bio+0xed/0x160 RSP: 0018:ffff880238879ba8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff880238017324 RCX: 0000000038017000 RDX: 0000000000000000 RSI: ffff88023a49e000 RDI: 0000000000000000 RBP: ffff88023a49e000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88023a49e000 R13: 0000000000000000 R14: 0000000000000000 R15: 000000000000000c FS: 00000000410a8950(0063) GS:ffff88023f022a80(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00000000408a6ff8 CR3: 0000000238119000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process clvmd (pid: 5678, threadinfo ffff880238878000, task ffff88023e30fa60) Stack: ffff88023a04c300 000000003a332c80 0000000000000000 0000000000000000 ffff880238017324 ffff880238017000 ffff88023a49e000 0000000000000000 0000000000000000 ffffffff802d6059 ffff880238017000 ffff880238017000 Call Trace: [<ffffffff802d6059>] ? dio_bio_submit+0x59/0x90 [<ffffffff802d6100>] ? dio_send_cur_page+0x70/0xc0 [<ffffffff802d6cbd>] ? __blockdev_direct_IO+0x89d/0xbf0 [<ffffffff802d59e5>] ? blkdev_direct_IO+0x45/0x50 [<ffffffff802d4340>] ? blkdev_get_blocks+0x0/0xc0 [<ffffffff80271da7>] ? generic_file_aio_read+0x5f7/0x610 [<ffffffff8061bcb2>] ? _spin_unlock_irqrestore+0x12/0x40 [<ffffffffa00176a0>] ? drbd_open+0xc0/0xd0 [drbd] [<ffffffff8061bee0>] ? unlock_kernel+0x30/0x60 [<ffffffff8061bee0>] ? unlock_kernel+0x30/0x60 [<ffffffff803ed83d>] ? blkdev_ioctl+0x26d/0x7e0 [<ffffffff802a6d9b>] ? do_sync_read+0xdb/0x120 [<ffffffff80251cc0>] ? autoremove_wake_function+0x0/0x30 [<ffffffff802d48cb>] ? block_ioctl+0x1b/0x30 [<ffffffff802a7958>] ? vfs_read+0xc8/0x170 [<ffffffff802a7b03>] ? sys_read+0x53/0xa0 [<ffffffff8020b98b>] ? system_call_fastpath+0x16/0x1b Code: c7 c3 40 41 89 80 e8 e3 8e 01 00 89 c0 49 8b 04 c4 48 03 58 08 49 63 c5 48 01 43 08 eb 91 44 8b 56 30 45 85 d2 0f 85 3c ff ff ff <0f> 0b eb fe 0f 1f 80 00 00 00 00 e8 43 1d 23 00 0f 1f 00 eb 8b RIP [<ffffffff803e850d>] submit_bio+0xed/0x160 RSP <ffff880238879ba8> ---[ end trace c75484911f0c7f3a ---] diskgrinder ~ # emerge --info Portage 2.2_rc11 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.26-gentoo-r1-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-glibc2.2.5 Timestamp of tree: Sat, 18 Oct 2008 07:05:02 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog midi mmx mudflap multilib ncurses nlsnptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvivia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Reproducible: Always Steps to Reproduce: 1. Start drbd and cman 2. make sure drbd is primary 3. Start /etc/init.d/clvmd start Actual Results: The trace posted above in that process and in lvm. vgscan seems to trigger the problem I've already recompiled clvmd to be sure, same thing happens. Works on 2.6.26.
Hi, could you please specify exactly which version of clvmd you have installed? You can find this by looking at the output of "emerge -pv clvm" (I assume you're actually refering to the package sys-fs/clvm?).
sys-fs/clvm-2.02.33 With the compile fix in http://bugs.gentoo.org/show_bug.cgi?id=231559 GCC is 4.3.2 I have sys-kernel/linux-headers-2.6.26 (which I guess might matter too)
clvm is long merged into lvm.