Package: lvm2
Version: 2.03.02-3
Severity: important
Dear Maintainer,
* What led up to the situation?
Using lvm tools in a buster docker container.
* What exactly did you do (or not do) that was effective (or
ineffective)?
Prepare a VG on the host (or have an existing one):
dd if=/dev/zero of=./forlvm bs=1M count=200
losetup /dev/loop0 ./forlvm
pvcreate /dev/loop0 && vgcreate drbdpool /dev/loop0
Run the container:
docker run -it --rm --privileged debian:buster
apt update && apt install -y lvm2
vim /etc/lvm/lvm.conf # set obtain_device_list_from_udev=0
vgs
* What was the outcome of this action?
WARNING: Device /dev/nvme0n1 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/loop0 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/nvme0n1 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/loop0 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after
waiting 10000000 microseconds.
* What outcome did you expect instead?
VG #PV #LV #SN Attr VSize VFree
drbdpool 1 0 0 wz--n- 196.00m 196.00m
This is a known bug (https://bugzilla.redhat.com/show_bug.cgi?id=1676612), I
rebuilt lvm2 with the linked patch
(https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3ebce8dbd2d9afc031e0737f8feed796ec7a8df9;hp=d19e3727951853093828b072e254e447f7d61c60)
which fixed the problem as expected.
Any chance this can be applied for stable?
-- System Information:
Debian Release: 10.0
APT prefers stable
APT policy: (700, 'stable'), (600, 'unstable'), (550, 'experimental'), (500,
'stable-debug')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages lvm2 depends on:
ii dmeventd 2:1.02.155-3
ii dmsetup 2:1.02.155-3
ii libaio1 0.3.112-3
ii libblkid1 2.33.1-0.1
ii libc6 2.28-10
ii libdevmapper-event1.02.1 2:1.02.155-3
ii libdevmapper1.02.1 2:1.02.155-3
ii libreadline5 5.2+dfsg-3+b13
ii libselinux1 2.8-1+b1
ii libsystemd0 241-5
ii libudev1 241-5
ii lsb-base 10.2019051400
Versions of packages lvm2 recommends:
ii thin-provisioning-tools 0.7.6-2.1
lvm2 suggests no packages.
-- no debconf information