How to get kickstart to use existing logical volumes?

Robinson, Andrew W. Andrew.W.Robinson at mms.gov
Tue Dec 7 22:58:50 UTC 2004


I'm installing RHEL 3 EL on a server where I have already built the file
systems. Some of the file systems are on physical volumes and some are on
logical volumes. Apparently kickstart will not let me use the existing
logical volumes, or I haven't figured out the syntax to do so. Will
kickstart let me specify existing logical volumes? If so, how?

 

Had I build the file systems with kickstart, here's how it would have
looked:

 

clearpart -linux

part /boot --fstype ext3 --size 100 -ondisk sda

part swap --size 8196 --ondisk sda

part / --fstype ext3 --size 1 grow --ondisk sda

 

part pv.01 --size 1 --grow -ondisk sdb

volgroup vg01 pv.01

logvol /opt --vgname=vg01 --size=30720 --name=opt

logvol /var --vgname=vg01 --size=30720 --name=var

logvol /var/ftp/pub --vgname=vg01 --size=61440 --name=pub

 

 

Having built the file systems in advance, I tried this syntax:

 

clearpart --none

part /boot --onpart=sda2

part swap --onpart=sda3

part / --onpart=sda4

part /opt --onpart=/dev/vg01/opt

part /var --onpart=/dev/vg01/var

Part /var/ftp/pub --onpart=/dev/vg01/pub

 

The Kickstart failed, complaining about the /dev/vg01. It did not like plain
vg01 when I took off the /dev/. Any suggestions on what it might like?

 

Thanks.

 

Andrew Robinson

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20041207/6c23443e/attachment.htm>


More information about the Kickstart-list mailing list