[CentOS] LVM and kickstarts ?

Mon Mar 3 21:06:52 UTC 2008
Michael Gale <michael.gale at pason.com>

Hey,

	Can anyone tell me why option 1 works and option 2 fails ? I know I 
need swap and such, however in trouble shooting this issue I trimmed 
down my config.

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
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 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


-- 
Michael Gale

Red Hat Certified Engineer
Network Administrator
Pason Systems Corp.

"It's not that I'm so smart, it's just that I stay with problems 
longer." - Albert Einstein