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.
Description of problem:
lvm does not currently permit adding a cache or writecache over a raid+integrity LV. This limitation was originally meant to introduce the integrity feature incrementally, but it's now been in use for some time and we have see interest in using writecache with raid+integrity.
That patch will simply remove the RULE lines in the command line definitions that disallow the commands.
Steps are:
1. create a raid+integrity LV.
2. add a cache or writecache to the LV.
I may limit the commands that can be used to add cache|writecache to the basic variant: lvconvert --type cache|writecache LV.
As to the question of whether the user should be allowed to add/remove integrity from a raid LV while there is a cache|writecache attached, I'm inclined to restrict that somewhat, perhaps only allowing the removal of integrity from raid while cache|writecache is attached.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
Regarding unique limitations of the caching/raid/integrity combination:
- can remove integrity from raid+integrity while caching
- cannot add integrity to raid while caching
- can remove image from raid+integrity while caching
- cannot add image to raid+integrity while caching
- cannot snapshot raid+integrity while caching (this may be enabled in 2179430)
Initial cache and writecache testing over raid+integrity is complete, with the following caveat, no snapshot filesystem testing has been done yet.
Marking Verified:Tested with the latest rpms.
kernel-5.14.0-306.el9 BUILT: Sat Apr 29 05:45:15 PM CEST 2023
lvm2-2.03.21-1.el9 BUILT: Fri Apr 21 02:33:33 PM CEST 2023
lvm2-libs-2.03.21-1.el9 BUILT: Fri Apr 21 02:33:33 PM CEST 2023
Marking VERIFIED now that cache and write cache test scenarios have passed the second build as well. Again, with the caveat that no snapshot filesystem testing has been done yet.
kernel-5.14.0-305.el9 BUILT: Thu Apr 27 03:00:24 PM CEST 2023
lvm2-2.03.21-2.el9 BUILT: Thu May 25 12:03:04 AM CEST 2023
lvm2-libs-2.03.21-2.el9 BUILT: Thu May 25 12:03:04 AM CEST 2023
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-2023:6633