Product SiteDocumentation Site

A.2.13. volgroup (optional) - Create LVM Volume Group

Creates a Logical Volume Management (LVM) volume group.
volgroup name partition [options]

Important

Do not use the dash (-) character in logical volume and volume group names when installing Fedora using Kickstart. If this character is used, the installation will finish normally, but the /dev/mapper/ directory will list these volumes and volume groups with every dash doubled. For example, a volume group named volgrp-01 containing a logical volume named logvol-01 will be listed as /dev/mapper/volgrp--01-logvol--01.
This limitation only applies to newly created logical volume and volume group names. If you are reusing existing ones using the --noformat or --noformat option, their names will not be changed.
For a detailed partitioning example including volgroup, see Section A.15.1, “Advanced Partitioning Example”.
--noformat
Use an existing volume group and do not format it.
--useexisting
Use an existing volume group and reformat it.
--pesize=
Set the size of the physical extents. The default size for Kickstart installations is 4 MiB.
--reserved-space=
Specify an amount of space to leave unused in a volume group in megabytes. Applicable only to newly created volume groups.
--reserved-percent=
Specify a percentage of total volume group space to leave unused. Applicable only to newly created volume groups.
Create one or more partitions first using Section A.2.10, “part (required) - Create Physical Partition”, create the logical volume group (Section A.2.13, “volgroup (optional) - Create LVM Volume Group”), and then create logical volumes. For example:
part pv.01 --size 3000
volgroup myvg pv.01
logvol / --vgname=myvg --size=2000 --name=rootvol