Skip to content

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.

18 points12 comments
Open on Reddit
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

8 points

How to blacklist the service? Just disable it?

1 points

I edited it, I actually masked it.

The command to do this should be "sudo systemctl mask lvm2-monitor.service"

1 points

I got that blinking underscore on reboot too, but it doesn't seem to happen always.

1 points

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.

5 points

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

3 points
unknown author1 hidden
     11.433s lvm2-monitor.service
       459ms dev-sda1.device
       313ms systemd-logind.service
       229ms systemd-journal-flush.service
       164ms systemd-modules-load.service
       152ms polkit.service
       131ms upower.service
       123ms systemd-udevd.service
       119ms udisks2.service
       104ms systemd-udev-trigger.service
       104ms NetworkManager.service
        94ms systemd-journald.service
        53ms systemd-timesyncd.service
        51ms user@1000.service
        46ms systemd-tmpfiles-clean.service
        43ms systemd-binfmt.service
        35ms sys-kernel-debug.mount
        34ms systemd-remount-fs.service
        27ms systemd-tmpfiles-setup-dev.service
        27ms dev-mqueue.mount
        26ms dev-hugepages.mount
        23ms systemd-tmpfiles-setup.service
        20ms kmod-static-nodes.service
        18ms tmp.mount
        16ms systemd-sysctl.service
        15ms systemd-random-seed.service
        11ms user-runtime-dir@1000.service
        11ms systemd-update-utmp.service
        11ms haveged.service
        10ms rtkit-daemon.service

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

5 points
unknown author

i switched to the zen kernel and it's pretty much the same

2 points

Same here. Not on boot, but on reboot/poweroff.

EDIT: yeah, disabling the lvm2-monitor service fixed it.

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.