Created attachment 922486 [details] lvcreate -vvvv output Description of problem: If creation of thinpool requests a size that is slightly more than available, it fails to create the thinpool (which is expected) but leaves a new unwanted volume lvol0. Version-Release number of selected component (if applicable): lvm2-2.02.106-1.fc20.x86_64 How reproducible: always Steps to Reproduce: # my vg has only 1444 extents available lvcreate -T fedora_unused-4-144/mypool -l 1500 Actual results: Logical volume "lvol0" created Volume group "fedora_unused-4-144" has insufficient free space (1474 extents): 1500 required. Output of the same command with -vvvv attached. And the lvol0 is indeed there with size 8m. Expected results: If the command failed it shouldn't leave auxiliary volumes behind.
Reproduced this issue and will add a regression test case to the thin suite. It appears that you don't need just a "slightly" larger create attempt. I reproduced this with an attempt that was 5X the size of available space in the VG. [root@host-026 ~]# vgs VG #PV #LV #SN Attr VSize VFree VG 4 0 0 wz--n- 29.98g 29.98g [root@host-026 ~]# pvscan PV /dev/sda1 VG VG lvm2 [7.50 GiB / 7.50 GiB free] PV /dev/sdb1 VG VG lvm2 [7.50 GiB / 7.50 GiB free] PV /dev/sdc1 VG VG lvm2 [7.50 GiB / 7.50 GiB free] PV /dev/sdd1 VG VG lvm2 [7.50 GiB / 7.50 GiB free] [root@host-026 ~]# vgs VG #PV #LV #SN Attr VSize VFree VG 4 0 0 wz--n- 29.98g 29.98g [root@host-026 ~]# lvcreate -T VG/mypool -L 150G Logical volume "lvol0" created Volume group "VG" has insufficient free space (7657 extents): 38400 required. [root@host-026 ~]# echo $? 5 [root@host-026 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Devices lvol0 VG -wi------- 76.00m /dev/sda1(0) 2.6.32-485.el6.x86_64 lvm2-2.02.108-1.el6 BUILT: Thu Jul 24 10:29:50 CDT 2014 lvm2-libs-2.02.108-1.el6 BUILT: Thu Jul 24 10:29:50 CDT 2014 lvm2-cluster-2.02.108-1.el6 BUILT: Thu Jul 24 10:29:50 CDT 2014 udev-147-2.57.el6 BUILT: Thu Jul 24 08:48:47 CDT 2014 device-mapper-1.02.87-1.el6 BUILT: Thu Jul 24 10:29:50 CDT 2014 device-mapper-libs-1.02.87-1.el6 BUILT: Thu Jul 24 10:29:50 CDT 2014 device-mapper-event-1.02.87-1.el6 BUILT: Thu Jul 24 10:29:50 CDT 2014 device-mapper-event-libs-1.02.87-1.el6 BUILT: Thu Jul 24 10:29:50 CDT 2014 device-mapper-persistent-data-0.3.2-1.el6 BUILT: Fri Apr 4 08:43:06 CDT 2014 cmirror-2.02.108-1.el6 BUILT: Thu Jul 24 10:29:50 CDT 2014
This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.