Bug 1437653
Summary: | up converting an inactive mirror with insufficient devs results in an over concerned warning | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> | ||||
Component: | lvm2 | Assignee: | Heinz Mauelshagen <heinzm> | ||||
lvm2 sub component: | Mirroring and RAID | QA Contact: | cluster-qe <cluster-qe> | ||||
Status: | CLOSED ERRATA | Docs Contact: | |||||
Severity: | low | ||||||
Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, zkabelac | ||||
Version: | 7.4 | Keywords: | Regression | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | lvm2-2.02.171-1.el7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-08-01 21:52:19 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: | |||||||
Attachments: |
|
Description
Corey Marthaler
2017-03-30 19:26:25 UTC
This exists in the 170-2 rpms as well. [root@host-076 ~]# lvconvert --type mirror -m+1 VG/insufficient_inactive_upconvert /dev/sda1 Insufficient suitable allocatable extents for logical volume : 125 more required Unable to allocate extents for mirror(s). Internal error: LV VG/insufficient_inactive_upconvert_mimagetmp_2 (UUID PhqddJvcyP2Tf03Ii53KYQl19actsm0tTHfSxU1Oa9hG1P62lpSYc3l10K6kYfTS) not found in committed metadata. ABORTING: Failed to remove temporary mirror layer VG/insufficient_inactive_upconvert_mimagetmp_2. Manual cleanup with vgcfgrestore and dmsetup may be required. 3.10.0-651.el7.x86_64 lvm2-2.02.170-2.el7 BUILT: Thu Apr 13 14:37:43 CDT 2017 lvm2-libs-2.02.170-2.el7 BUILT: Thu Apr 13 14:37:43 CDT 2017 lvm2-cluster-2.02.170-2.el7 BUILT: Thu Apr 13 14:37:43 CDT 2017 device-mapper-1.02.139-2.el7 BUILT: Thu Apr 13 14:37:43 CDT 2017 device-mapper-libs-1.02.139-2.el7 BUILT: Thu Apr 13 14:37:43 CDT 2017 device-mapper-event-1.02.139-2.el7 BUILT: Thu Apr 13 14:37:43 CDT 2017 device-mapper-event-libs-1.02.139-2.el7 BUILT: Thu Apr 13 14:37:43 CDT 2017 device-mapper-persistent-data-0.7.0-0.1.rc6.el7 BUILT: Mon Mar 27 10:15:46 CDT 2017 Created attachment 1273631 [details]
verbose lvconvert attempt
Upstream commit aa1d5d5c89873c0002628142fd9b2c7c4cc1da55 https://www.redhat.com/archives/lvm-devel/2017-April/msg00101.html https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=aa1d5d5c89873c0002628142fd9b2c7c4cc1da55 The bug was on an error path that assumed the mirror was active and attempted deactivation of its new component - the workaround in the patch checks additionally whether the LV is active and skips that deactivation attempt if not so. (But this code needs some additional work - it shouldn't need to call lv_is_active like that on an error path.) Fix verified in the latest rpms. 3.10.0-672.el7.x86_64 lvm2-2.02.171-3.el7 BUILT: Wed May 31 08:36:29 CDT 2017 lvm2-libs-2.02.171-3.el7 BUILT: Wed May 31 08:36:29 CDT 2017 lvm2-cluster-2.02.171-3.el7 BUILT: Wed May 31 08:36:29 CDT 2017 device-mapper-1.02.140-3.el7 BUILT: Wed May 31 08:36:29 CDT 2017 device-mapper-libs-1.02.140-3.el7 BUILT: Wed May 31 08:36:29 CDT 2017 device-mapper-event-1.02.140-3.el7 BUILT: Wed May 31 08:36:29 CDT 2017 device-mapper-event-libs-1.02.140-3.el7 BUILT: Wed May 31 08:36:29 CDT 2017 device-mapper-persistent-data-0.7.0-0.1.rc6.el7 BUILT: Mon Mar 27 10:15:46 CDT 2017 host-073: lvcreate --type mirror -m 1 -n insufficient_inactive_upconvert -L 500M mirror_sanity [root@host-073 ~]# lvs -a -o +devices LV VG Attr LSize Log Cpy%Sync Devices insufficient_inactive_upconvert mirror_sanity mwi---m--- 500.00m [insufficient_inactive_upconvert_mlog] insufficient_inactive_upconvert_mimage_0(0),insufficient_inactive_upconvert_mimage_1(0) [insufficient_inactive_upconvert_mimage_0] mirror_sanity Iwi---m--- 500.00m /dev/sda2(0) [insufficient_inactive_upconvert_mimage_1] mirror_sanity Iwi---m--- 500.00m /dev/sda1(0) [insufficient_inactive_upconvert_mlog] mirror_sanity lwi---m--- 4.00m /dev/sdf1(0) [root@host-073 ~]# lvconvert ---type mirror -m+1 mirror_sanity/insufficient_inactive_upconvert /dev/sda2 Insufficient suitable allocatable extents for logical volume : 125 more required Unable to allocate extents for mirror(s). 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/RHBA-2017:2222 |