xps13 icon indicating copy to clipboard operation
xps13 copied to clipboard

resume errors with LVM?

Open cboettig opened this issue 5 years ago • 3 comments

Anyone else experience resume errors after configuring a distro using LVM?

I see the following error on startup

Failed to connect to lvmetad. Falling back to device scanning.

this is mostly annoying because it seems the lvmetad connection waits 30 seconds before it gives up and falls back on device scanning, creating a 30 sec delay in boot or resume from sleep. I believe it is this confirmed bug in Ubuntu Bionic: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1768230, the work-around of deleting /etc/initramfs-tools/conf.d/resume seems to eliminate the wait time for boot but not for resume?

cboettig avatar Dec 10 '18 18:12 cboettig

I have had this problem after a dist upgrade. My swap partition had the wrong uuid.

I think I did something like that to fix it : https://forums.linuxmint.com/viewtopic.php?t=242867

Edit : I have found the exact post that solved my problem : https://forums.linuxmint.com/viewtopic.php?t=277375

I have found the problem / solution. There was a wrong UUID of the swap-drive in /etc/initramfs-tools/conf.d/resume. I have absolutely no clue, where it came from. Was it me?! Was it the installation-/configuration-process of the OS?! I took the correct UUID from blkid and put it into resume. After this, i ran sudo update-initramfs -u.

mpalourdio avatar Dec 10 '18 18:12 mpalourdio

Hmm, I've tried setting the UUID for the swap (given by blkid) in /etc/initramfs-tools/conf.d/resume and in /etc/fstab, but still see this same delay. (seems like some other users do as well: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1768230/comments/69). Not sure if this is under the scope of the kernel, I'm running 4.19.7 to resolve #109 ...

cboettig avatar Dec 13 '18 23:12 cboettig

Well no idea then. That what fixed my long boot delay :/

mpalourdio avatar Dec 16 '18 09:12 mpalourdio