My Oracle Support Banner

Oracle Linux: 'lvm2-monitor.service' is Slow While System Boot with Errors "lvm: /sys/dev/block/131:16/holders/: opendirfailed: Too many open files" (Doc ID 2648920.1)

Last updated on MARCH 17, 2020

Applies to:

Linux OS - Version Oracle Linux 7.0 and later
Linux x86-64

Symptoms

lvm2-monitor service take much time to boot (around 41 minutes)

$ more systemd-analyze_blame |grep lvm
41min 38.474s lvm2-monitor.service ----------------------->>> took 41 minutes
43.246s lvm2-pvscan@8:2.service
42.865s lvm2-pvscan@8:17.service

Several lvm related errors in the system logs (/var/log/message) shows below errors

Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/71:16/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/71:272/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/71:528/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/71:784/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/128:16/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/128:272/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/128:528/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/128:784/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/129:16/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/129:272/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/129:528/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/129:784/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/130:16/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/130:272/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/130:528/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/130:784/holders/: opendirfailed: Too many open files
Dec 11 19:56:49 <hostname> lvm: /sys/dev/block/131:16/holders/: opendirfailed: Too many open files

Disks are mounted during boot.
After server finished booting lvm2-monitor.service shows were in a failed state and our logs were full of messages(above)

Packages latest

lvm2-2.02.185-2.0.1.el7_7.2.x86_64 Tue Dec 3 16:12:39 2019
lvm2-libs-2.02.185-2.0.1.el7_7.2.x86_64 Tue Dec 3 16:12:19 2019
lvm2-python-libs-2.02.185-2.0.1.el7_7.2.x86_64 Tue Dec 3 16:12:39 2019
device-mapper-1.02.158-2.0.1.el7_7.2.x86_64 Tue Dec 3 16:10:41 2019
device-mapper-event-1.02.158-2.0.1.el7_7.2.x86_64 Tue Dec 3 16:12:19 2019
device-mapper-event-libs-1.02.158-2.0.1.el7_7.2.x86_64 Tue Dec 3 16:10:45 2019
device-mapper-libs-1.02.158-2.0.1.el7_7.2.x86_64 Tue Dec 3 16:10:41 2019
device-mapper-multipath-0.4.9-127.el7.x86_64 Tue Dec 3 16:12:39 2019
device-mapper-multipath-libs-0.4.9-127.el7.x86_64 Tue Dec 3 16:12:21 2019
device-mapper-persistent-data-0.8.5-1.el7.x86_64 Tue Dec 3 16:10:38 2019

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.