[LINUX] It takes a long time to shut down in CentOS 7 with LVM configuration.

Introduction

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.

Disable lvmetad

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.

reference

sourceware.org - lvm2.git / commitdiff Red Hat-Metadata Demon (LVMETAD)

Recommended Posts

It takes a long time to shut down in CentOS 7 with LVM configuration.
How to generate a QR code and barcode in Python and read it normally or in real time with OpenCV
A clever way to time processing in Python
How to set a shared folder with the host OS in CentOS7 on VirtualBOX
The story of Airflow's webserver and DAG, which takes a long time to load
From installing Flask on CentOS to making it a service with Nginx and uWSGI
How to convert / restore a string with [] in python
I want to transition with a button in flask
I want to work with a robot in python.
How to interactively draw a machine learning pipeline with scikit-learn and save it in HTML
Recursively get the Excel list in a specific folder with python and write it to Excel.
An easy way to view the time taken in Python and a smarter way to improve it
Experiment to collect tweets for a long time (Program preparation (3))
Experiment to collect tweets for a long time (Program preparation (1))
I made a package to filter time series with python
Ingenuity to handle data with Pandas in a memory-saving manner
Experiment to collect tweets for a long time (Program preparation (5))
Let's create a function to hold down Button in Tkinter