vgcreate
Create LVM volume groups
TLDR
Create volume group with single device
$ sudo vgcreate volume_group /dev/sda1
Create with multiple devices$ sudo vgcreate volume_group /dev/sda1 /dev/sdb1
SYNOPSIS
vgcreate [OPTIONS] VolumeGroupName PhysicalVolume...
DESCRIPTION
vgcreate creates a new volume group by combining one or more physical volumes. Volume groups are the storage pools from which logical volumes are allocated, providing flexible storage management.
PARAMETERS
-s, --physicalextentsize size
Physical extent size for the volume group-p, --maxphysicalvolumes count
Maximum number of physical volumes-l, --maxlogicalvolumes count
Maximum number of logical volumes-A, --autobackup y|n
Automatically backup metadata--clustered y|n
Create a clustered volume group
CAVEATS
Physical volumes must be initialized with pvcreate first. Volume group names must be unique on the system. Adding devices to a volume group creates a single storage pool for logical volume creation.
HISTORY
vgcreate is part of LVM2, the Linux Logical Volume Manager.
