Package: lvm2
Version: 2.03.02-1
Severity: important

There are possibly 2 different bugs in here, please clone as needed.

This computer has multiple VGs and had last been updated on Dec 13
before I ran an update on Jan 13. After this update it wouldn't complete
boot because one VG would not be activated due to system ID mismatch.

It dropped me into a root/rescue shell where I had full access to lvm
tools since the root filesystem was not in the affected VG.

The affected VG is ancient and has moved between computers and disks. It
has a system ID set from way back when (it includes a hostname I haven't
used for possibly more than a decade) while the newer, unaffected VGs
have blank system IDs. The system is configured to have no system ID
(system_id_source = "none").


Bug 1:

This has worked for all these years until the update, which rejects the
VG with system ID without advance warning during package upgrade. Systems
may become unbootable after upgrade if these VGs contain filesystems
that are mounted in /etc/fstab.


Bug 2:

Overriding system IDs does not work. I have tried setting
local/extra_system_ids as described in lvmsystemid(7) but this appears
to have no effect whatsoever. I could neither access the VG nor use
vgchange to clear its system ID, access was still rejected. I tried both
setting the variable in /etc/lvmlocal.conf and on the command line, and
confirmed with lvmconfig that the option is seen.

The only way to get access was to set global/system_id_source =
"lvmlocal" and set local/system_id to the affected VG's system ID.


I found this thread on the debian-user list where someone else appears
to have exactly the same problems:
https://lists.debian.org/msgid-search/20190113161023.ge10...@zaphod.galacticempire.org.us
 

-- System Information:
Debian Release: buster/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lvm2 depends on:
ii  dmeventd                  2:1.02.155-1
ii  dmsetup                   2:1.02.155-1
ii  libaio1                   0.3.111-1
ii  libblkid1                 2.33.1-0.1
ii  libc6                     2.28-5
ii  libdevmapper-event1.02.1  2:1.02.155-1
ii  libdevmapper1.02.1        2:1.02.155-1
ii  libreadline5              5.2+dfsg-3+b2
ii  libselinux1               2.8-1+b1
ii  libsystemd0               240-4
ii  libudev1                  239-15
ii  lsb-base                  10.2018112800

Versions of packages lvm2 recommends:
ii  thin-provisioning-tools  0.7.6-2

lvm2 suggests no packages.

-- Configuration Files:
/etc/lvm/lvm.conf changed [not included]
/etc/lvm/lvmlocal.conf changed [not included]

-- no debconf information

Reply via email to