LVM architecture

LVM provides flexible storage management.

  • PV — a physical disk or partition prepared for LVM.
  • VG — a volume group combining one or more PVs.
  • LV — a logical volume allocated from a VG.
pvs
vgs
lvs
lsblk
df -h

Commands that write to disks, such as pvcreate, vgcreate and lvcreate, should only be tested on a lab disk or virtual machine. Choosing the wrong disk can destroy data.

Practice

Add a virtual disk in VirtualBox and compare the output of lsblk, pvs, vgs and lvs.