Chris Dagdigian
2008-07-31 13:29:32 UTC
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 ...
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"
-Chris
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" physicalpart /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
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