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.
Bug 1070373 - LVM: Allow users to specify approximate size when creating an LV
Summary: LVM: Allow users to specify approximate size when creating an LV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jonathan Earl Brassow
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: BrassowRHEL7Bugs
TreeView+ depends on / blocked
 
Reported: 2014-02-26 16:56 UTC by Jonathan Earl Brassow
Modified: 2021-09-03 12:36 UTC (History)
10 users (show)

Fixed In Version: lvm2-2.02.125-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 12:45:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2147 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2015-11-19 11:11:07 UTC

Description Jonathan Earl Brassow 2014-02-26 16:56:35 UTC
It is difficult to account for all the space that an LV might need when that LV uses metadata LVs.  Examples of this include thin, cache, raid, and mirror metadata areas.  Currently, we allow the user to specify the amount of space that is ultimately available to the user.  However, it would be useful to either allow this to be approximate or allow the user to specify the amount of space available total allocation - a number that would include any metadata areas.

Comment 3 RHEL Program Management 2014-03-22 05:56:25 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 Jonathan Earl Brassow 2015-04-11 17:03:59 UTC
This feature is already available via the '-l X%FREE' method of specifying space.

From lvcreate(8):
"When expressed  as  a  percentage,
the  number  is  treated  as  an approximate upper limit for the
total number of physical  extents  to  be  allocated  (including
extents used by any mirrors, for example)."

Comment 11 Roman Bednář 2015-10-05 13:22:28 UTC
Marking as verified.


Tested on:

3.10.0-320.el7.x86_64

lvm2-2.02.130-2.el7    BUILT: Tue Sep 15 14:15:40 CEST 2015
lvm2-libs-2.02.130-2.el7    BUILT: Tue Sep 15 14:15:40 CEST 2015
lvm2-cluster-2.02.130-2.el7    BUILT: Tue Sep 15 14:15:40 CEST 2015
device-mapper-1.02.107-2.el7    BUILT: Tue Sep 15 14:15:40 CEST 2015
device-mapper-libs-1.02.107-2.el7    BUILT: Tue Sep 15 14:15:40 CEST 2015
device-mapper-event-1.02.107-2.el7    BUILT: Tue Sep 15 14:15:40 CEST 2015
device-mapper-event-libs-1.02.107-2.el7    BUILT: Tue Sep 15 14:15:40 CEST 2015
device-mapper-persistent-data-0.5.5-1.el7    BUILT: Thu Aug 13 16:58:10 CEST 2015
cmirror-2.02.130-2.el7    BUILT: Tue Sep 15 14:15:40 CEST 2015

Users can create LVs with approximate size using -lX%FREE option. This also considers 
the space needed by metadata. Doing so can however cause unpredictable results when used 
in combination with mirror, raid1,4,5 and stripe volumes.

New bug regarding this issue has been created: 
https://bugzilla.redhat.com/show_bug.cgi?id=1268832

Comment 12 errata-xmlrpc 2015-11-19 12:45:20 UTC
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://rhn.redhat.com/errata/RHBA-2015-2147.html


Note You need to log in before you can comment on or make changes to this bug.