Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67309 - vgscan segfaults during boot w kernel 2.6.8-gentoo-r7
Summary: vgscan segfaults during boot w kernel 2.6.8-gentoo-r7
Status: RESOLVED DUPLICATE of bug 61258
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-12 20:57 UTC by Lindsay Haisley
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lindsay Haisley 2004-10-12 20:57:11 UTC
I'm attempting to bring up a LVM logical volume during boot under kernel 2.6.8-gentoo-r7 w. lvm2.  I get the following messages during the boot process:

* Setting up the Logical Volume Manager...
/sbin/rc: line 429:  [proc id] Segmentation fault     /sbin/vgscan >/dev/null

This causes the subsequent invocation of vgchange -a in /etc/init.d/checkfs to be skipped and the target logical volume isn't activated.

If I run vgscan after the boot is finished, vgscan doesn't segfault, but issues various messages, including a note re. the target logical volume needing activation, and exits normally.

I've run into this in the process of trying to migrate a production desktop system from kernl v2.4 to v2.6, and it's a slightly involved process to move from my (very functional) desktop under kernel 2.4.20 to a running CLI login under 2.6.8, involving connecting a pair of test drives, which are part of a sofware RAID1 array, unmerging lvm-user and emerging lvm2, plus several other (scripted) changes, so I can't easily switch back and forth at will.  But since I have to go there eventually, I'll be happy to try any tests.
Comment 1 Lindsay Haisley 2004-10-13 15:32:33 UTC
I'm also running into a segfault if I set lvm.conf to scan /dev/md.  I'm using devfs on this box, and have a RAID1 mirror set up, /dev/md0 -> /dev/md/0.  I want to use this RAID array as an LVM physical volume, and can set it up, include it in a volume group and can create a workable logical volume in it; however, if I set up lvm.conf with the following:

device {
    scan = "/dev/md"
}

and then run any of the lvm2 utilities, I get a segmentation fault.  In particular, pvscan should pick up on the fact that /dev/md/0 has been set up as a LVM physical volume.  Once this happens, there appears to be some sort of corruption somewhere, since if I remove the 'scan' line from lvm.conf subsequent invocation of most lvm2 utilities just hang indefinitely, and a reboot hangs on shutting down the Logical Volume Manager requiring that I use a hardware reset on the box.
Comment 2 Lindsay Haisley 2004-10-13 15:45:37 UTC
Relevant information on exactly this problem can be found at:
<http://www.tgharold.com/techblog/2004/06/gentoo-segmentation-fault-in-vgscan.shtml>

This looks like a interaction between devfs, md and lvm2 that needs to be addessed at a kernel level.
Comment 3 Lindsay Haisley 2004-10-13 16:38:06 UTC
The solution posted at <http://www.tgharold.com/techblog/2004/06/gentoo-segmentation-fault-in-vgscan.shtml> puts a band-aid on the problem here, too, although it doesn't appear to address the fundamental issue of what looks like adverse interactions between md, devfs and lvm2.  At least _I_ can move on :-)
Comment 4 Lindsay Haisley 2004-10-14 09:43:39 UTC
If the information on the TechBlog (URL cited above) is accurate, this bug is basically another manifestation of the problem behind Bug #61258.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2004-10-19 02:49:03 UTC

*** This bug has been marked as a duplicate of 61258 ***