<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div><br></div><div>Package: lvm2 <br></div><div>Version: 2.02.168-2<br></div><div>Severity: normal<br></div><div><br></div><div>Dear Maintainer,<br></div><div><br></div><div>lvm2-lvmetad reproducibly shows poor boot-time behaviour after an lvrename; 'pvscan --cache' does not resolve.  Discovered when attempting to rename the swap_1 lv that was created by the Debian Netinst x64 installer.  Steps to reproduce:<br></div><div><br></div><div><br></div><div>Create ESXi 6.5 Debian 9 x64 VM: <br></div><div>1 CPU<br></div><div>2048 MB RAM<br></div><div>16 GB HDD<br></div><div>VMware PV SCSI<br></div><div><br></div><div><br></div><div>Edit VM:<br></div><div>Add CD Drive, Debian 9.0 x64 netinst ISO<br></div><div><br></div><div><br></div><div>Power on VM:<br></div><div>Graphical install, select default option/value for every choice except:<br></div><div>-root pw = debian<br></div><div>-user account name = debian<br></div><div>-user account password = debian<br></div><div>-disk setup: Guided - use entire disk and set up LVM, all files in one partition (or separate /var, /tmp, /home option, makes no difference to outcome)<br></div><div>-install grub to sda<br></div><div><br></div><div>Boot into VM:<br></div><div>-observe normal boot sequence, no lvm-related errors<br></div><div>-Log in as debian, start terminal, 'su -' to root<br></div><div>-swapoff -a<br></div><div>-lvrename /dev/debian-vg/swap_1 /dev/debian-vg/swap<br></div><div>-vi /etc/fstab, update swap entry location to /dev/mapper/debian--vg-swap<br></div><div>-reboot<br></div><div><br></div><div>Boot into VM again:<br></div><div>-observe "WARNING: Failed to connect to lvmetad.  Falling back to device scanning.", "Failed to find logical volume "debian-vg/swap_1" messages repeated ~20-30x during elongated boot<br></div><div>-Log in as debian, start terminal, 'su -' to root<br></div><div>-systemctl status lvm2-lvmetad.service, observe it is active/running<br></div><div>-swapon -s, observe swap volume is correctly mounted<br></div><div>-lvs, observe correctly-named lv 'swap'<br></div><div>-pvscan --cache<br></div><div>-reboot<br></div><div><br></div><div>Boot into VM again:<br></div><div>-observe "WARNING: Failed to connect to lvmetad.  Falling back to device scanning.", "Failed to find logical volume "debian-vg/swap_1" messages repeated ~20-30x during elongated boot<br></div><div>-Log in as debian, start terminal, 'su -' to root<br></div><div>-swapoff -a<br></div><div>-lvremove /dev/debian-vg/swap<br></div><div>-lvcreate -L 1g -n swap debian-vg<br></div><div>-observe warning about 'signature detected on /dev/debian-vg/swap at offset 4086'<br></div><div><br></div><div>Additional notes: 'vgscan --cache' and 'lvscan --cache' also appear to have no effect.  Disabling lvm2-lvmetad.service appears to have no effect, boot messages remain the same.  Same behaviour also seen in a VMware player VM, haven't tested other hypervisors or physical machines yet.  Haven't tested volumes other than swap_1 as created by installer yet.<br></div><div><br></div><div>Possible similarities to <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799295">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799295</a>, but somewhat different setup and resulting error message; also this is Stretch.<br></div><div><br></div><div><br></div><div>-- System Information:<br></div><div>Debian Release: 9.0<br></div><div>  APT prefers stable<br></div><div>  APT policy: (500, 'stable')<br></div><div>Architecture: amd64 (x86_64)<br></div><div><br></div><div>Kernel: Linux 4.9.0-3-amd64 (SMP w/1 CPU core)<br></div><div>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)<br></div><div>Shell: /bin/sh linked to /bin/dash<br></div><div>Init: systemd (via /run/systemd/system)<br></div><div><br></div><div>Versions of packages lvm2 depends on:<br></div><div>ii  dmeventd                  2:1.02.137-2<br></div><div>ii  dmsetup                   2:1.02.137-2<br></div><div>ii  init-system-helpers       1.48<br></div><div>ii  libblkid1                 2.29.2-1<br></div><div>ii  libc6                     2.24-11+deb9u1<br></div><div>ii  libdevmapper-event1.02.1  2:1.02.137-2<br></div><div>ii  libdevmapper1.02.1        2:1.02.137-2<br></div><div>ii  liblvm2app2.2             2.02.168-2<br></div><div>ii  libreadline5              5.2+dfsg-3+b1<br></div><div>ii  libudev1                  232-25<br></div><div>ii  lsb-base                  9.20161125<br></div><div><br></div><div>lvm2 recommends no packages.<br></div><div><br></div><div>Versions of packages lvm2 suggests:<br></div><div>pn  thin-provisioning-tools  <none><br></div><div><br></div><div>-- no debconf information<br></div></div></body></html>