Bug 1656109
Summary: | potential for mirror image redundancy loss when converting from core -> disk log uses existing mimage device | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | Heinz Mauelshagen <heinzm> |
lvm2 sub component: | Mirroring and RAID | QA Contact: | cluster-qe <cluster-qe> |
Status: | CLOSED WONTFIX | Docs Contact: | |
Severity: | medium | ||
Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, zkabelac |
Version: | 8.0 | Keywords: | Regression |
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-01 14:38:18 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
2018-12-04 17:20:03 UTC
Another loss in redundancy regression scenario: [root@hayes-02 ~]# pvscan PV /dev/sdk1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdn1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdl1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdo1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdd1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdp1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdh1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdm1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdc1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] PV /dev/sdi1 VG mirror_sanity lvm2 [1020.00 MiB / 1020.00 MiB free] Total: 10 [9.96 GiB] / in use: 10 [9.96 GiB] / in no VG: 0 [0 ] # create spacer linears on /dev/sdk1 and /dev/sdn1 [root@hayes-02 ~]# lvcreate -L 400m mirror_sanity /dev/sdk1 Logical volume "lvol0" created. [root@hayes-02 ~]# lvcreate -L 400m mirror_sanity /dev/sdn1 Logical volume "lvol1" created. # create linear spanning both /dev/sdk1 and /dev/sdn1 [root@hayes-02 ~]# lvcreate -n span -L 400m mirror_sanity /dev/sdk1:0-150 /dev/sdn1:0-150 Logical volume "span" created. [root@hayes-02 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices lvol0 mirror_sanity -wi-a----- 400.00m /dev/sdk1(0) lvol1 mirror_sanity -wi-a----- 400.00m /dev/sdn1(0) span mirror_sanity -wi-a----- 400.00m /dev/sdk1(100) span mirror_sanity -wi-a----- 400.00m /dev/sdn1(100) # remove spacer linears on /dev/sdk1 and /dev/sdn1 [root@hayes-02 ~]# lvremove -f mirror_sanity/lvol0 Logical volume "lvol0" successfully removed [root@hayes-02 ~]# lvremove -f mirror_sanity/lvol1 Logical volume "lvol1" successfully removed [root@hayes-02 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices span mirror_sanity -wi-a----- 400.00m /dev/sdk1(100) span mirror_sanity -wi-a----- 400.00m /dev/sdn1(100) # up convert to mirror and check device allocation [root@hayes-02 ~]# lvconvert -m1 --type mirror mirror_sanity/span Logical volume mirror_sanity/span being converted. mirror_sanity/span: Converted: 10.00% mirror_sanity/span: Converted: 100.00% [root@hayes-02 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices span mirror_sanity mwi-a-m--- 400.00m [span_mlog] 100.00 span_mimage_0(0),span_mimage_1(0) [span_mimage_0] mirror_sanity iwi-aom--- 400.00m /dev/sdk1(100) [span_mimage_0] mirror_sanity iwi-aom--- 400.00m /dev/sdn1(100) [span_mimage_1] mirror_sanity iwi-aom--- 400.00m /dev/sdn1(149) [span_mimage_1] mirror_sanity iwi-aom--- 400.00m /dev/sdk1(151) [span_mlog] mirror_sanity lwi-aom--- 4.00m /dev/sdi1(0) # only one PV should have been used in up convert allocation kernel-4.18.0-48.el8 BUILT: Sat Dec 1 19:25:48 CST 2018 lvm2-2.03.01-1.el8 BUILT: Thu Nov 1 04:29:08 CDT 2018 lvm2-libs-2.03.01-1.el8 BUILT: Thu Nov 1 04:29:08 CDT 2018 lvm2-dbusd-2.03.01-1.el8 BUILT: Thu Nov 1 04:31:09 CDT 2018 device-mapper-1.02.153-1.el8 BUILT: Thu Nov 1 04:29:08 CDT 2018 device-mapper-libs-1.02.153-1.el8 BUILT: Thu Nov 1 04:29:08 CDT 2018 device-mapper-event-1.02.153-1.el8 BUILT: Thu Nov 1 04:29:08 CDT 2018 device-mapper-event-libs-1.02.153-1.el8 BUILT: Thu Nov 1 04:29:08 CDT 2018 |