Pcornel
Linux · LVM

Volume Group (VG)

Cheat sheet · https://pcornel.dk/topic.php?topic=2761

Back to the Topic

Answer

A volume group (VG) pools the space of one or more PVs; logical volumes are allocated from it.

Remember

vgs shows VFree. Extend with vgextend <vg> /dev/<newpv>. Avoid spanning a VG over disks without redundancy if losing one disk is unacceptable.

First checks

  • pvs — physical volumes
  • vgs — volume groups and free space
  • lvs -a -o +devices — logical volumes and their devices
  • lsblk — stack view

Verify in this order

PVs added → VG free extents → allocated to LVs

Where it usually breaks

First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2761

Confirmation

Confirm action

Continue?