An event that takes a long time to shut down occurs in CentOS7. Run shutdown -h now
to
After transitioning to a black screen, it stagnates for about 90 seconds with a black screen, and then stops.
When I pressed ʻESC` on a black screen, I could see the following message.
A stop job is running for LVM2 metadata daemon
Searching for the message, it seems to be an LVM bug that occurs at shutdown.
It seems to be fixed with 2.02.187
, but as of 2020/02/24, for CentOS 7
The lvm2
package seemed to be the latest in 2.02.185
, so disable lvmetad
deal with. You can disable lvmetad by modifying /etc/lvm/lvm.conf
as follows:
"Change before"
use_lvmetad = 0
"After change"
use_lvmetad = 1
Shut down the OS again, and if it goes down smoothly, the countermeasure is completed.
sourceware.org - lvm2.git / commitdiff Red Hat-Metadata Demon (LVMETAD)
Recommended Posts