Kickstart, partitioning, differing disk space

Shabazian, Chip chip.shabazian at bankofamerica.com
Mon Nov 9 19:04:22 UTC 2009


We have three  different partitioning schemes.  The kickstart figures
out how big the disk is, then uses one of three different schemes based
on the size.  However, if it's a VM, we automatically select the
smallest partitioning scheme


-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of John Oliver
Sent: Monday, November 09, 2009 10:52 AM
To: kickstart-list at redhat.com
Subject: Kickstart, partitioning, differing disk space

So far, I've been installing on physical servers that have ~500GB disk
space and on virtual machines that have 20GB.  I've been using two
different kickstarts:

# Partioning for physical servers
#logvol / --fstype ext3 --name=root --vgname=vg1 --size=500000
#logvol /var --fstype ext3 --name=var --vgname=vg1 --size=20480
#logvol /tmp --fstype ext3 --name=tmp --vgname=vg1 --size=8192
#logvol /usr --fstype ext3 --name=usr --vgname=vg1 --size=10240
#logvol /home --fstype ext3 --name=home --vgname=vg1 --size=20480
#logvol swap --fstype swap --name=swap --vgname=vg1 --size=8192

# Partitioning for 20GB VMs
#logvol / --fstype ext3 --name=root --vgname=vg1 --size 3072
#logvol /home --fstype ext3 --name=home --vgname=vg1 --size 2048
#logvol /var --fstype ext3 --name=var --vgname=vg1 --size=9000
#logvol /tmp --fstype ext3 --name=tmp --vgname=vg1 --size=4096
#logvol swap --fstype swap --name=swap --vgname=vg1 --size=2048

I'm trying to think of how I can have just one partitioning stanza that
would take any amount of disk space and partition it.  I'm working with:

# Test partitioning
logvol / --fstype=ext3 --name=root--vgname=vg1 --size=3072 --grow
--maxsize=500000
logvol /var --fstype=ext3 --name=var --vgname=vg1 --size=2048 --grow
--maxsize=20480
logvol /tmp --fstype=ext3 --name=tmp --vgname=vg1 --size=4096 --grow
--maxsize=8192
logvol /home --fstype=ext3 --name=home -vgname=vg1 --size=2048 --grow
--maxsize=20480
logvol swap --fstype=swap --name=swap --vgname=vg1 --size=2048 --grow
--maxsize=8192


I do not know yet if it will take all lines into consideration, or if it
will look at the first line, grow / to 20GB, and then say, "I'm done."

Is --percent about the only way I could do this?  That seems a little
messy.  Maybe combined with --maxsize?

Has anyone else slain this dragon?

-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ *
*                                                                     *
***********************************************************************

_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list




More information about the Kickstart-list mailing list