Bug 1957622

Summary: dracut can take several minutes (+/- 30) on large systems with many disks
Product: Red Hat Enterprise Linux 8 Reporter: Renaud Métrich <rmetrich>
Component: dracutAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED ERRATA QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: high    
Version: 8.3CC: dracut-maint-list, dtardon, fsumsal, pkhedeka, pmatyas
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dracut-049-188.git20210802.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:38:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Renaud Métrich 2021-05-06 07:35:18 UTC
This bug was initially created as a copy of Bug #1957621

I am copying this bug because: 

also applies to RHEL8.

Description of problem:

Please backport PR https://github.com/dracutdevs/dracut/pull/1450
A customer faces kernel update slowness (more than 20 minutes) due to having tons of multipath devices hosting oracleasm file systems.

The PR above, accepted by Upstream today, implement a basic cache for get_maj_min(), which is really necessary on large systems.


Version-Release number of selected component (if applicable):

RHEL7 and RHEL8 dracut


How reproducible:

Always, see reproducer in Upstream PR

Comment 3 Petr Matyáš 2021-08-16 13:53:48 UTC
Verified on dracut-049-188.git20210802.el8.x86_64

Comment 5 errata-xmlrpc 2021-11-09 19:38:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (dracut bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4394