Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38126 - LVM startup code missing from localmount (in kernel-2.4.20-xfs-r5 ?)
Summary: LVM startup code missing from localmount (in kernel-2.4.20-xfs-r5 ?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL: http://dev.gentoo.org/~spider/gentoo....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-13 18:38 UTC by Mike Nahas
Modified: 2005-02-01 15:01 UTC (History)
1 user (show)

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 Mike Nahas 2004-01-13 18:38:41 UTC
I followed the online install manual, and had a ton of problems when I booted up because LVM was not started.  I didn't have usr, var, ... you get the picture.   
I found a webpage that had a similar problem (http://dev.gentoo.org/~spider/gentoo.dell.blade.txt) and followed his fix - adding /sbin/vgchange -a y to "/etc/init.d/localmount".
There was nothing LVM/vg related in localmount.  Ironically, there was code to shutdown LVM in "/etc/init.d/halt.sh" and to start it in "/etc/init.d/checkfs".

BTW, the manual didn't say anything about having to boot for the first time, see error messages, run /sbin/vgscan, and then reboot.  (Which according to http://www.gentoo.org/doc/en/lvm.xml I needed to do even if this localmount problem had never occured.)


Reproducible: Always
Steps to Reproduce:
1. boot.
2.
3.

Actual Results:  
boot says it fails, but I can log in as root.

Expected Results:  
start LVM
(and possibly initialize /etc/lvmtab)

I did look for similar bugs.  There were a lot that were similar, but not 
exactly the same.
Comment 1 Charles Noneman 2005-02-01 14:31:41 UTC
I think the problem is in sys-apps/baselayout-1.11.9 . I recently emerged it and lvm stopped working at boot and I was able to fix it by adding vgchange -a y as you said.

Portage 2.0.51-r15 (gcc34-amd64-2004.1, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Sep 27 2004, 18:57:45)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d/ /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://gentoo.noved.org/ http://mirrors.tds.net/gentoo http://mirror.tucdemonic.org/gentoo/ http://adelie.polymtl.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apm avi berkdb bitmap-fonts cdr crypt cups directfb divx4linux dvd dvdr encode flac font-server foomaticdb gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 java jpeg libg++ libwww mad mikmod motif mozdevelop mozilla moznoirc moznomail mpeg multilib mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb videos x xinerama xml xml2 xmms xprint xv xvid zlib video_cards_radeon"
Comment 2 SpanKY gentoo-dev 2005-02-01 15:01:30 UTC
charles: your bug is unrelated and is fixed in 1.11.9-r1

as for the original bug, it should be fine now with baselayout-1.11.x