Discussion:
[Bioclusters] silly Kickstart/LVM syntax question (volgroup creation using 2 PVs ...)
Chris Dagdigian
2008-07-31 13:29:32 UTC
Permalink
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 ...
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
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"
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?


-Chris
Robin, Robin
2008-07-31 13:53:39 UTC
Permalink
Hmm..

It's just an idea. I did not try this myself. I think you may need a
separate line for this.

volgroup VolGroup00 --pesize=32768 pv.4
volgroup VolGroup00 --pesize=32768 pv.5 --useexisting
OR
volgroup VolGroup00 --pesize=32768 pv.5 --noformat


Robin
Post by Chris Dagdigian
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 ...
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
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.
"How to pass two pv devices to the volgroup command"
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?
-Chris
_______________________________________________
Bioclusters maillist - Bioclusters at bioinformatics.org
http://www.bioinformatics.org/mailman/listinfo/bioclusters
Joe Landman
2008-07-31 14:26:54 UTC
Permalink
look at the RAID creation syntax ... I seem to remember that they try to
keep it consistent with that.
Post by Chris Dagdigian
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 ...
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
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.
"How to pass two pv devices to the volgroup command"
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?
-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
Loading...