Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68822 - baselayout-1.11.3 doesn't activate LVM and doesn't boot
Summary: baselayout-1.11.3 doesn't activate LVM and doesn't boot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 68833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-25 06:41 UTC by Harris Landgarten
Modified: 2004-10-25 19:03 UTC (History)
1 user (show)

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


Attachments
Remove -A from fsck / (patch,304 bytes, patch)
2004-10-25 10:35 UTC, Christer Ekholm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2004-10-25 06:41:35 UTC
After emerging baselayout-1.11.3 as put of emerge world -uvD and running dispatch-conf the system fails to reboot.

I dies when trying to access programs on LVM volume that were never mounted. After sulogin, vgchange -ay failes with "Locking type 1 initialization failed"


Reproducible: Always
Steps to Reproduce:
1.emerge baselayout
2.reboot
3.

Actual Results:  
see details

Expected Results:  
normal boot

Cannot boot effected system
Comment 1 SpanKY gentoo-dev 2004-10-25 07:40:41 UTC
*** Bug 68833 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2004-10-25 07:48:51 UTC
when you sulogin, what does `cat /proc/mounts` and `ls /dev/` show ?
Comment 3 Harris Landgarten 2004-10-25 08:15:31 UTC
cat /proc/mounts
rootfs / rootfs rw 00
/dev/sda2 / reiserfs ro,noatime 0 0
none /proc proc
none /sys sysfs
none /dev ramfs
none /dev/pts devpts

ls /dev show lots of devs and specifically all lvm related stuff is there.

When I remounted / as rw, and modprob dm-mod, vgchange -ay worked. But init 5 from there still didn't mount the lvm volumes in fstab. I am checking further.

Comment 4 Harris Landgarten 2004-10-25 10:04:55 UTC
Lots seems to be wrong. When I run mount -a all the LVM2 volumes show they are mounted but aren't really. If I mount /var /home and /var individually they mount properly. Also services are showing as started that aren't. Lastly PATH is getting messed up on restart and sometimes doesn't include /usr/X11R6/bin. By manually messing around I have managed to get back up but a reboot is a definite nogo.


Comment 5 Christer Ekholm 2004-10-25 10:35:42 UTC
Created attachment 42570 [details, diff]
Remove -A from fsck /
Comment 6 Christer Ekholm 2004-10-25 10:38:07 UTC
Sorry. My text dissapeared. It should look like this:

I had the same problem. And traced it down to the fact that checkroot did fsck -A before LVM was activated.

The patch I posted worked for me.
Comment 7 SpanKY gentoo-dev 2004-10-25 11:00:00 UTC
that addition came from Bug 39212
Comment 8 Harris Landgarten 2004-10-25 11:19:36 UTC
Removing -A from fsck got the system to boot. I am still having a problem with DHCP on eth0. It is not working from /etc/init.d/net.eth0 start after boot but after signon I can run # dhcpcp eth0 and get an immediate IP etc. The /etc/conf.d is

modules=( "iproute2" )
ipaddr_eth0=( "dhcp" )
dhcpcd_eth0="-h custom2 -t 10"

/etc/init.d/net.eth0 restart stops dependent services and again fails to get an IP. # dhcpcd -t 10 -h custom2 eth0 followed by /etc/init.d/net.eth0 start shows the service as starting properly using the aready received network setting but fails to restart any of the dependent services it stopped while stopping
Comment 9 SpanKY gentoo-dev 2004-10-25 19:03:11 UTC
ok, will be fixed for 1.11.4, here's the fix i went with to satisfy everyone:

http://bugs.gentoo.org/show_bug.cgi?id=39212#c3