how size of partition is defined for kickstart installation

Latest response

Hi

I'm installing rhel 5.7 with kickstart with following params for partitions on sda drive (30GB):

clearpart --all --initlabel --linux
part /boot --fstype ext3 --size=150 --asprimary --ondisk=sda
part pv.1 --size=0 --grow --ondisk=sda
volgroup rootVG pv.1
logvol / --fstype ext3 --name=root --vgname=rootVG --size=11000 --grow
logvol /var --fstype ext3 --name=var --vgname=rootVG --size=12000 --grow --maxsize=20000
logvol swap --fstype swap --name=swap --vgname=rootVG --size=8192
logvol /tmp --fstype ext3 --name=tmp --vgname=rootVG --size=4000

I don't quite understand how the size of partitions is defined in such case. This is what I got after installation:

[root@myhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/rootVG-root
                      8.4G  6.0G  2.0G  76% /
/dev/mapper/rootVG-var
                      9.1G  3.0G  5.7G  35% /var
/dev/mapper/rootVG-tmp
                      3.8G   75M  3.6G   3% /tmp
/dev/sda1             145M   20M  118M  15% /boot

#swap size is exactly the same as defined in kickstart
[root@myhost ~]# cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/mapper/rootVG-swap                 partition       8388600 156     -1

It seems like --size param is interpreted by rhel as "I wish" instead of "I need" :)
Are there are hints how algorithm for granting space for partition works? Does it have some priorities (swap before other types and etc.) ?

Responses