sys-apps/openrc-0.8.3-r1 sys-fs/lvm2-2.02.73-r1 sys-apps/baselayout-2.0.2 I have a LVM volume that does not mount during boot. Volume group is not active. I am not using an initrd. From tracing through the sysinit boot sequence, the problem appears to be that when the lvm-start script is executed (from the lvm init script in boot runlevel), the root filesystem is still read-only and the volume group is not marked as active. My work around at the moment is to mount the volume in a /etc/local.d script. #eselect rc list boot Init scripts to be started by runlevel boot bootmisc device-mapper fsck hostname hwclock keymaps localmount lvm mdraid modules mtab net.lo procfs root swap sysctl sysfs termencoding urandom # eselect rc list sysinit Init scripts to be started by runlevel sysinit devfs dmesg udev ---[/etc/fstab]--- /dev/sda1 /boot ext2 defaults,auto,noatime 1 2 /dev/sda3 / ext4 defaults,noatime 0 1 /dev/sda2 none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 /dev/VCSLib/SCMData /var/lib/vcslib ext4 auto,defaults,noatime 0 0 ---[eof]--- Reproducible: Always Steps to Reproduce: 1. Create a logical volume (not root), don't use initrd, put LVM into fstab 2. Boot system 3. Actual Results: LVM volume is not mounted Expected Results: LVM volume is mounted during boot. emerge --info Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.37-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.37-gentoo-r4-x86_64-Intel-R-_Xeon-R-_CPU_E7440_@_2.40GHz-with-gentoo-2.0.2 Timestamp of tree: Fri, 08 Jul 2011 21:30:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 dev-util/pkgconfig: 0.25-r2 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.68 sys-devel/automake: 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/redmine/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl acpi alsa amd64 apache2 berkdb bzip2 cli cracklib crypt curl cxx dbus dri fortran gd gdbm gpm iconv ipv6 jpeg json ldap mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline session sse sse2 ssl sysfs tcpd threads truetype unicode vhosts webdav xml xorg zlib" ALSA_CARDS="ens1371" 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="access auth auth_basic authn_dbm authz_dbm auth_dbm auth_anon authz_host auth_digest alias file-cache echo charset-lite cache authn_file authz_user authn_alias dav_fs dav_lock authn_default authz_default dbd disk-cache mem-cache ext-filter case_filter case-filter-in deflate filter mime-magic cern-meta expires headers usertrack unique-id proxy proxy_connect proxy_ftp proxy_http info proxy_ajp proxy_balancer include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir unique_id so" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmware vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I have the same issue. sys-fs/lvm2-2.02.73-r1 sys-apps/baselayout-2.0.3 sys-apps/openrc-0.8.3-r1 It seems lvm is not even started during the boot. Adding rc_localmount_need="lvm" to /etc/rc.conf doesn't help. $ eselect rc list boot | grep lvm lvm This is really unpleasant.
Please provide a full boot log that shows why LVM isn't starting (It should have an error). LVM should be able to start fine when when root is still read-only, because /dev is on tmpfs, and we pass the sysinit flags to ensure LVM doesn't write anything else.