Bug 663647
Summary: | [RFE] Support allocation of space to be left unused in a LVM volume group | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | J.H.M. Dassen (Ray) <rdassen> | |
Component: | anaconda | Assignee: | David Lehman <dlehman> | |
Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 6.0 | CC: | agk, atodorov, bgollahe, dcleal, jruemker, jwest, mganisin, mkhusid, rbinkhor, rwilliam | |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged | |
Target Release: | 6.2 | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | anaconda-13.21.155-1 | Doc Type: | Enhancement | |
Doc Text: |
Change: Two new options were added to the kickstart volgroup command to specify initially unused space in megabytes or as a percentage of the total volume group size. These options are only valid for volume groups being created during installation.
Result: Users can effectively reserve space in a new volume group for snapshots while still using the --grow option for logical volumes within the same volume group.
|
Story Points: | --- | |
Clone Of: | ||||
: | 790457 (view as bug list) | Environment: | ||
Last Closed: | 2012-06-20 12:35:12 UTC | Type: | --- | |
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: | ||||
Bug Blocks: | 607248, 658636, 703208, 750638, 756082, 761078, 790457, 873441, 874112 |
Comment 1
J.H.M. Dassen (Ray)
2011-04-18 14:38:33 UTC
Q. What is the nature and description of the request? (please provide any additional details) Provide a mechanism to reserve an absolute minimum amount of space to be left in an LVM volume group from a RHEL kickstart. Calculations for growing logical volumes should be based on (TotalSpace - ReservedSpace). -- We're looking into using the LVM merge support in RHEL6 to provide a rollback facility for upgrades, so a way to explicitly reserve space in a volume group inside kickstart would be very useful. As a workaround, we may be able to allocate an LV and then remove it after to guarantee a minimum allocation of space, but it's a bit hacky. We use the kickstart grow option for LVs with absolute min and max sizes, so this seems to be the only way to guarantee availability on disks that are smaller than the max size. I see this is already filed as #663647 (private), so I'd like to request the same. -- Q. Why do you need this? (List the business requirements here) It is planned to use LVM snapshots to provide upgrade rollback functionality. When using LV growing from kickstart to support systems with different size disks, guaranteeing reserved space isn't easily possible. Q How would you like to achieve this? (List the functional requirements here) Perhaps a command similar to "logvol" that reserves space instead of allocating it. Otherwise options added to "volgroup" to reserve a minimum absolute or percentage value. After using it, the volume group would be left with unallocated space. Q.How quickly does this need resolved? (desired target release) RHEL 6.2, ideally 6.1. Q. Would you be able to assist in testing this functionality if implemented? This should be possible based on the GPS allocation at the customer over the next few months. Here's an idea for an implementation that I think will give them what they want. Instead of introducing any new kickstart commands, we introduce a new filesystem type called "Free" or "None", or "Unallocated", or whatever. Then you can use the existing part/logvol/raid commands with all their options for sizing but instead of passing --fstype=ext4, you pass --fstype=free. This could also give you the capability to specify which disk you want the freespace on (--ondisk), the ability to make it grow or use a certain percent, and so forth. At first guess, this doesn't seem much more complicated than adding an additional FS subclass whose action methods are pass throughs. I'm sure there'll be more to it than that, but not too much. It also doesn't require making any pykickstart changes. Would your suggestion mean that no partition or LV is created, rather than it simply being empty? If so, then that makes sense to me and I'd suggest naming it "unallocated" to ensure there's no ambiguity between being empty/unformatted and not being created. FWIW a *very* easy workaround would be to create an LV to lock the space you want to reserve (create it as swap to avoid having to edit /etc/fstab) and then remove it in %post. If you use autopart, however, this option is not valid. Tested with 0329.0 tree. See kickstart results here: https://bugzilla.redhat.com/show_bug.cgi?id=790457#c2 Manual assignment of free space is not possible - you can't specify how much free space to reserve when creating the VG. You can however, not consume all of it. Moving to VERIFIED. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Change: Two new options were added to the kickstart volgroup command to specify initially unused space in megabytes or as a percentage of the total volume group size. These options are only valid for volume groups being created during installation. Result: Users can effectively reserve space in a new volume group for snapshots while still using the --grow option for logical volumes within the same volume group. 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. http://rhn.redhat.com/errata/RHBA-2012-0782.html |