Pcornel
Storage · Hypervisor Storage › KVM Storage

LVM

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

Back to the Topic

Answer

LVM for KVM gives each VM disk its own logical volume as a raw block device, avoiding file-system overhead. Thin pools add snapshots and overcommit; shared VGs on SAN need cluster locking.

Remember

  • Raw block device without file system overhead.
  • Thin pools add snapshots.
  • Shared VGs need cluster locking.

First checks

  • virsh pool-info <lvm-pool> — LVM pool
  • lvs <vg> — volumes
  • virsh vol-create-as <pool> <name> 20G — create

Verify in this order

VM disk → LV → VG

Where it usually breaks

First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/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=4214

Confirmation

Confirm action

Continue?