lvm2-2.02.28 used in genkernel 3.4.10-r1 must have deprecated sysfs files from kernel 2.6.25 in order to work. Portage 2.1.5.4 (default/linux/x86/2008.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.25.4 i686) ================================================================= System uname: 2.6.25.4 i686 Intel(R) Pentium(R) M processor 2.00GHz Timestamp of tree: Sat, 07 Jun 2008 09:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r3 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ " LANG="fr_FR.UTF-8" LDFLAGS="" LINGUAS="fr" PKGDIR="/usr/portage/packages" 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/portage/local/layman/killwilly" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa apache2 audiofile bash-completion bluetooth branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cscope cups curl dbus dri dts dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg fftw firefox flac gdbm git glitz gnutls gstreamer gtk hal iconv idn ipv6 isdnlog jabber javascript jpeg jpeg2k libnotify libsamplerate mad matroska midi mikmod mmap mmx modplug mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection session sndfile spell spl sse sse2 ssl startup-notification svg symlink theora threads tiff truetype unicode vim-syntax vorbis wifi wxwindows x86 xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="i810 none" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I fail to see how genkernel is related. A proper description of the problem is also lacking. Do you have some error messages to show? Or a patch, perhaps?
wolf31o2: You need to update the default kernel configs to enable CONFIG_SYSFS_DEPRECATED in newer kernels, as the older LVM accesses sys files that are removed in newer kernels. Either that, or go up to a newer LVM.
What version would you recommend?
2.02.37 if you take the LVM bumping path. Turning on the sysfs files is probably the safest overall option however.
We'll get this fixed by 3.4.11's release.
I've enabled CONFIG_SYSFS_DEPRECATED in the x86/x86_64 kernel-config files. Oddly, it was enabled for all arches except those.
I don't think CONFIG_SYSFS_DEPRECATED is a good idea (besides that the name itself says it is deprecated). Even the stable udev version sys-fs/udev-141 does print this message at startup: "udev: deprecated sysfs layout; update the kernel or disable CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly" udev-142 and later will not work with CONFIG_SYSFS_DEPRECATED!
udev-145 is now in ~amd64, which according to comment #7 won't work with CONFIG_SYSFS_DEPRECATED=y. Genkernel requires CONFIG_SYSFS_DEPRECATED=y... so there doesn't seem to be a workable combination. What do I do?
(In reply to comment #8) > udev-145 is now in ~amd64, which according to comment #7 won't work with > CONFIG_SYSFS_DEPRECATED=y. Genkernel requires CONFIG_SYSFS_DEPRECATED=y... so > there doesn't seem to be a workable combination. What do I do? > For now udevd does print a warning: udev: missing sysfs features; please update the kernel or disable the kernel's CONFIG_SYSFS_DEPRECATED option; udev may fail to work correctly then waits 3 seconds and continues. The wait is enlarged to 15 seconds for udev-146 to really annoy. So I suggest you add the mentioned patch to genkernel, and then disable all DEPRECATED options for your kernel. Patch is here: http://git.wolf31o2.org/gitweb/?p=projs/genkernel.git;a=commit;h=229d8ef4f123e481bccdb2edcd5297d52cdfb092 @maintainer: ping, please do a new release of git master. If you find the time, next todo points are disable DEPRECATED options and updating the internal lvm2 version.
please also see bug #255196 in combination
Because of the new udev, we MUST do the following ASAP in genkernel: - Upgrade LVM version - Disable CONFIG_SYSFS_DEPRECATED _and_ CONFIG_SYSFS_DEPRECATED_V2.
(In reply to comment #11) > Because of the new udev, we MUST do the following ASAP in genkernel: > - Upgrade LVM version > - Disable CONFIG_SYSFS_DEPRECATED _and_ CONFIG_SYSFS_DEPRECATED 1/2 of this happened with a recent emerge --sync && --update which brought in the new LVM and a new udev (146-r1). Disabling CONFIG_SYSFS_DEPRECATED (2.6.27-gentoo-r8) corrected the problem.
On x86 with stable gentoo-sources-2.6.31-r6, genkernel-3.4.10.904, lvm2-2.02.51-r1 and without CONFIG_SYSFS_DEPRECATED_V2 (custom kernel config), the system is unbootable due to genkernel failing to use the system's lvm static binary. Upgrading genkernel to 3.4.10.906 fixes this as it correctly considers /sbin/lvm.static for copying. Please stabilize genkernel-3.4.10.906 to unbreak stable x86. Thanks!
(In reply to comment #13) > Please stabilize genkernel-3.4.10.906 to unbreak stable x86. Thanks! Why was the the lvm package released with out properly testing it? What happened to the QA process? I know mistakes happen... but a mistake that causes a total system failure is just sloppy work.
(In reply to comment #13) > On x86 with stable gentoo-sources-2.6.31-r6, genkernel-3.4.10.904, > lvm2-2.02.51-r1 and without CONFIG_SYSFS_DEPRECATED_V2 (custom kernel config), > the system is unbootable due to genkernel failing to use the system's lvm > static binary. > Upgrading genkernel to 3.4.10.906 fixes this as it correctly considers > /sbin/lvm.static for copying. I have the same problem. And updating genkernel to 3.4.10.906 solves it.
Me too. Please stabilize 3.4.10.906
.906 is now stable
I remove this bug from tracker bug #245389 "Features for inclusion by 3.4.11" as it seems unrelated.