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 1081435 - Add dm-cache module to ramdisk when cached LV is used in the stack
Summary: Add dm-cache module to ramdisk when cached LV is used in the stack
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dracut
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: dracut-maint
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-27 10:12 UTC by Marian Csontos
Modified: 2014-06-18 03:58 UTC (History)
7 users (show)

Fixed In Version: dracut-033-156.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:36:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (546 bytes, patch)
2014-03-27 11:35 UTC, Harald Hoyer
no flags Details | Diff

Description Marian Csontos 2014-03-27 10:12:01 UTC
Description of problem:

Machine with root on cached LV is not bootable at the moment.

dm-cache kernel module is required in the ramdisk to make root FS using cached LV in the stack bootable.

There are few interesting stacks this allows:

- cached LV (thin-LV, RAID, linear)
- thin-LV on a cached pool (POOL_tdata is cached LV (linear or RAID))

Comment 2 Harald Hoyer 2014-03-27 11:35:35 UTC
Created attachment 879424 [details]
Proposed patch

Comment 3 Marian Csontos 2014-03-27 12:30:35 UTC
Thanks Harald, you beat me posting the patch before I managed to test my changes.
Excuse me, actually it is dm-cache-mq which is required.

I would add dm-cache-cleaner too - if there is a problem during boot it would allow merging data from cache to its origin and dropping cache.
*Jon*, is there something else required I missed?

This change is pretty self-contained. Risk of breaking things is close to 0.

The only thing is relevant modules will be included unconditionally making ramdisk slightly larger, am I correct?

Making proper detection of cache modules required can be postponed till 7.1 as it will be somewhat larger patch.

Comment 5 Harald Hoyer 2014-03-27 15:28:29 UTC
dracut-033-156.el7 added  dm-cache-cleaner and dm-cache-mq

Comment 7 Ladislav Jozsa 2014-04-01 13:45:11 UTC
Verified with dracut-033-156.el7. It is possible to boot with machine having rootfs either on thin-lv or cached lv. The following warnings were issued to the console:

[    0.923782] Buffer I/O error on device dm-4, logical block 167920
[    0.926027] Buffer I/O error on device dm-4, logical block 167920
[    2.068079] Buffer I/O error on device dm-4, logical block 167920
[    2.070444] Buffer I/O error on device dm-4, logical block 167920
[    2.323696] Buffer I/O error on device dm-8, logical block 1008
[    2.325884] Buffer I/O error on device dm-8, logical block 1008

Marian, is it expected?

Comment 8 Marian Csontos 2014-04-01 20:48:57 UTC
It is a "feature" - there is an error dm-mapping in the system for each cache-pool - see dmsetup status. And something is trying to read them IIUC - you will see these e.g. when running `blkid`.

Comment 9 Ludek Smid 2014-06-13 12:36:09 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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