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

Joe Landman landman at scalableinformatics.com
Thu Jul 31 10:26:54 EDT 2008


look at the RAID creation syntax ... I seem to remember that they try to 
keep it consistent with that.

Chris Dagdigian wrote:
> 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- 
> separated:
> 
>> volgroup VolGroup00 --pesize=32768 pv.4,pv.5
> 
> 
> Anyone have an answer or a link to better Kickstart docs?
> 
> 
> -Chris
> 
> 
> 
> 
> 
> _______________________________________________
> Bioclusters maillist  -  Bioclusters at bioinformatics.org
> http://www.bioinformatics.org/mailman/listinfo/bioclusters

-- 
Joseph Landman, Ph.D
Founder and CEO
Scalable Informatics LLC,
email: landman at scalableinformatics.com
web  : http://www.scalableinformatics.com
phone: +1 734 786 8423
fax  : +1 734 786 8452
cell : +1 734 612 4615




More information about the Bioclusters mailing list