Bug 1278515
| Summary: | Attempt to create thin|cache pool larger than possible leaves auxiliary volume behind | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> |
| lvm2 sub component: | Thin Provisioning | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | low | ||
| Priority: | unspecified | CC: | agk, bmarzins, bmr, cmarthal, dwysocha, extras-qa, heinzm, jbrassow, jonathan, loberman, lvm-team, mizdebsk, msimacek, msnitzer, prajnoha, prockai, rbednar, thornber, zkabelac |
| Version: | 7.2 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.176-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1124799 | Environment: | |
| Last Closed: | 2018-04-10 15:18:32 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: | |||
| Bug Depends On: | 1124799 | ||
| Bug Blocks: | |||
|
Description
Corey Marthaler
2015-11-05 16:54:01 UTC
Same thing happens if attempted w/ cache pools. [root@host-109 ~]# vgs VG #PV #LV #SN Attr VSize VFree cache_sanity 4 0 0 wz--n- 384.00m 384.00m [root@host-109 ~]# lvcreate -L 2G --type cache-pool cache_sanity/oversized Volume group "cache_sanity" has insufficient free space (94 extents): 512 required. [root@host-109 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Devices lvol0 cache_sanity -wi------- 8.00m /dev/sda1(0) 3.10.0-327.el7.x86_64 lvm2-2.02.130-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 lvm2-libs-2.02.130-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 lvm2-cluster-2.02.130-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 device-mapper-1.02.107-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 device-mapper-libs-1.02.107-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 device-mapper-event-1.02.107-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 device-mapper-event-libs-1.02.107-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 device-mapper-persistent-data-0.5.5-1.el7 BUILT: Thu Aug 13 09:58:10 CDT 2015 cmirror-2.02.130-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 sanlock-3.2.4-1.el7 BUILT: Fri Jun 19 12:48:49 CDT 2015 sanlock-lib-3.2.4-1.el7 BUILT: Fri Jun 19 12:48:49 CDT 2015 lvm2-lockd-2.02.130-5.el7 BUILT: Wed Oct 14 08:27:29 CDT 2015 Adding quick note that this is still present in latest 7.3 rpms. [root@host-082 ~]# pvcreate --setphysicalvolumesize 100M /dev/sd[abcdefgh]1 [root@host-082 ~]# vgcreate test /dev/sd[abcdefgh]1 [root@host-082 ~]# pvscan PV /dev/sda1 VG test lvm2 [96.00 MiB / 96.00 MiB free] PV /dev/sdb1 VG test lvm2 [96.00 MiB / 96.00 MiB free] PV /dev/sdc1 VG test lvm2 [96.00 MiB / 96.00 MiB free] PV /dev/sdd1 VG test lvm2 [96.00 MiB / 96.00 MiB free] PV /dev/sde1 VG test lvm2 [96.00 MiB / 96.00 MiB free] PV /dev/sdf1 VG test lvm2 [96.00 MiB / 96.00 MiB free] PV /dev/sdg1 VG test lvm2 [96.00 MiB / 96.00 MiB free] PV /dev/sdh1 VG test lvm2 [96.00 MiB / 96.00 MiB free] [root@host-082 ~]# lvcreate -L 2G --thinpool test/over_size_pool Volume group "test" has insufficient free space (191 extents): 512 required. [root@host-082 ~]# lvs -a -o +devices LV VG Attr LSize Devices [lvol0_pmspare] test ewi------- 4.00m /dev/sda1(0) [root@host-082 ~]# vgremove --yes test Assertion failed: can't _pv_write non-orphan PV (in VG ) Failed to remove physical volume "/dev/sda1" from volume group "test" Volume group "test" not properly removed 3.10.0-480.el7.x86_64 lvm2-2.02.161-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 lvm2-libs-2.02.161-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 lvm2-cluster-2.02.161-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 device-mapper-1.02.131-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 device-mapper-libs-1.02.131-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 device-mapper-event-1.02.131-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 device-mapper-event-libs-1.02.131-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 device-mapper-persistent-data-0.6.3-1.el7 BUILT: Fri Jul 22 05:29:13 CDT 2016 cmirror-2.02.161-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 sanlock-3.4.0-1.el7 BUILT: Fri Jun 10 11:41:03 CDT 2016 sanlock-lib-3.4.0-1.el7 BUILT: Fri Jun 10 11:41:03 CDT 2016 lvm2-lockd-2.02.161-3.el7 BUILT: Thu Jul 28 09:31:24 CDT 2016 This behavior is unwanted and odd - requiring explicit removal of an LV that spontaneously appears during an error. However, the fix is a bit more involved than can be justified at this stage in the release. I am moving this to 7.4. ran out of time to fix this unlikely bug. does not meet ex/bl criteria. pushing to 7.5 lvm2 will clear created spare LV in case creation of pool LV failed: https://www.redhat.com/archives/lvm-devel/2017-October/msg00091.html *** Bug 1353993 has been marked as a duplicate of this bug. *** Verified with latest rpms. attempt_oversized_thinpool_create: https://beaker.cluster-qe.lab.eng.brq.redhat.com/logs/2017/11/732/73262/237206/633844/TESTOUT.log attempt_oversized_cachepool_create: https://beaker.cluster-qe.lab.eng.brq.redhat.com/logs/2017/11/732/73261/237203/633835/TESTOUT.log 3.10.0-768.el7.x86_64 lvm2-2.02.176-2.el7 BUILT: Fri Nov 3 13:46:53 CET 2017 lvm2-libs-2.02.176-2.el7 BUILT: Fri Nov 3 13:46:53 CET 2017 lvm2-cluster-2.02.176-2.el7 BUILT: Fri Nov 3 13:46:53 CET 2017 device-mapper-1.02.145-2.el7 BUILT: Fri Nov 3 13:46:53 CET 2017 device-mapper-libs-1.02.145-2.el7 BUILT: Fri Nov 3 13:46:53 CET 2017 device-mapper-event-1.02.145-2.el7 BUILT: Fri Nov 3 13:46:53 CET 2017 device-mapper-event-libs-1.02.145-2.el7 BUILT: Fri Nov 3 13:46:53 CET 2017 device-mapper-persistent-data-0.7.3-2.el7 BUILT: Tue Oct 10 11:00:07 CEST 2017 cmirror-2.02.176-2.el7 BUILT: Fri Nov 3 13:46:53 CET 2017 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-2018:0853 |