Bug 233050
Summary: | lvcreate fails using --grow on small disks | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | jce | ||||||
Component: | anaconda | Assignee: | Radek Vykydal <rvykydal> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Alexander Todorov <atodorov> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4.3 | CC: | atodorov, benl, jce, jgranado, jruemker, rjordan, srs, tao | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 500431 (view as bug list) | Environment: | |||||||
Last Closed: | 2009-05-18 20:16:57 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: | 500431 | ||||||||
Attachments: |
|
Description
jce
2007-03-20 03:03:00 UTC
I can attest that this bug still exists in the RHEL 5 i386 installer. I too am using a virtual machine (VMWare Workstation 5) with an 8.5 GB hard disk. What's funny is that the same kickstart worked on RHEL 4.5. Here's the relevant section of my kickstart: clearpart --all part /boot --size=100 part swap --recommended part pv.01 --size=1 --grow volgroup clipvg pv.01 logvol /var --vgname=clipvg --size=1000 --name=var logvol /home --vgname=clipvg --size=1000 --name=home logvol / --vgname=clipvg --size=1 --name=root --grow Here is the output from anaconda when it fails: 10:07:11 INFO : moving (1) to step enablefilesystems 10:07:13 INFO : Running kickstart %%traceback script(s) 10:07:13 INFO : All kickstart %%traceback script(s) have been run 10:07:13 CRITICAL: Traceback (most recent call first): File "/usr/lib/anaconda/fsset.py", line 2418, in setupDevice raise SystemError, "lvcreate failed for %s" %(self.name,) File "/usr/lib/anaconda/fsset.py", line 1711, in createLogicalVolumes entry.device.setupDevice(chroot, vgdevice = vg) File "/usr/lib/anaconda/packages.py", line 148, in turnOnFilesystems anaconda.id.fsset.createLogicalVolumes(anaconda.rootPath) File "/usr/lib/anaconda/dispatch.py", line 201, in moveStep rc = stepFunc(self.anaconda) File "/usr/lib/anaconda/dispatch.py", line 124, in gotoNext self.moveStep() File "/usr/lib/anaconda/text.py", line 588, in run anaconda.dispatch.gotoNext() File "/usr/bin/anaconda", line 970, in ? anaconda.intf.run(anaconda) SystemError: lvcreate failed for var Switching to the shell and running "lvm lvdisplay" shows that "home" and "root" were created, but not "var". For now, a workaround is to make your --size values multiples of the physical extent size. So instead of 500, use 512. Instead of 1000, use 1024. This is due to a bug in our LVM handling where we don't take into account the extra physical extent required when the LVM tools round these sizes up. It looks pretty tough to fix, so it might take a while to get sorted out. 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. Fixed with commit 299e3166db7a1b00a434abeff8f9c9ebd6b2cac7. Should be included in 10.1.1.92. Backport of following commits from rhel5: commit cc9d0f4e57b11a37fc5d33d0374509e43a97840c commit 8b4c702d0c2c6130c5263a4944405efa1301ced9 commit 4f9c6e49d113a88a28c55c51bb5eab6ad756612b commit a68ab7d2823836ee90171cf419864e248ad99ce7 commit 4aa9ca1c35b867fa5a4d94c41591700ca7ab5edb (5.3 bug #415871) commit 08233b0c42f8b453ff7d8bde03c9adc57d92d7ed (5.3 bug #463780) Tested with reproducer from comment #1 and reproducers from bug #415871 and bug #463780 which are the last two commits of the list above. Also fixes reproducer in bug #222209 which is probably duplicate of this bug. verified with anaconda-10.1.1.96-1 and reproducer from comment #0 on 8.5GB disk with Xen/PV guest. *** Bug 222209 has been marked as a duplicate of this bug. *** 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-0978.html |