Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 203095 - Partition sanity check failure in kickstart with LVM
Partition sanity check failure in kickstart with LVM
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Anaconda Maintenance Team
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2006-08-18 10:06 EDT by Andrew Kroeger
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-08-18 10:18:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andrew Kroeger 2006-08-18 10:06:35 EDT
Description of problem:
After modifying a kickstart file to create LVM PV's, VG's, and LV's, I received
an error in anaconda ("Logical volume size must be larger than the volume
group's physical extent size.").  I used a partition setup that works
successfully on FC5:

part /boot --asprimary --fstype=ext3 --size=96 --ondisk=sda
part pv.01 --asprimary --size=512 --grow --ondisk=sda
volgroup vg.01 pv.01
logvol swap --fstype=swap --size=512 --vgname=vg.01 --name=swap
logvol / --fstype=ext3 --grow --size=1 --vgname=vg.01 --name=root

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

How reproducible:

Steps to Reproduce:
1. Generate a kickstart file (used system-config-kickstart-2.6.13-1)
2. Manually change partitioning using a setup that worked in FC5
3. Start a kickstart install

Actual results:
Receive the "Logical volume size must be larger than the volume group's physical
extent size." error.

Expected results:
Successful partitioning and kickstart installation continues.

Additional info:
The problem appears to be that the "--grow" option is not considered when the
sanity checks are performed.  After checking the anaconda source, I found the
error message on line 924 of partRequests.py.  The logic in that particular test
checks that the supplied size (*1024) is not less than the default LVM PE size
(32768).  I had followed the basic output of system-config-kickstart, which sets
"--size=1" when the "--grow" option is used.  Once I saw the logic in the test
that was failing, I changed to "--size=512" (along with the "--grow" option) in
the kickstart file, and the installation proceeded as expected.
Comment 1 Chris Lumens 2006-08-18 10:18:51 EDT
Thanks for the report.  This will be fixed in the next build of anaconda.

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