How do I create a logical volume management (LVM) partition using kickstart?

  
 

If you use kickstart to create a logical volume management (LVM) partition, add the option to the "Disk Partition Information" section of the ks.cfg file:

#Disk partitioning informationpart pv.<id> volgroup <name> <partition> logvol <mountpoint> –vgname=<volume_group_name> –size=<size> –name=<name>

Note:

The options mentioned above are in order. The physical volume will be created first, followed by the volume group and the logical volume.

Instance:

Create two physical partitions for the Boot and Swap partitions respectively, and the remaining space for LVM.

Workaround: Add the following lines to the ks.cfg file as per the above requirements:

#Disk partitioning information part /boot –fstype ext3 –size=150 part swap &ndash ;size=1024 part pv.01 –size=1 –grow volgroup vg_root pv.01 logvol /–vgname=vg_root –size=8192 –name=lv_root logvol /var –vgname=vg_root –size= 4096 –name=lv_var logvol /tmp –vgname=vg_root –size=2048 –name=lv_tmp logvol /spare –vgname=vg_root –size=1 –grow –name=lv_spare

Copyright © Windows knowledge All Rights Reserved