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: ---   
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.