Search code examples
linuxpartitionforeman

How to automatically allocate the rest of free space to partition?


I have a question related to the configuration of a partition-table in "Foreman". As you can see in the screenshot below, I allocate 200 GB of free space to the /-Directory.

enter image description here

The problem: how can I allocate the rest of free space to this partition? Your answer would really help me out... I'm looking forward!

Thanks and best regards,


Solution

  • You can use a combination of --grow and --maxsize

    logvol / --size=1 --grow --name=lv_root --vgname=vg00
    

    or --percent

    logvol / --percent=100 --name=lv_root --vgname=vg00
    

    Option --percent can not be used together with the --size and --grow options.