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.
DescriptionCorey Marthaler
2020-02-20 20:17:20 UTC
Description of problem:
Current Section:
mirrored cache device
The fast LV holding the cache can be created as a raid1 mirror so that it can tolerate a device failure. (When using dm-cache with separate data and metadata LVs, each of the sub-LVs can use raid1.)
$ lvcreate -n main -L Size vg /dev/slow
$ lvcreate --type raid1 -m 1 -n fast -L Size vg /dev/ssd1 /dev/ssd2
$ lvconvert --type cache --cachevol fast vg/main
"Old" mirror doesn't work for dm-cache or dm-write cache
# dm-cache
[root@hayes-02 ~]# lvconvert --yes --type cache --cachepool cache_sanity/poolm cache_sanity/originl
LV cache_sanity/poolm with type mirror cannot be converted to a cache pool.
[root@hayes-02 ~]# lvconvert --yes --type cache --cachepool cache_sanity/pooll cache_sanity/originm
Command on LV cache_sanity/originm does not accept LV type mirror.
Command not permitted on LV cache_sanity/originm.
# dm-writecache
[root@hayes-02 ~]# lvconvert --yes --type writecache --cachevol cache_sanity/pooll cache_sanity/originm
Command on LV cache_sanity/originm does not accept LV type mirror.
Command not permitted on LV cache_sanity/originm.
[root@hayes-02 ~]# lvconvert --yes --type writecache --cachevol cache_sanity/poolm cache_sanity/originl
LV cache_sanity/poolm must be linear to use as a writecache.
Version-Release number of selected component (if applicable):
kernel-4.18.0-179.el8 BUILT: Fri Feb 14 17:03:01 CST 2020
lvm2-2.03.08-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020
lvm2-libs-2.03.08-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020
lvm2-dbusd-2.03.08-1.el8 BUILT: Tue Feb 11 07:42:51 CST 2020
lvm2-lockd-2.03.08-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020
boom-boot-1.0-1.el8 BUILT: Fri Nov 29 05:18:30 CST 2019
device-mapper-1.02.169-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020
device-mapper-libs-1.02.169-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020
device-mapper-event-1.02.169-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020
device-mapper-event-libs-1.02.169-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020
Comment 1Jonathan Earl Brassow
2020-02-27 17:16:49 UTC
Fix verified in the latest rpms.
kernel-4.18.0-211.el8 BUILT: Thu Jun 4 03:33:39 CDT 2020
lvm2-2.03.09-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020
lvm2-libs-2.03.09-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020
lvm2-dbusd-2.03.09-2.el8 BUILT: Fri May 29 11:32:49 CDT 2020
lvm2-lockd-2.03.09-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020
boom-boot-1.1-1.el8 BUILT: Thu May 14 08:11:56 CDT 2020
device-mapper-1.02.171-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020
device-mapper-libs-1.02.171-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020
device-mapper-event-1.02.171-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020
device-mapper-event-libs-1.02.171-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020
RAID1 cache device
RAID1 can be used to create the fast LV holding the cache so that it can tolerate a device failure. (When using dm-cache with separate data and metadata LVs, each of the
sub-LVs can use RAID1.)
$ lvcreate -n main -L Size vg /dev/slow
$ lvcreate --type raid1 -m 1 -n fast -L Size vg /dev/ssd1 /dev/ssd2
$ lvconvert --type cache --cachevol fast vg/main
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-2020:4546
Description of problem: Current Section: mirrored cache device The fast LV holding the cache can be created as a raid1 mirror so that it can tolerate a device failure. (When using dm-cache with separate data and metadata LVs, each of the sub-LVs can use raid1.) $ lvcreate -n main -L Size vg /dev/slow $ lvcreate --type raid1 -m 1 -n fast -L Size vg /dev/ssd1 /dev/ssd2 $ lvconvert --type cache --cachevol fast vg/main "Old" mirror doesn't work for dm-cache or dm-write cache # dm-cache [root@hayes-02 ~]# lvconvert --yes --type cache --cachepool cache_sanity/poolm cache_sanity/originl LV cache_sanity/poolm with type mirror cannot be converted to a cache pool. [root@hayes-02 ~]# lvconvert --yes --type cache --cachepool cache_sanity/pooll cache_sanity/originm Command on LV cache_sanity/originm does not accept LV type mirror. Command not permitted on LV cache_sanity/originm. # dm-writecache [root@hayes-02 ~]# lvconvert --yes --type writecache --cachevol cache_sanity/pooll cache_sanity/originm Command on LV cache_sanity/originm does not accept LV type mirror. Command not permitted on LV cache_sanity/originm. [root@hayes-02 ~]# lvconvert --yes --type writecache --cachevol cache_sanity/poolm cache_sanity/originl LV cache_sanity/poolm must be linear to use as a writecache. Version-Release number of selected component (if applicable): kernel-4.18.0-179.el8 BUILT: Fri Feb 14 17:03:01 CST 2020 lvm2-2.03.08-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020 lvm2-libs-2.03.08-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020 lvm2-dbusd-2.03.08-1.el8 BUILT: Tue Feb 11 07:42:51 CST 2020 lvm2-lockd-2.03.08-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020 boom-boot-1.0-1.el8 BUILT: Fri Nov 29 05:18:30 CST 2019 device-mapper-1.02.169-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020 device-mapper-libs-1.02.169-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020 device-mapper-event-1.02.169-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020 device-mapper-event-libs-1.02.169-1.el8 BUILT: Tue Feb 11 07:40:33 CST 2020