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.
Seems the kernel has been 'enhanced' with new reported feature 'no_discard_passdown' - and lvm2 doens't know about it yet.
So it reports the 'unknown' feature.
Patch is needed to enhance libdm API to understand (and report) this bit of info.
Requires relatively 'low amount' of work to fix this - but it's not a one-liner patch.
If the lvm2 should also support setting this feature - it's a further enhancement.
I assume 'no_discard_passdown' got set as a side-effect of the underlying origin device not supporting discards.
As for missing the need to support this feature.. sorry:
commit de7180ff908b2bc0342e832dbdaa9a5f1ecaa33a
Author: Mike Snitzer <snitzer>
Date: Mon Feb 25 11:07:10 2019 -0500
dm cache: add support for discard passdown to the origin device
DM cache now defaults to passing discards down to the origin device.
User may disable this using the "no_discard_passdown" feature when
creating the cache device.
If the cache's underlying origin device doesn't support discards then
passdown is disabled (with warning). Similarly, if the underlying
origin device's max_discard_sectors is less than a cache block discard
passdown will be disabled (this is required because sizing of the cache
internal discard bitset depends on it).
Signed-off-by: Mike Snitzer <snitzer>
Upstream commit into stable branch enhances lvm to report new field and understand report feature:
lvs -o+kernel-discards will show if no_discard_passdown is present as 'nopassdown'
Associated test-case:
https://www.redhat.com/archives/lvm-devel/2019-June/msg00008.html