Package: lvm2 Version: 2.03.02-3 Severity: normal Hi,
first of all: I'm running buster with sysvinit, not systemd. On sdb1, there's a LUKS volume containing a PV: # lsblk /dev/sdb NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 1 1.8T 0 disk └─sdb1 8:17 1 1.8T 0 part └─cvgsrv 253:6 0 1.8T 0 crypt └─vgsrv-lvsrv 253:7 0 1.8T 0 lvm /srv After `cryptsetup luksOpen cvgsrv /dev/sdb1`, the VG vgsrv and its LV is not recognized anymore, this worked automatically on stretch. Now I have to issue `vgchange -ay` for symlinks to the VG/LV to appear under /dev/mapper. I could track down the issue to 69-lvm-metad.rules. With the following patch applied, the VG gets recognized automatically after luksOpen again. --- /usr/lib/udev/rules.d/69-lvm-metad.rules.orig 2019-07-21 23:30:07.383409274 +0200 +++ /usr/lib/udev/rules.d/69-lvm-metad.rules 2019-07-21 23:30:07.371409238 +0200 @@ -88,7 +88,7 @@ # --(enable|disable)-udev-systemd-background-jobs to "configure". # On modern distributions with recent systemd, it's "systemd_background"; # on others, "direct_pvscan". -GOTO="systemd_background" +GOTO="direct_pvscan" LABEL="systemd_background" It seems to me like there's no run-time detection implemented whether to use the systemd or direct_pvscan part of the rules file. Thanks Daniel -- System Information: Debian Release: 10.0 APT prefers proposed-updates APT policy: (990, 'proposed-updates'), (990, 'stable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 'oldstable-updates'), (500, 'oldstable-proposed-updates'), (500, 'oldstable-debug'), (500, 'stable'), (500, 'oldstable'), (99, 'testing'), (98, 'unstable'), (96, 'oldoldstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/bash Init: sysvinit (via /sbin/init) 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. -- Configuration Files: /etc/lvm/lvm.conf changed [not included] -- no debconf information -- debsums errors found: debsums: changed file /lib/udev/rules.d/69-lvm-metad.rules (from lvm2 package)