h1

create Logical Volume Manager (LVM) partitions using kickstart

June 3, 2006

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.

Partition Size Name
/boot 150MB /boot
swap 1GB swap
/ 8GB lv_root
/var 4GB lv_var
/tmp 2GB lv_tmp
/spare remaining space lv_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:

The information provided in this document is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.

© 2003-2006 Red Hat, Inc. All rights reserved. This article is made available for copying and use under the Open Publication License, v1.0 which may be found at http://www.opencontent.org/openpub/.

About these ads

One comment

  1. hi is it possible to configure reiserfs on kickstart?



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: