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 1922312

Summary: add devices file feature
Product: Red Hat Enterprise Linux 8 Reporter: David Teigland <teigland>
Component: lvm2Assignee: David Teigland <teigland>
lvm2 sub component: Devices, Filtering and Stacking QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: medium CC: agk, cmackows, cmarthal, heinzm, jbrassow, kslaveyk, mcsontos, msnitzer, prajnoha, zkabelac
Version: 8.3Keywords: FutureFeature, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.03.12-4.el8 Doc Type: Enhancement
Doc Text:
.LVM `system.devices` file feature now available in RHEL 8 RHEL 8.5 introduces the LVM `system.devices` file feature. By creating a list of devices in the `/etc/lvm/devices/system.devices` file, you can select specific devices for LVM to recognize and use, and prevent LVM from using unwanted devices. To enable the `system.devices` file feature, set `use_devicesfile=1` in the `lvm.conf` configuration file and add devices to the `system.devices` file. LVM ignores any devices filter settings while the `system.devices` file feature is enabled. To prevent warning messages, remove your filter settings from the `lvm.conf` file. For more information, see the `lvmdevices(8)` man page.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:45:25 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 David Teigland 2021-01-29 15:58:48 UTC
Description of problem:

This began as RHEL9 bug 1749513, but we are planning to include the feature in RHEL8 first, where it would not be enabled by default.

Document describing the devices file feature:

https://docs.google.com/document/d/1bGp28lfUA6kY2ncKF6AD1r_EwQm_BwzV-OWvLQbEOSM/edit?usp=sharing

The feature will soon be merged into the upstream source.  Ongoing development can be found in branches with increasing <latest> values:
https://sourceware.org/git/?p=lvm2.git;a=shortlog;h=refs/heads/dev-dct-deviceid-<latest>

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 11 Corey Marthaler 2021-07-07 18:33:33 UTC
Marking Verified:Tested in the latest rpms. 

Regression tests have been run with the devices file enabled and cursory checks of the new 'lvmdevices' and 'vgimportdevices' commands have passed.

kernel-4.18.0-319.el8    BUILT: Mon Jun 28 20:52:51 CDT 2021
lvm2-2.03.12-4.el8    BUILT: Tue Jun 22 03:35:27 CDT 2021
lvm2-libs-2.03.12-4.el8    BUILT: Tue Jun 22 03:35:27 CDT 2021

Comment 16 Corey Marthaler 2021-08-09 15:28:55 UTC
Marking Verified in the latest rpms. 

kernel-4.18.0-325.el8    BUILT: Mon Jul 26 17:24:24 CDT 2021
lvm2-2.03.12-6.el8    BUILT: Tue Aug  3 07:23:05 CDT 2021
lvm2-libs-2.03.12-6.el8    BUILT: Tue Aug  3 07:23:05 CDT 2021

Comment 19 errata-xmlrpc 2021-11-09 19:45:25 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 (lvm2 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:4431