LVM and kickstarts ?

Gary Thomas gary at mlbassoc.com
Wed Mar 5 13:24:00 UTC 2008


John Summerfield wrote:
> Michael Gale wrote:
>> Hey,
>>
>>     Can anyone tell me why option 1 works and option 2 fails ?
> 
> What are you installing?
>>
>> It fails on trying to format my logical volume, because the mount point
>> does not exist (/dev/volgroup/logvol)
>>
>> It seems that with option 2, the partitions are created and LVM is setup
>> correctly. However the volgroup / logvolume was not made active, so my
>> /dev/volgroup/logvol did not exist.
>>
>> Running `lvm lvchange -a -y pathname` from with in the shell after
>> anaconda failed made the volgroup / logvol active. Which would allow the
>> format command to complete.
>>
>> Option 1:
>> zerombr yes
> In CentOS5, Anaconda complains (but continues) with that, and so my 
> question.
> 
>> clearpart --all --initlabel
>> part /boot --fstype ext3 --size=100
>> part pv.os --size=10000 --grow --maxsize=10000 --asprimary
>> volgroup os_volgroup01 pv.os
>> logvol swap --fstype swap --name=os_swap_logvol --vgname=os_volgroup01
>> --recommended
>> logvol / --fstype ext3 --name=os_root --vgname=os_volgroup01 --size=1024
>> --grow
>>
>> Option 2:
>> zerombr yes
>> clearpart --all --initlabel
>> part /boot --fstype ext3 --size=100
>> part swap --size=1000
>> part pv.os --size=10000 --grow --maxsize=10000 --asprimary
>> volgroup os_volgroup01 pv.os
>> logvol / --fstype ext3 --name=os_root --vgname=os_volgroup01 --size=1024
>> --grow
> 
> I'll let you compare, this works with CentOS5:
> zerombr
> part /boot --fstype "ext3" --size=100 --ondisk=hda
> part pv.6 --size=0 --grow --ondisk=hda
> volgroup VolGroup00 pv.6
> logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 
> --grow
> logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=512

This setup works on Fedor9 (alpha)

# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux --drives=sda
part /boot --fstype ext3 --size=200 --ondisk=sda
part pv.3 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.3
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 
--grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 
--grow --maxsize=512




More information about the Kickstart-list mailing list