Bug 1805532
| Summary: | lvm needs to check that the potential writecache origin is also inactive before it attempts to convert | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
| lvm2 sub component: | Cache Logical Volumes | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, mcsontos, msnitzer, pasik, prajnoha, teigland, zkabelac |
| Version: | 8.2 | Flags: | pm-rhel:
mirror+
|
| Target Milestone: | rc | ||
| Target Release: | 8.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.03.08-2.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-28 16:59:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Corey Marthaler
2020-02-20 23:31:07 UTC
The origin should be allowed active while attaching writecache. fixed in master by: https://sourceware.org/git/?p=lvm2.git;a=commit;h=4829f27b76742ed663de0a11babb5b9a5985b741 https://sourceware.org/git/?p=lvm2.git;a=commit;h=8153c5f1e61b305661ab92302ebe1077e2d6f483 Corey, could you ack please? With bug 1808012 now fixed by not allowing *either* the pool or origin to be active, then the verification of this issue is basically the same. Marking verified in the latest rpms. kernel-4.18.0-187.el8 BUILT: Fri Mar 6 22:09:03 CST 2020 lvm2-2.03.08-3.el8 BUILT: Wed Mar 18 08:37:57 CDT 2020 lvm2-libs-2.03.08-3.el8 BUILT: Wed Mar 18 08:37:57 CDT 2020 device-mapper-1.02.169-3.el8 BUILT: Wed Mar 18 08:37:57 CDT 2020 device-mapper-libs-1.02.169-3.el8 BUILT: Wed Mar 18 08:37:57 CDT 2020 device-mapper-event-1.02.169-3.el8 BUILT: Wed Mar 18 08:37:57 CDT 2020 device-mapper-event-libs-1.02.169-3.el8 BUILT: Wed Mar 18 08:37:57 CDT 2020 [root@host-087 ~]# lvcreate -n origin -L 4G writecache_sanity Logical volume "origin" created. [root@host-087 ~]# lvcreate -n pool -L 4G writecache_sanity Logical volume "pool" created. [root@host-087 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices origin writecache_sanity -wi-a----- 4.00g /dev/sdb1(0) pool writecache_sanity -wi-a----- 4.00g /dev/sdb1(1024) # Both active (shouldn't work) [root@host-087 ~]# lvconvert --yes --type writecache --cachevol writecache_sanity/pool writecache_sanity/origin LV writecache_sanity/origin must be inactive to attach writecache. [root@host-087 ~]# lvchange -an writecache_sanity/origin [root@host-087 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices origin writecache_sanity -wi------- 4.00g /dev/sdb1(0) pool writecache_sanity -wi-a----- 4.00g /dev/sdb1(1024) # Only Pool active (shouldn't work) [root@host-087 ~]# lvconvert --yes --type writecache --cachevol writecache_sanity/pool writecache_sanity/origin LV writecache_sanity/pool must be inactive to attach. [root@host-087 ~]# lvchange -an writecache_sanity/pool [root@host-087 ~]# lvchange -ay writecache_sanity/origin [root@host-087 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices origin writecache_sanity -wi-a----- 4.00g /dev/sdb1(0) pool writecache_sanity -wi------- 4.00g /dev/sdb1(1024) # Only origin active (shouldn't work) [root@host-087 ~]# lvconvert --yes --type writecache --cachevol writecache_sanity/pool writecache_sanity/origin LV writecache_sanity/origin must be inactive to attach writecache. [root@host-087 ~]# lvchange -an writecache_sanity/origin [root@host-087 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices origin writecache_sanity -wi------- 4.00g /dev/sdb1(0) pool writecache_sanity -wi------- 4.00g /dev/sdb1(1024) # Both inactive (sould work) [root@host-087 ~]# lvconvert --yes --type writecache --cachevol writecache_sanity/pool writecache_sanity/origin Logical volume writecache_sanity/origin now has write cache. 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, 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/RHEA-2020:1881 |