Linux 5.0 hangs
Ever since the update to linux 5.0 my computer hangs at two points - triggering uevents and the lvm2-monitor section. Is it my setup or is this a bug in linux 5.0? I've downgraded to 4.20 (via downgrade) and it doesn't hang at all.
For reference:
4.20: Startup finished in 1.804s (kernel) + 1.732s (userspace) = 3.537s
5.0: Startup finished in 13.069s (kernel) + 18.352s (userspace) = 31.422s
The difference is staggering. Does anyone have any idea why this might be?
EDIT/UPDATE: I just installed Manjaro Linux and I have the same issue here if I upgrade to Linux 5.0.1. I also experience a ridiculous I/O slowdown, to the point of being unable to watch a 720p x264 mkv without stutter. This might be related to LUKS seeing as I have an encrypted storage (but not root!) partition. None of this seems to happen on 4.20.
EDIT 2: A lot of the comments are saying that I should mask/disable/blacklist lvm2-monitor - but that doesn't explain why lvm2-monitor takes one second to execute on 4.20 (vs about 10 seconds on 5.0/5.0.1), and it doesn't resolve the "Triggering uevents" part taking an incredibly long amount of time.
EDIT 3: I just unplugged my storage drive and there is no more delay, for reference:
- with the HDD: Startup finished in 13.069s (kernel) + 18.352s (userspace) = 31.422s
- without the HDD: Startup finished in 1.493s (kernel) + 1.778s (userspace) = 3.271s
EDIT 4: I just tried out another encrypted drive. Turns out it's probably drive failure, because the boot time remains equally short with the other encrypted drive plugged in. A big thank you to everybody that's posted in this thread :D I consider the matter closed.
Edited 11 Mar 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 18 · 100% up
- Kind
- Text
- ID
- azeshi
12 comments
I'm having an issue too. If I shutdown or reboot, I get a black screen with a blinking underscore for about 2 minutes before it executes. Rolling back fixed it.
EDIT: I Think I fixed it by masking lvm2-monitor.service
How to blacklist the service? Just disable it?
I edited it, I actually masked it.
The command to do this should be "sudo systemctl mask lvm2-monitor.service"
I got that blinking underscore on reboot too, but it doesn't seem to happen always.
I have the same issue. Sometimes it hangs on "Stopping monitoring of LVM2...", other times at "Reached target Reboot/Shutdown". This has been happening every now and then with various kernels in the past and is not specific to 5.0.
What about the `systemd-analyze` blame?
I'm using the 5.0.0-zen1-1-zen
Startup finished in 5.986s (firmware) + 73ms (loader) + 1.966s (kernel) + 3.809s (userspace) = 11.836s
Could it be failing hardware? My laptop went from 7 seconds to 5 seconds after the update, but the PC went up from a couple of seconds to 30, very strange
This has been mentioned from other LVM user, but I just use the ext4/xfs and it works fine.
https://www.reddit.com/r/archlinux/comments/axp9cm/linux_50_is_now_in_core/ehvrj3o
i switched to the zen kernel and it's pretty much the same
Try LTS Linux?
Same here. Not on boot, but on reboot/poweroff.
EDIT: yeah, disabling the lvm2-monitor service fixed it.
I got this with linux-zen. Although it was the network-wait servíce that maxed out 7-8 seconds. Disabled it and boot time was down to normal. But I got the LVM one as well!
I'm not at my computer, but I'll have a look tomorrow.
I'm using LUKs as well, but I got partitionless full disk encryption with btrfs.
Edit: But I didn't feel any performance drain. More Info tomorrow.