[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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
logvol /var --fstype=ext3 --name=var --vgname=vg1 --size=2048 --grow
logvol /tmp --fstype=ext3 --name=tmp --vgname=vg1 --size=4096 --grow
logvol /home --fstype=ext3 --name=home -vgname=vg1 --size=2048 --grow
logvol swap --fstype=swap --name=swap --vgname=vg1 --size=2048 --grow

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/ *
*                                                                     *

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]