sys-fs/lvm2-2.02.184-r5 boot delayed by 40 seconds while setting up lvm2 Relevant rc.log lines: * Setting system clock using the hardware clock [UTC] ... [ ok ] * /run/lvm: creating directory * Starting lvmetad ... [ ok ] * Setting up the Logical Volume Manager ... [ ok ] * Checking local filesystems ... There is a 40 second delay between 'Setting up the Logical Volume Manager' and 'Checking local filesystems' Relevant dmesg lines: [ 6.111047] raid6: sse2x1 xor() 6320 MB/s [ 6.111049] raid6: using algorithm avx2x2 gen() 43640 MB/s [ 6.111050] raid6: .... xor() 26251 MB/s, rmw enabled [ 6.111050] raid6: using avx2x2 recovery algorithm [ 6.114464] xor: automatically using best checksumming function avx [ 6.125793] Btrfs loaded, crc32c=crc32c-generic [ 6.126070] BTRFS: device label CDDBD-SDE1 devid 1 transid 10851 /dev/dm-20 [ 46.378827] EXT4-fs (dm-3): re-mounted. Opts: barrier=1,commit=600 [ 46.498020] Adding 12582908k swap on /dev/mapper/vg_ssd1_11-swap. Priority:10 extents:1 across:12582908k SS Reverting to sys-fs/lvm2-2.02.145-r2 resolves the issue. Reproducible: Always Steps to Reproduce: 1. Merge sys-fs/lvm2-2.02.184-r5 2. Recreate initramfs 3. Reboot Actual Results: Boot delayed by 40 seconds when setting up lvm2 Expected Results: Boot not delayed by lvm2 setup. emerge --info Portage 2.3.76 (python 2.7.16-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-8.3.0, glibc-2.29-r2, 5.3.12-gentoo-lvm2 x86_64) ================================================================= System uname: Linux-5.3.12-gentoo-lvm2-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-gentoo-2.6 KiB Mem: 65801768 total, 62724752 free KiB Swap: 58720236 total, 58720236 free Timestamp of repository gentoo: Sun, 24 Nov 2019 02:45:01 +0000 Head commit of repository gentoo: 3fbdb9d41ec8d53f1cffe01a6bfa077bf7223d76 sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.32 p2) 2.32.0 distcc 3.3.3 x86_64-pc-linux-gnu [disabled] ccache version 3.7.4 [disabled] app-shells/bash: 4.4_p23-r1::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.9::gentoo dev-util/ccache: 3.7.4::gentoo dev-util/cmake: 3.14.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 8.3.0-r1::gentoo, 9.2.0-r2::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://datastoreone/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 local location: /usr/local/portage masters: gentoo priority: 0 ikelos location: /var/lib/layman/ikelos masters: gentoo priority: 50 vmware location: /var/lib/layman/vmware masters: gentoo priority: 50 Installed sets: @kernels ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -mtune=amdfam10 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=amdfam10 -mtune=amdfam10 -O2 -pipe" DISTDIR="/mnt/portage.autofs/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y -j52 --load-average=52 --quiet-build=y" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.modulix.net/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_GB" MAKEOPTS="-j52 --load-average=52" PKGDIR="/mnt/portage.autofs/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 --exclude=/.git --exclude=lost+found/" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac accessibility acl acpi activities aes alsa amarok amd64 amr authdaemond avx bash-completion berkdb bluetooth bluray branding bzip2 cairo caps cdda cdr cli consolekit crypt cups cxx dbus declarative dri dts dv dvd dvdr dvdread emboss encode exif fam flac fma3 fma4 fortran gdbm gif gpm gtk iconv icu ieee1394 ipv6 jpeg jumbo-build kde kipi kwallet lcms ldap libnotify libtirpc lm-sensors lm_sensors lock mad mmx mmxext mng mp3 mp4 mpeg multilib mysql ncurses network nls nptl ofx ogg opencl opengl openmp oss pam pango pcre pdf phonon plasma png policykit popcnt ppds pulseaudio qml qt3 qt5 readline samba sasl sdl seccomp semantic-desktop session spell split-usr sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg tcpd thunar tiff truetype udev udisks uk_bleb uk_rt unicode upower usb v4l v4l2 vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xop xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid slotmem_shm unixd access_compat authz_core socache_shmcb authn_core" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 pc multiboot mount" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="hp5590 hp net abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp3500 hp3900 hp4200 hp5400 hpljm1005 hpsj5s hs2p ibm kodak kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec niash p5 pie pixma plustek plustek_pp pnm qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
When booting with sys-fs/lvm2-2.02.145-r2 there appears to be a shorter 10 seconds delay in dmesg: [ 5.178136] input: HD-Audio Generic Line Out Front as /devices/pci0000:00/0000:00:08.1/0000:0e:00.4/sound/card1/input15 [ 5.178217] input: HD-Audio Generic Line Out Surround as /devices/pci0000:00/0000:00:08.1/0000:0e:00.4/sound/card1/input16 [ 5.178337] input: HD-Audio Generic Line Out CLFE as /devices/pci0000:00/0000:00:08.1/0000:0e:00.4/sound/card1/input17 [ 5.178456] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:0e:00.4/sound/card1/input18 [ 15.726039] raid6: avx2x4 gen() 29078 MB/s [ 15.743049] raid6: avx2x4 xor() 23007 MB/s [ 15.760025] raid6: avx2x2 gen() 21058 MB/s [ 15.777027] raid6: avx2x2 xor() 26369 MB/s [ 15.794042] raid6: avx2x1 gen() 25226 MB/s [ 15.811043] raid6: avx2x1 xor() 21982 MB/s [ 15.828044] raid6: sse2x4 gen() 12613 MB/s [ 15.845044] raid6: sse2x4 xor() 8246 MB/s [ 15.862039] raid6: sse2x2 gen() 14074 MB/s [ 15.879044] raid6: sse2x2 xor() 8664 MB/s [ 15.896044] raid6: sse2x1 gen() 6738 MB/s [ 15.913044] raid6: sse2x1 xor() 7150 MB/s [ 15.913047] raid6: using algorithm avx2x4 gen() 29078 MB/s [ 15.913048] raid6: .... xor() 23007 MB/s, rmw enabled [ 15.913049] raid6: using avx2x2 recovery algorithm [ 15.916684] xor: automatically using best checksumming function avx [ 15.927850] Btrfs loaded, crc32c=crc32c-generic [ 15.928185] BTRFS: device label CDDBD-SDE1 devid 1 transid 10852 /dev/dm-112 [ 17.536117] EXT4-fs (dm-3): re-mounted. Opts: barrier=1,commit=600 [ 17.652011] Adding 12582908k swap on /dev/mapper/vg_ssd1_11-swap. Priority:10 extents:1 across:12582908k SS
It is sad to read that you have problems with the software. The situation seems to be a bit more complicate and requires some analysis. We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3]. I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4]. Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product. [1] https://www.gentoo.org/get-involved/irc-channels/ [2] https://forums.gentoo.org/ [3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html [4] https://www.gentoo.org/support/
sys-fs/lvm2-2.02.186-r2 resolves this issue.
Please test =sys-fs/lvm2-2.02.186-r2 which is supposed to be stabilized soon.
Also make sure that you are using a recent udev version.
(In reply to Thomas Deutschmann from comment #4) > Please test =sys-fs/lvm2-2.02.186-r2 which is supposed to be stabilized soon. As I said in comment 3. sys-fs/lvm2-2.02.186-r2 resolves this issue