Bug 1922312 - add devices file feature
Summary: add devices file feature
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lvm2
Version: 8.3
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: David Teigland
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-29 15:58 UTC by David Teigland
Modified: 2023-05-15 05:48 UTC (History)
10 users (show)

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.
Clone Of:
Environment:
Last Closed: 2021-11-09 19:45:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4431 0 None None None 2021-11-09 19:45:43 UTC

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


Note You need to log in before you can comment on or make changes to this bug.