Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684882 - >=sys-fs/lvm2-2.02.184 - systemd[1]: Timed out waiting for device /dev/mapper/gentoo-swap.
Summary: >=sys-fs/lvm2-2.02.184 - systemd[1]: Timed out waiting for device /dev/mapper...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-01 14:01 UTC by Mariusz Ceier
Modified: 2019-09-11 14:02 UTC (History)
3 users (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 Mariusz Ceier 2019-05-01 14:01:27 UTC
>=sys-fs/lvm2-2.02.184 causes timeout during boot when mounting/activating swap, making the boot 1m 30s longer

it doesn't happen with =sys-fs/lvm2-2.02.183


Reproducible: Always

Steps to Reproduce:
1. emerge '>=sys-fs/lvm2-2.02.184'
2. reboot


Actual Results:  
maj 01 15:21:25 systemd[1]: dev-mapper-gentoo\x2dswap.device: Job dev-mapper-gentoo\x2dswap.device/start timed out.
maj 01 15:21:25 systemd[1]: Timed out waiting for device /dev/mapper/gentoo-swap.

boot delayed by 1m 30s because of timeout

Expected Results:  
swap should get activated and there shouldn't be any timeout

I'm using systemd and at first I thought that was systemd issue, but downgrading systemd didn't help. Then I tried downgrading lvm2, since some time ago I had problem with it - it stopped working with genkernel-next and I had to move to genkernel. Downgrading lvm2 fixes the issue for me.

/etc/fstab:

/dev/mapper/gentoo-home	/	ext4	auto,rw 0 1
/dev/mapper/gentoo-swap none            swap    sw              0       0


emerge --info sys-fs/lvm2 :

Portage 2.3.66 (python 3.6.8-final-0, default/linux/amd64/17.0/systemd, gcc-8.3.0, glibc-2.29-r2, 5.1.0-rc7- x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.1.0-rc7-x86_64-Intel-R-_Core-TM-_i5-6600_CPU_@_3.30GHz-with-gentoo-2.6
KiB Mem:    32893148 total,  30453520 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 01 May 2019 06:30:01 +0000
Head commit of repository gentoo: f5f89add9c4f095797e5030e4bfd5a312dae3f39
sh bash 5.0_p7
ld GNU ld (Gentoo 2.31.1 p7) 2.31.1
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo
dev-util/cmake:           3.14.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r6::gentoo, 2.32-r1::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.0.9/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

rust
    location: /var/lib/layman/rust
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

local
    location: /usr/local/portage
    masters: gentoo
    priority: 80

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -g -ggdb -Wvla"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /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="-march=native -O3 -pipe -g -ggdb -Wvla"
DISTDIR="/usr/portage/distfiles"
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 config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms split-log splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en"
MAKEOPTS="-j2"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl adns alsa amd64 audio avx avx2 berkdb bluetooth bzip2 caps clang cli clutter crypt cups cxx dbus dri dri3 drm egl emacs ffmpeg fortran fpm fuse gadu gbm gdbm git glade gles glib gnutls gold gstreamer hardened iconv icu idn inotify ipv6 jack jpeg libdrm libtirpc llvm mmx mono mtp multilib multitarget ncurses net45 nls nptl opengl openmp openrc pam pcre perl pgf pkcs pkcs11 pkcs12 png policykit pulseaudio python readline samba sasl seccomp socks socks4 socks5 sound sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification syslog system-sqlite systemd tcpd theora threads truetype udev unicode v4l2 vaapi valgrind vdpau video vim vpx wayland wifi x265 xattr xcb xft zlib" ABI_X86="64 32" ALSA_CARDS="ca0132" 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pl en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX AArch64 ARM RISCV WebAssembly" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-fs/lvm2-2.02.183::gentoo was built with the following:
USE="readline systemd thin udev -device-mapper-only -lvm2create_initrd -sanlock (-selinux) (-static) (-static-libs)" ABI_X86="(64)"
Comment 1 Mariusz Ceier 2019-05-05 20:03:20 UTC
`systemctl mask lvm2-monitor.service` fixes it for me, thanks to helpful viewer from random YT livestream.
Comment 2 Mariusz Ceier 2019-09-11 14:02:54 UTC
That workaround doesn't work anymore... ffs, how hard is to do "swapon -a"