Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2002550

Summary: Anaconda should create /etc/lvm/devices/system.devices config file and populate it with existing LVM devices
Product: Red Hat Enterprise Linux 9 Reporter: Vojtech Trefny <vtrefny>
Component: anacondaAssignee: Vladimír Slávik <vslavik>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: anaconda-maint-list, jkonecny, jstodola, lmiksik, mlewando, rvykydal, vslavik
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-34.25.0.17-1.el9_b Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2005034 (view as bug list) Environment:
Last Closed: 2021-12-07 21:20:54 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:
Bug Depends On:    
Bug Blocks: 2005034    

Description Vojtech Trefny 2021-09-09 08:06:44 UTC
LVM introduced a new config file /etc/lvm/devices/system.devices which should contain all PVs that LVM will use on RHEL 9. This behaviour is now enabled by default in LVM[1] (but it will fallback to "scan everything" if the file is not present). for more information. Blivet doesn't add newly created PVs (or PVs of existing VGs reused during the installation) to the config file (full support of this LVM feature in Blivet is planned for 9.0[2]) effectively disabling the LVM feature in 9 beta. This creates a situation where a LVM feature approved for 9 beta is disabled for all installed systems.

To avoid this, Anaconda should create and populate the system.devices config file. This can be done by  calling "vgimportdevices -a" on the installed system (in chroot) which will create create the system.devices file and add all existing LVM PVs to it. This solution was suggested by the LVM team as a simple way to make sure the LVM devices file feature is not disabled by the installer (Blivet) for 9 beta[3].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1749513
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1983705
[3] https://bugzilla.redhat.com/show_bug.cgi?id=1984851#c14

Comment 3 Vladimír Slávik 2021-09-09 11:34:07 UTC
PR with first fix attempt: https://github.com/rhinstaller/anaconda/pull/3600

Comment 11 Jan Stodola 2021-10-01 09:03:04 UTC
anaconda-34.25.0.17-1.el9_b is present in RHEL-9.0.0-20210930.4, moving to VERIFIED.