LVM (Logical Volume Manager) - vgcreate command (create a volume group)
by
Jeremy Canfield |
Updated: May 15 2021
| LVM (Logical Volume Manager) articles
The vgcreate command can be used to create an LVM volume group. In this example, physical volumes /dev/sdb1 and /dev/sdc1 are added to a volume group named myVG. This assumes that both /dev/sdb1 and /dev/sdc1 have been set up as LVM physical volumes.
~]# vgcreate myVG /dev/sdb1 /dev/sdc1
The vgdisplay command can be used to verify the LVM volume group was created.
--- Volume group ---
VG Name vg001
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <15.51 GiB
PE Size 4.00 MiB
Total PE 3970
Alloc PE / Size 3960 / <15.47 GiB
Free PE / Size 10 / 40.00 MiB
VG UUID lgHh9m-9iMP-8ltU-2cxz-Y4wL-uwG0-EHiGFr
Next, create a logical volume.
Did you find this article helpful?
If so, consider buying me a coffee over at