Kickstart, partitioning, differing disk space

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

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux