Linux Commands Helper
💬 Your AI-powered Linux assistant
vgcreate Command - Create a Volume Group
The vgcreate command is used to create a new volume group in the LVM (Logical Volume Manager) system.
Syntax
vgcreate [VolumeGroupName] [PhysicalVolume...]
Examples
vgcreate myvg /dev/sda1 /dev/sdb1
Create a volume group named myvg using two physical volumes.
Notes
- Requires root privileges.
- Physical volumes must be initialized with
pvcreate
first.