volgroup
The volgroup Kickstart command is optional. It creates a Logical Volume Manager (LVM) group.
- Syntax
-
volgroup name [OPTIONS] [partition*] - Mandatory options
-
- name - Name of the new volume group.
- Options
-
- partition - Physical volume partitions to use as backing storage for the volume group. At least one partition has to be specified when creating a new volume group.
--noformat- Use an existing volume group and do not format it.--useexisting- Use an existing volume group and reformat it. If you use this option, do not specify a partition. For example:volgroup rhel00 --useexisting --noformat--pesize=- Set the size of the volume group’s physical extents in KiB. The default value is 4096 (4 MiB), and the minimum value is 1024 (1 MiB).--reserved-space=- Specify an amount of space to leave unused in a volume group in MiB. 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.
- Notes
-
- Create the partition first, then create the logical volume group, and then create the logical volume. For example:
part pv.01 --size 10000 volgroup my_volgrp pv.01 logvol / --vgname=my_volgrp --size=2000 --name=root - Do not use the dash (
-) character in logical volume and volume group names when installing Red Hat Enterprise Linux by using Kickstart. If this character is used, the installation finishes normally, but the/dev/mapper/directory will list these volumes and volume groups with every dash doubled. For example, a volume group namedvolgrp-01containing a logical volume namedlogvol-01will 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 by using the
--noformatoption, their names will not be changed.
- Create the partition first, then create the logical volume group, and then create the logical volume. For example: