[Bug 1768230] Re: Long time booting : Failed to connect to lvmetad. Falling back to device scanning.
Mr Ess
1768230 at bugs.launchpad.net
Thu Sep 5 05:10:05 UTC 2019
2019 May 15
Ubuntu 18.04 (VM snapshot) - works well.
2019 Sep 04:
$ sudo apt update && sudo apt upgrade -y
...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.0.0-27-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/ubuntu--vg-swap_1)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.0.0-27-generic
Found initrd image: /boot/initrd.img-5.0.0-27-generic
Found linux image: /boot/vmlinuz-4.18.0-15-generic
Found initrd image: /boot/initrd.img-4.18.0-15-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Processing triggers for initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: Generating /boot/initrd.img-5.0.0-27-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/ubuntu--vg-swap_1)
I: Set the RESUME variable to override this.
Processing triggers for dbus (1.12.2-1ubuntu1.1) ...
$ sudo reboot
Baseline:
Fail:
```
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
/dev/mapper/ubuntu--vg-root: clean, 1934309/4136960 files, 1775141/16522240 blocks
```
Test 00:
# Drop into the shell with ctrl+alt+f3
sudo rm /etc/initramfs-tools/conf.d/resume
sudo update-initramfs -u
sudo reboot
Result: Fail
Test 01:
# Drop into the shell with ctrl+alt+f3
sudo rm /etc/initramfs-tools/conf.d/resume
sudo reboot
Result: Fail
Test 02:
# Add this RESUME config
sudo vim /etc/initramfs-tools/conf.d/resume
RESUME=/dev/mapper/ubuntu--vg-swap_1
# Update
sudo update-initramfs -u
Result: Fail
** Attachment added: "Screen Shot 2019-09-04 at 10.01.10 PM.png"
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1768230/+attachment/5286901/+files/Screen%20Shot%202019-09-04%20at%2010.01.10%20PM.png
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1768230
Title:
Long time booting : Failed to connect to lvmetad. Falling back to
device scanning.
Status in initramfs-tools package in Ubuntu:
Fix Released
Status in ubiquity package in Ubuntu:
Fix Released
Status in initramfs-tools source package in Bionic:
Fix Released
Status in ubiquity source package in Bionic:
Fix Released
Bug description:
[SRU Justification]
A regression in initramfs-tools causes it to autogenerate config in the initramfs saying to resume from any available swap devices, but references the swap device by UUID, which is not a canonical form for referring to LVM volumes (because of snapshotting, they are not unique). Ubiquity also generates a file in /etc at install time which references the swap partition in the same way. Since the lvm2 initramfs hooks also only activate precisely those LVs that are detected as needed at boot, this adds an inappropriate 30-second boot delay to any system with swap on LVM, which includes any desktop system that was configured with LVM (but not full-disk encryption) at install time.
[Test case]
1. Install using the "Use LVM" option in the desktop installer.
4. Reboot.
5. Verify that dmesg shows a 30-second delay before mounting the root filesystem.
6. Install initramfs-tools from bionic-proposed.
7. Reboot.
8. Verify that dmesg no longer shows a 30-second delay before mounting the root filesystem.
9. Install using the bionic daily image that contains the ubiquity from bionic-proposed.
10. Reboot.
11. Verify that /etc/initramfs-tools/conf.d/resume is not present and that there is no delay before mounting the root filesystem.
[Regression potential]
This makes changes to shell scripts, and shell is a perilous language. An unnoticed bug could cause all initramfs generation, and thus all kernel installation, to fail for some users. A regression could also cause a user to lose hiberation support that they currently have.
[Original description]
After choosing "Erase disk and install ubuntu" + "Use LVM with the new Ubuntu installation", the
system is very slow to reboot.
It shows the message : "WARNING:Failed to connect to lvmetad. Falling back to device scanning.",
then waits 32 seconds, then continues as it should.
I think this is a ubiquity bug, since the d-i based installer is not affected.
- ubuntu-18.04-desktop-amd64.iso (a55353d837cbf7bc006cf49eeff05ae5044e757498e30643a9199b9a25bc9a34) : affected
- xubuntu-18.04-desktop-amd64.iso (7c24318d3b1de1efd584b5aea034ce1aafd2d0f06c59812d989a5fc95bf947e3) : affected
- ubuntu-18.04-server-amd64.iso (a7f5c7b0cdd0e9560d78f1e47660e066353bb8a79eb78d1fc3f4ea62a07e6cbc) : not affected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1768230/+subscriptions
More information about the foundations-bugs
mailing list