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 626826 - Anaconda fails to grow a partition using a custom partition-include
Summary: Anaconda fails to grow a partition using a custom partition-include
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: doc-Migration_Guide
Version: 6.0
Hardware: All
OS: Linux
low
high
Target Milestone: rc
: ---
Assignee: Laura Bailey
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-24 14:12 UTC by Mathieu Chouquet-Stringer
Modified: 2013-02-05 23:55 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-24 22:30:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mathieu Chouquet-Stringer 2010-08-24 14:12:08 UTC
Description of problem:
My custom kickstart server creates the following /tmp/partition-include

clearpart --drives=sda,sdb --all --initlabel

part raid.01 --size=512 --ondisk=sda --asprimary
part raid.11 --size=512 --ondisk=sdb --asprimary

part raid.02 --size=40960 --ondisk=sda --asprimary
part raid.12 --size=40960 --ondisk=sdb --asprimary

part raid.03 --size=1 --grow --ondisk=sda --asprimary
part raid.13 --size=1 --grow --ondisk=sdb --asprimary

raid /boot      --fstype ext4 --level=RAID1 --device md0 raid.01 raid.11
raid pv.01      --level=RAID1 --device md1 raid.02 raid.12
raid pv.02      --level=RAID1 --device md2 raid.03 raid.13

volgroup vg_system pv.01
volgroup vg_local  pv.02

logvol /    --fstype ext4 --name=lv_root --vgname=vg_system --size=10240
logvol /tmp --fstype ext4 --name=lv_tmp  --vgname=vg_system --size=5120
logvol /var --fstype ext4 --name=lv_var  --vgname=vg_system --size=20480
logvol swap --fstype swap --name=lv_swap --vgname=vg_system --size=4096

logvol /export/home --fstype ext4 --vgname=vg_local --name=lv_export_home --size=2048
logvol /usr/product --fstype ext4 --vgname=vg_local --name=lv_usr_product  --size=5120
logvol /local/p0 --fstype ext4 --vgname=vg_local --name=lv_local_p0 --grow --size=1


Basically partitions raid.03 and raid.13 should grow to fill both disks but anaconda fails to do so and dies an exception:  DeviceError: ('new lv is too large to fit in free space', 'vg_local')

When I look at the logs I see vg_local is 0 MB...

The same setup works with RHEL 5...

Version-Release number of selected component (if applicable):
6.0 Beta 2

How reproducible:
Always

Please find anaconda debug info attached to this case.

Comment 2 Chris Lumens 2010-08-24 14:17:57 UTC
You can't use "--size=1 --grow" anymore.  You need to give those partitions a reasonable default size given that you are building multiple layers of things on top of them.  If you change that, does that cause this issue to go away?

Comment 3 Mathieu Chouquet-Stringer 2010-08-24 14:49:01 UTC
Duly noted, if I specify a reasonable default size, partitions are grown accordingly...  I guess it should be in the docs...

So yes, the issue goes away.

Comment 4 Scott Radvan 2010-08-24 22:30:51 UTC
added to migration guide in kickstart section


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