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
 FS#61925 
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...