Bug 683420 - Anaconda: kickstart doesn't correctly count space for LVM on top of RAID with --grow used
Summary: Anaconda: kickstart doesn't correctly count space for LVM on top of RAID with...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-09 11:46 UTC by Pavel Snajdr
Modified: 2012-11-26 22:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-09 15:16:13 UTC
Target Upstream Version:


Attachments (Terms of Use)
Kickstart used (1.22 KB, application/x-extension-cfg)
2011-03-09 11:46 UTC, Pavel Snajdr
no flags Details

Description Pavel Snajdr 2011-03-09 11:46:08 UTC
Created attachment 483170 [details]
Kickstart used

Description of problem:

When trying to install RHEL6 on a virtual machine (Virtual Box) with 4x 8GB hard drives, (or even tried on a physical machine with 4x 750GB drives)
using following scheme:
sda:
 256MB for raid1 for /boot
 [8GB-256M] for raid10 for LVM vgname=vgrp
sdb
 256MB for raid1 for /boot
 [8GB-256M] for raid10 for LVM vgname=vgrp
sdc
 256MB for raid1 for /boot
 [8GB-256M] for raid10 for LVM vgname=vgrp
sdd
 256MB for raid1 for /boot
 [8GB-256M] for raid10 for LVM vgname=vgrp
vgrp
 300MB swap
 the rest of the space for / ext4

It fails with Not enough free space for logical volume.

Tried with RHEL 6.0 and SL 6.0

Comment 2 Chris Lumens 2011-03-09 15:16:13 UTC
part --size=1 --grow is really not good syntax to use.  You need to give a minimum --size= that will actually work to hold data, not just use the smallest number you can think of.

Comment 3 Steven Roberts 2012-11-26 22:55:10 UTC
FYI, with RHEL6.3 at least this issue has been addressed.  not sure when between 6.0 and 6.3, but with 6.3 it is worked as expected now.

As for "just use the smallest number you can think of", please see the RHEL documents on the subject:

https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-kickstart2-options.html

https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html


from those Install guide docs you will see this:
part raid.11 --size=1 --grow --ondisk=sda  
part raid.12 --size=1 --grow --ondisk=sdb  
part raid.13 --size=1 --grow --ondisk=sdc

so the "size=1" is actually in the examples on how to do the RAID setup in kickstart.  and it makes it the simplest approach to do a consistent raid setup on varying hardware.


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