Red Hat Bugzilla – Bug 1269117
logvol kickstart examples are contradictory
Last modified: 2016-01-20 08:03:31 EST
Section Number and Name:
Describe the issue:
--percent says it cant be used with size or grow. --grow does not mention this limitation and the examples at the bottom of the section include --grow --size and --percent which is incorrect as per the documentation
Suggestions for improvement:
under --grow state that it should not be used with --percent (I've tried this on a 7.1 install and whilst allowed the server grew the volume to fill the LV)
under the example useage have valid syntax, with 2 sections 1 with --grow and --size and another with --percent one just 1 section that is correct.
having just tested a kickstart using
logvol / --fstype="xfs" --percent=75 --name=lv_root --vgname=vg_master
I can confirm that works correctly
Reassigning all of my bugs to the new DPM Tomas Capek.
While investigating we found that the issue was somewhat different from what was reported. The actual behavior of --grow is that it will always attempt to fill all remaining space in the volume group (after all other volumes with statically defined sizes have been created), and it can be used with both --percent= and --size=.
The actual behavior is:
1. The logical volume is created with a size set by either the --size= or --percent= parameter.
2. If the --grow option is present, the logical volume will then expand to fill all remaining space within the volume group, unless
3. The --maxsize= option is also used on the same volume, placing a limit on how much the volume can grow instead of filling all remaining space in the volume group.
A fix has been posted to the guide and descriptions for --size=, --percent=, --grow and --maxsize= should now be clearer.
Update published at https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.html#sect-kickstart-commands
(scroll down or search for "logvol (optional)"