Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507662 - sys-kernel/dracut-037 & LVM: fail to mount /usr
Summary: sys-kernel/dracut-037 & LVM: fail to mount /usr
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-14 21:01 UTC by Ivan Baidakou (dmol)
Modified: 2014-05-23 11:56 UTC (History)
2 users (show)

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


Attachments
rdsosreport.txt (rdsosreport.txt,56.27 KB, text/plain)
2014-04-14 21:01 UTC, Ivan Baidakou (dmol)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Baidakou (dmol) 2014-04-14 21:01:23 UTC
I have all mounts, managed under lvm, i.e.

egrep '^/' /etc/fstab 
/dev/sda3		/boot		ext2		noauto,noatime	1 2
/dev/sda5		/		jfs		rw		0 1
/dev/sda1		none		swap		sw		0 0
/dev/vg/usr   /usr    jfs    noatime        0 2
/dev/vg/home  /home   jfs    noatime        0 2
/dev/vg/var   /var    reiserfs    noatime        0 2
/dev/vg/datastore   /datastore    ext4    ro,exec,noatime        0 2


Some time ago generated initramfs worked well, but now after kernel boot it complains,
that it cannot mount /usr, launches recovery shell... When I just exit it, system works well.. That system shell prevents normal startup after reboot.

Full log rdsosreport.txt will be attached.




Reproducible: Always




emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.11.3 x86_64)
=================================================================
System uname: Linux-3.11.3-x86_64-AMD_E-350_Processor-with-gentoo-2.2
KiB Mem:     3643992 total,   2551572 free
KiB Swap:    2000056 total,   2000056 free
Timestamp of tree: Mon, 14 Apr 2014 07:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc[7746] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission denied [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo perl-experimental dmol
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -fomit-frame-pointer -march=amdfam10 -mno-3dnow -mcx16 -mpopcnt -mssse3 -msse4a"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-Os -pipe -fomit-frame-pointer -march=amdfam10 -mno-3dnow -mcx16 -mpopcnt -mssse3 -msse4a"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/perl-experimental /home/dmol/development/gentoo/dmol"
USE="X a52 aac acpi alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib cxx dbus dri dts dvd dvdr egl emboss encode exif fam firefox flac gdbm gif git glamor gpm gstreamer gtk iconv jpeg laptop lcms libnotify lvm mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib ncurses networkmanager nls nptl ogg opencl opengl openmp openvg pam pango pcre pdf png policykit ppds pulseaudio qt3support readline sdl session smp spell sse sse2 sse4a ssl ssse3 startup-notification subversion svg tcpd threads truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xfce xml xv xvid zlib zsh-completion" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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 dav dav_fs dav_lock authz_host mime dir alias autoindex" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm" 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 ublox ubx" INPUT_DEVICES="evdev synaptics keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de la ru" NGINX_MODULES_HTTP="dav autoindex fastcgi proxy" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon vesa r600" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Ivan Baidakou (dmol) 2014-04-14 21:01:56 UTC
Created attachment 374930 [details]
rdsosreport.txt
Comment 2 Alexander Tsoy 2014-04-15 11:30:05 UTC
(In reply to Ivan Baidakou (dmol) from comment #1)
> Created attachment 374930 [details]
> rdsosreport.txt

> BOOT_IMAGE=/kernel-3.14.0 root=UUID=3ea10c98-8eb5-404c-bb60-a18a703f37e0 ro

>=dracut-037 have stopped storing kernel command line arguments needed in the initramfs (/etc/cmdline.d/*.conf). So you have 2 options:
1. Create initramfs with --hostonly-cmdline (or hostonly_cmdline="no" in dracut.conf)
2. Add all neccessary options to the kernel cmdline. You can get them using "dracut --print-cmdline". IMHO this is a preffered solution.
Comment 3 Alexander Tsoy 2014-04-15 11:31:26 UTC
(In reply to Alexander Tsoy from comment #2)
> 1. Create initramfs with --hostonly-cmdline (or hostonly_cmdline="no" in

I meant hostonly_cmdline="yes"
Comment 4 Ivan Baidakou (dmol) 2014-04-15 13:07:34 UTC
(In reply to Alexander Tsoy from comment #2)
> (In reply to Ivan Baidakou (dmol) from comment #1)
> > Created attachment 374930 [details]
> > rdsosreport.txt
> 
> > BOOT_IMAGE=/kernel-3.14.0 root=UUID=3ea10c98-8eb5-404c-bb60-a18a703f37e0 ro
> 
> >=dracut-037 have stopped storing kernel command line arguments needed in the initramfs (/etc/cmdline.d/*.conf). So you have 2 options:
> 1. Create initramfs with --hostonly-cmdline (or hostonly_cmdline="no" in
> dracut.conf)
> 2. Add all neccessary options to the kernel cmdline. You can get them using
> "dracut --print-cmdline". IMHO this is a preffered solution.

Thank you! I createad initramfs via the following cli and it works now withou problems:

dracut --kernel-cmdline "rd.lvm.lv=vg/usr" -H --force /boot/initramfs-3.14.0.img 3.14.0
Comment 5 Alexander Tsoy 2014-04-15 13:21:47 UTC
(In reply to Ivan Baidakou (dmol) from comment #4)
> dracut --kernel-cmdline "rd.lvm.lv=vg/usr" -H --force
> /boot/initramfs-3.14.0.img 3.14.0

You can add "rd.lvm.lv=vg/usr" to the kernel command line in your bootloader config (for grub2: GRUB_CMDLINE_LINUX in /etc/default/grub).