Is the purpose of the PV. usage merely used to customize the initial size of some disk?
The part
command is used to create disk partitions. The various options allow you to specify the associated block device, the size of the partition, etc. By assigning a pv.<ID>
identifier, you are declaring that this partition will be an LVM "physical volume" (PV), and you can then use those identifiers when creating a volume group in your ks.cfg, e.g:
part pv.01 --size=100 --grow --ondisk=/dev/sda
part pv.02 --size=300 --grow --ondisk=/dev/sdb
volgroup vgsys pv.01 pv.02
How to specify the value of some PV ahead of time since itself would be "random" number?
You assign these identifiers in your Kickstart configuration file; they aren't randomly assigned nor do you need to know them "ahead of time". They only have meaning within the context of your Kickstart configuration.
You may want to read the documentation for the part
command as well as the documentation for the volgroup
command.