Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574674 - sys-boot/os-prober - WARNING: Failed to connect to lvmetad.
Summary: sys-boot/os-prober - WARNING: Failed to connect to lvmetad.
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 574676 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-14 09:45 UTC by moshe2go
Modified: 2017-11-09 15:46 UTC (History)
4 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 moshe2go 2016-02-14 09:45:54 UTC
Hi, 
After last system updating I get this 'WARNING' output while running grub2:
grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.1.12-gentoo
Found linux image: /boot/vmlinuz-4.0.5-gentoo
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Found Windows Vista (loader) on /dev/sda1

System is working ok but afraid it can cause to a real problem.
I get this issue in another similar machine.
Regards

emerge --info
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.21-r1, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-2.2
KiB Mem:     3044560 total,   1361248 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Fri, 29 Jan 2016 08:15:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

NameOfYourOverlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -O2 -pipe -march=core2 -mcx16 -msahf -mfxsr --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-ggdb -O2 -pipe -march=core2 -mcx16 -msahf -mfxsr --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l3"
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="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bidi bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran fribidi gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libass libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sdl seccomp semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" 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" 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" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="he" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="brightness clock trash" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Pacho Ramos gentoo-dev 2016-02-15 10:57:46 UTC
*** Bug 574676 has been marked as a duplicate of this bug. ***
Comment 2 Ryoto Yayame 2016-03-10 23:29:42 UTC
I updated from sys-fs/lvm2-2.02.116 to -r4 and have the same warning with `grub-mkconfig`.


I have it with `rc-update -u` too, so it's more general:

# rc-update -u
 * Caching service dependencies ...
File descriptor 3 (pipe:[5196152]) leaked on lvm invocation. Parent PID 17753: /bin/sh
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.


I'm not using LVM directly. cryptsetup depends on it through Portage (for my LUKS partitions), but from what I understand, it's not even starting lvm/lvmetad initscripts, which also are not in my `rc-update show`. I have not enabled LVM in my genkernel.conf file either.

I have not tested a reboot yet, to check if it's just an harmless warning...

An elog message in lvm2 ebuild mentions restarting udev, but it changes nothing.


If I downgrade back to lvm2-2.02-116, there is no more warning message with `rc-update -u`.

... but the warning message is still here with `grub-mkconfig -o /boot/grub/grub.cfg`...

I did update from sys-boot/grub-2.02_beta2-r8 to -r9 too at the same time as lvm2...

... but if I downgrade back to -r8, I still have the warning... I'm pretty sure I ran `grub-mkconfig` without this warning a few months back though... Maybe I was still using -r7 at that time, but it's not in Portage anymore to easily test downgrading... I had lvm2-2.02.109 at that time too...


[ebuild R] sys-fs/lvm2-2.02.116-r4::gentoo USE="-device-mapper-only -lvm1 -lvm2create_initrd readline -static static-libs -systemd thin udev"

[ebuild R] sys-boot/grub-2.02_beta2-r9:2/2.02_beta2-r9::gentoo [2.02_beta2-r8:2/2.02_beta2-r8::gentoo] USE="-debug -device-mapper doc -efiemu fonts -mount -multislot nls -sdl -static themes truetype" GRUB_PLATFORMS="efi-64"
Comment 3 Mike Gilbert gentoo-dev 2016-03-11 01:45:56 UTC
That warning is coming from os-prober, which gets called by /etc/grub.d/30_os-prober.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2016-03-11 19:32:03 UTC
(In reply to Kanito Tasoga from comment #2)
> I updated from sys-fs/lvm2-2.02.116 to -r4 and have the same warning with
> `grub-mkconfig`.
> 
> 
> I have it with `rc-update -u` too, so it's more general:
> 
> # rc-update -u
>  * Caching service dependencies ...
> File descriptor 3 (pipe:[5196152]) leaked on lvm invocation. Parent PID
> 17753: /bin/sh
>   /run/lvm/lvmetad.socket: connect failed: No such file or directory
>   WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
> 

On the next boot the problem will go away. rc-update -u just updates the dependencies for the NEXT boot. It doesn't do anything with your current state. Your LVM setup is currently wrong and you need a clean boot.
Comment 5 Mike Gilbert gentoo-dev 2016-03-11 20:33:27 UTC
I think you just need to change use_lvmetad to 0 in /etc/lvm/lvm.conf to make this warning go away.
Comment 6 Vladimir Varlamov 2016-09-26 09:48:07 UTC
This is lvm related bug. In clean lvm setup init.d/lvmetad don't create /run/lvm/  dir for /run/lvm/lvmetad.socket.
`mkdir /run/lvm/` solved the problem
We have to fix it in init.d/lvmetad or send to upstream?
Comment 7 Mike Gilbert gentoo-dev 2016-09-26 15:37:07 UTC
(In reply to Vladimir Varlamov from comment #6)

Sounds like a separate bug report to me.
Comment 8 Pacho Ramos gentoo-dev 2017-02-06 16:26:05 UTC
What is the status with 1.71?