Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#62390 - [lvm2] shutdown issue, again, lvm2-lvmetad makes system hang

Attached to Project: Arch Linux
Opened by Andrew S. Grigorev (eigrad) - Thursday, 18 April 2019, 20:17 GMT
Last edited by Jan de Groot (JGC) - Friday, 31 May 2019, 06:46 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Some time ago (probably after upgrading to linux-5.x) my system began to hang for 90 seconds on shutdown. It seems to be related to lvmetad, but I don't use LVM on this machine.

There are plenty of other users facing the similar issue reporting it on r/archlinux. There are several threads like this: https://www.reddit.com/r/archlinux/comments/b6hbca/need_some_help_figuring_out_why_my_system_hangs/.

The proper fix is to correct dependencies between shutdown and lvm2-lvmetad systemd units. See https://github.com/systemd/systemd/issues/11821#issuecomment-477545885.

Adding /etc/systemd/system/lvm2-lvmetad.service.d/override.conf with the contents

[Unit]
Before=shutdown.target

seems to fix the issue for me.

Possibly related: https://bugs.archlinux.org/task/52249 https://bugs.archlinux.org/task/52667
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 31 May 2019, 06:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.02.184-4
Comment by loqs (loqs) - Thursday, 18 April 2019, 20:31 GMT Comment by Andrew S. Grigorev (eigrad) - Thursday, 18 April 2019, 20:58 GMT
Oh, sorry, it looks like I didn't check the issue existence after the last system update! :-o

Thanks!

Loading...