Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<  83 of 594 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4389
Last update: 08-22-05
Issue:
How to create Logical Volume Manager (LVM) partitions using kickstart?
Resolution:
The following options are required under 'Disk Partition Information' section in ks.cfg file, for creating the Logical Volume Manager (LVM) partitions using kickstart.
 
#Disk partitioning information
part pv.<id> 
volgroup <name> <partition>
logvol <mountpoint> --vgname=<volume_group_name> --size=<size> --name=<name>


Note:
The options should be used in the sequence as they are mentioned. Physical Volume should be created first then Volume Group and then Logical Volume(s).

Example:
Two physical partitions should be created for Boot and Swap partitions and the rest of the space should be allocated using LVM.

PartitionSizeName
/boot150MB/boot
swap1GBswap
/8GBlv_root
/var4GBlv_var
/tmp2GBlv_tmp
/spareremaining spacelv_spare

Solution:
The following entries are required in ks.cfg file, as per the above requirements:

 
#Disk partitioning information
part /boot --fstype ext3 --size=150
part swap --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
Further Reading:


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<   83  of  594  >>