[Bioclusters] silly Kickstart/LVM syntax question (volgroup creation using 2 PVs ...)

Chris Dagdigian dag at sonsorol.org
Thu Jul 31 09:29:32 EDT 2008

Hi folks,

I'm reverse-engineering an anaconda-ks.cfg file to add a 2nd 500Gb  
disk into the standard CentOS 5 VolGroup00 LVM volume that holds the  
root "/" filesystem and I can't seem to find explicit documentation  
for the "volgroup" command in RHEL Kickstart. The online kickstart  
documentation does not fully document the usage syntax for the  
volgroup command ...

This is the partition scheme from the kickstart file:

> clearpart --all --drives=sda,sdb
> part /boot --fstype ext3 --size=100 --ondisk=sda
> part swap --size=4096 --ondisk=sda
> part swap --size=4096 --ondisk=sdb
> part pv.4 --size=0 --grow --ondisk=sda
> part pv.5 --size=0 --grow --ondisk=sdb
> volgroup VolGroup00 --pesize=32768 pv.4 pv.5
> logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 -- 
> size=1024 --grow

The only thing I've added to the kickstart file is:

> part pv.5 --size=0 --grow --ondisk=sdb

... and changing the volgroup command so that the new "pv.5" physical  
volume is added into the VolGroup00 volume group.

I'm writing this email because the trial-and-error process for  
Kickstart in this particular environment is very time-consuming. If I  
can get the syntax correct the first time it will save lots and lots  
of time.

My question comes down to this:

"How to pass two pv devices to the volgroup command"

My guess is that this is probably correct:

> volgroup VolGroup00 --pesize=32768 pv.4 pv.5

... but I'm also thinking that perhaps multiple PVs need to be comma- 

> volgroup VolGroup00 --pesize=32768 pv.4,pv.5

Anyone have an answer or a link to better Kickstart docs?


More information about the Bioclusters mailing list