Create a VG from one or more initialized PVs.

Section: LVM Basics

Create a volume group

bash
bash
sudo vgcreate vgdata /dev/sdb1
Explanation

Create a VG from one or more initialized PVs.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing LVM Basics
Display volume group details
Verbose VG information including free space and metadata.
OpenIn sheetbashsame section
Initialize a physical volume
Prepare a partition or whole device for LVM use.
OpenIn sheetbashsame section
List physical volumes
Compact overview of LVM physical volumes.
OpenIn sheetbashsame section
Display physical volume details
Verbose physical volume information including UUID and extents.
OpenIn sheetbashsame section
List volume groups
Compact view of VGs, free extents, and sizes.
OpenIn sheetbashsame section
Create a logical volume by size
Allocate a fixed-size LV from a volume group.
OpenIn sheetbashsame section