[CentOS] partition problems in kickstart

Wed Mar 22 21:32:56 UTC 2006
Robert Moskowitz <rgm at htt-consult.com>

I fought with this for a day, and now am crying for help....

The goal is 5 partitions:  boot, notebook suspend, / , /home. and 
swap.    So I have to use LVM.

Here are my commands:


#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel --drives=hda
#Disk partitioning information
part  pv.1 --size 1058 --noformat
part /boot --fstype ext3 --size 100 --ondisk=hda
part swap --start=4603  --end=4864
part pv.6 --size=0 --grow --ondisk=hda
volgroup VolGroup00 --pesize=32768 pv.6
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=10240
logvol /home --fstype ext3 --name=home --vgname=VolGroup00 --size=25600 --grow

=================================================

I get an error of lvm cann't create the volgroup.  The partitions were created:


hda1            4603    4864    2104515         82      linux swap
hda2    *       1       13      104391          83      linux
hda3            14      148     1084387+        83      linux
hda4            149     4602    35776755        8e      linux LVM

Note above that for the suspend partition, part requires I have a 
fstype and mount, so I am 'dummying them up and will edit the 
partition table later.  Then run lphdisk.

I always can just run disk druid to create the partitions if in the 
end I can't get this working.   Well I have learned a lot!

Oh, at first I did not have the -asprimary options, but the LVM 
partition was created as an extended partition and things looked a 
little strange.  An extended partition with a LVM partition within it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20060322/2dae9a24/attachment-0003.html>