Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
in RHEL 7.0 lvm2-2.02.99-1.el7.x86_64
+++ This bug was initially created as a clone of Bug #812726 +++
Description of problem:
when invoking "lvcreate -l 100%FREE -T vg/thin-pool", lvm should allocate all the free PE to the thin pool ( 1 PE for metadata, others for data block ).
Version-Release number of selected component (if applicable):
How reproducible:
always
Steps:
# vgdisplay vg3
--- Volume group ---
VG Name vg3
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 1020.00 MiB
PE Size 4.00 MiB
Total PE 255
Alloc PE / Size 0 / 0
Free PE / Size 255 / 1020.00 MiB
VG UUID X8FHfz-ezqW-FIaW-A0Dx-uPnX-bUPl-k3Meez
#lvcreate -l 100%FREE -T vg3/pool
Rounding up size to full physical extent 4.00 MiB
Insufficient suitable allocatable extents for logical volume pool: 255 more required
Actual results:
"lvcreate -l 100%FREE -T vg3/pool" return error
Expected results:
should create 255 PE to the thin pool and 254 PE as the data block.
Additional info:
--- Additional comment from Xiaowei Li on 2012-04-16 02:01:07 EDT ---
The 100%FREE option works well to create a liner volume so should also work well to create the thin pool.
[root@laker ~]# lvcreate -l 100%FREE -n vg3/lv
Logical volume "lv" created
[root@laker ~]# lvs vg3
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
lv vg3 -wi-a--- 1020.00m
--- Additional comment from Xiaowei Li on 2012-04-16 02:03:42 EDT ---
please ignore '( 1 PE for metadata, others for data block )' in 'DESCRIPTION' field.
--- Additional comment from Alasdair Kergon on 2012-04-16 11:39:09 EDT ---
Yes, we ought to fix this one.
--- Additional comment from on 2012-09-25 18:15:37 EDT ---
Is this still an issue in F18 Alpha1?
--- Additional comment from Xiaowei Li on 2012-09-27 03:03:59 EDT ---
(In reply to comment #4)
> Is this still an issue in F18 Alpha1?
Yes, it still exists in lvm2-2.02.97-1.fc18.x86_64
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.
The comment above is incorrect. The correct version is bellow.
I'm sorry for any inconvenience.
---------------------------------------------------------------
This request was NOT resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you need
to escalate this bug.
Comment 11Jonathan Earl Brassow
2015-04-09 23:22:36 UTC
Works for me already on 7.1. Tried 100%{FREE,VG,PVS}. FREE with already allocated space too, PVS with and witout pvs specified on command line.
lvm2-2.02.115-3.el7.x86_64