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
Created attachment 1666262 [details] patch
commit c392ccaa470dbf1481cbf1c9e899ce9c59f2caea Author: Jonathan Brassow <jbrassow> Date: Thu Feb 27 11:33:55 2020 -0600 in mainline.
Adding QA ack for 8.3
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