Bug 500431
Summary: | lvcreate fails using --grow on small disks | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Srinivas Satyavarpu <srs> | ||||
Component: | anaconda | Assignee: | Radek Vykydal <rvykydal> | ||||
Status: | CLOSED ERRATA | QA Contact: | Martin Banas <mbanas> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 5.3 | CC: | atodorov, benl, borgan, charlieb-fedora-bugzilla, curtisz, cward, ddumas, dmair, jce, jgranado, jruemker, mbanas, rhbz, rjordan, rvykydal, srs, tao | ||||
Target Milestone: | rc | ||||||
Target Release: | 5.4 | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 233050 | Environment: | |||||
Last Closed: | 2009-09-02 09:52:16 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: | 233050 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Comment 2
Garrick James
2009-05-12 19:48:14 UTC
(In reply to comment #2) > When calculating the free space available for the size of a logical volume > configured with --grow, anaconda does not seem to use (free physical extents) * > (physical extent size) for the volume group. It appears that it uses the size > of the physical volume(s) directly when determining how much space is available > for the LV. Given a VG with one PV that is ever so slightly larger than a > whole number multiple of the PE size, anaconda will try to size the LV to be > one LE larger than is available in the VG. Specifically, this occurs if the > size of the PV is larger than a whole number multiple of the PE size and less > than (a whole number multiple of the PE size) + (the size of the LVM metadata > that gets written to the PV). This seems like perfect description the cause. The case is hard to reproduce, because it requires size of PV to be in the described range. We've met and fixed this case in RHEL 4.8 (commits 6c6a206bd8dfc6910fc4061274bd4f0544 and abe87a2085326af0e9e748b83e6de918d6126dee, and some before). Here is updates.img for rhel 5.3 with patch that should solve the issue: http://rvykydal.fedorapeople.org/updates.500431.img Created attachment 344161 [details]
patch included in updates.img from previous comment
Srini, did the patched image work for the customer? We'd really love to get some feedback before adding this.. Thank you for checking. Due to an emergency at the Customer's lead engineer's home. I was not able to connect with the customer last week. Hoping to get an update this week (Wednesday - 27th). The updates in the updates.img which is attached to this ticket fixed the issue. Thank you! -Garrick James Can you make sure that this fix makes it into the next possible release of RHEL 5? Thanks. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Should be fixed in version 11.1.2.183 of anaconda. See also bug 240554. ~~ Attention - RHEL 5.4 Beta Released! ~~ RHEL 5.4 Beta has been released! There should be a fix present in the Beta release that addresses this particular request. Please test and report back results here, at your earliest convenience. RHEL 5.4 General Availability release is just around the corner! If you encounter any issues while testing Beta, please describe the issues you have encountered and set the bug into NEED_INFO. If you encounter new issues, please clone this bug to open a new issue and request it be reviewed for inclusion in RHEL 5.4 or a later update, if it is not of urgent severity. Please do not flip the bug status to VERIFIED. Only post your verification results, and if available, update Verified field with the appropriate value. Questions can be posted to this bug or your customer or partner representative. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1306.html |