Bug 238969 - Kickstart LVM partitioning fails when using --grow
Summary: Kickstart LVM partitioning fails when using --grow
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: anaconda   
(Show other bugs)
Version: 5.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Chris Lumens
QA Contact:
Keywords: Reopened
Depends On:
TreeView+ depends on / blocked
Reported: 2007-05-04 09:08 UTC by Janne Blomqvist
Modified: 2008-09-04 06:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-05 16:43:07 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Bugzilla 224635 None None None Never

Description Janne Blomqvist 2007-05-04 09:08:56 UTC
Description of problem:

With a kickstart partitioning section like

clearpart --all --initlabel
part /boot --fstype=ext3 --size=100 --asprimary
part pv.01  --size=1 --grow
volgroup vg01 pv.01
logvol / --vgname=vg01 --fstype=ext3 --size=15000 --name=rootLV
logvol swap --vgname=vg01 --fstype=swap --recommended --name=swapLV
logvol /tmp --vgname=vg01 --fstype=ext3 --size=5000 --name=tmpLV
logvol /scratch --vgname=vg01 --fstype=ext3 --size=1 --grow  --name=scratchLV

the kickstart installation fails. During the partitioning stage anaconda throws
an exception
"lvcreate failed for swapLV", and the installation is
aborted. Swithing to another VT and looking at the LV:s that anaconda
has created, it seems that the problem is that the scratchLV has been
created before swapLV, and due to the --grow option it grows to fill
all the space, without leaving enough space left for swapLV. Changing
the kickstart file by setting a fixed size for scratchLV and removing
--grow makes the the kickstart succeed.

This is all on a "normal" desktop computer with a single SATA drive.

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

RHEL 5, i386. Sorry, don't know the anaconda version number.

How reproducible:

Fails on RHEL5, the same partitioning section used to work on RHEL4.

Additional info:

See the thread I started at

Unfortunately that thread sort of petered out without any conclusion.

Comment 1 Janne Blomqvist 2007-05-04 09:10:59 UTC
I forgot to mention, might be related to fedora bug 224635,

Comment 2 Chris Lumens 2007-05-07 17:02:46 UTC
I'm not quite sure how, but it does appear that Peter's fix for 224635 takes
care of this bug as well.  This will be fixed in the next release of RHEL. 
However if you need this fix in an update release of RHEL5, please talk to your
support representative who will raise it through the appropriate channels. 
Thanks for the bug report.

Comment 3 Don Vanco 2008-02-05 12:23:37 UTC
Sory Chris, I'm having a hard time with a couple things -
- the severity - this KILLS kickstart installs in any environment where your
disks aren't identical.  I now have to precisely define every disk profile or
I'm screwed.  In a production deployment environment this is a CRITICAL
functionality, deserving of something more than a "medium" severity
- Red Hat beats users over the head about reading the release notes - here's a

Red Hat owes me 4 hours pay.

Additional search terms for those being brow-beaten with this issue:
insufficient free extents

Comment 4 Chris Lumens 2008-02-05 16:43:07 UTC
Sorry you are experiencing this problem.  If you can please test out Fedora 9,
you can help us to determine whether or not this issue is truly fixed, and we
can make sure that it does not occur in RHEL6.  However, bugzilla is not a
support tool.  If you require this fix in an update release of RHEL5, you'll
need to raise it through a support representative who will help to make sure it
follows the correct procedure.  While this is a bit complicated, it helps us to
control the quantity of stuff in update releases and makes sure we don't
overwhelm our development and QA teams.  Thanks for your consideration.

Comment 5 David Juran 2008-09-04 06:56:35 UTC
I know it's not pretty, but you probably could in most cases work around this issue by initially createting the LV with a fixed minimal size and then in the %post section run lvextend.

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