Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Linux LVM Logical Volume Management Cheat Sheet

Linux LVM Logical Volume Management Cheat Sheet

Back to Operating Systems and CLI
Updated 2026-05-21
Next Topic: Linux Networking CLI Tools Cheat Sheet

LVM (Logical Volume Manager) is a device-mapper framework in the Linux kernel that decouples physical storage devices from the block devices presented to the OS, creating a flexible abstraction layer of Physical Volumes, Volume Groups, and Logical Volumes. It solves the classic problem of static partitioning by enabling online resize, multi-disk pooling, snapshots, thin provisioning, and RAID β€” all without rebooting or unmounting most filesystems. The critical mental model is the three-layer stack: raw disks become Physical Volumes (PVs), PVs are pooled into Volume Groups (VGs), and VGs are sliced into Logical Volumes (LVs) that act like ordinary block devices but with runtime flexibility unavailable to fixed partitions.

What This Cheat Sheet Covers

This topic spans 19 focused tables and 121 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Core Concepts and ArchitectureTable 2: Creating the LVM Stack β€” Basic WorkflowTable 3: Displaying LVM StateTable 4: Extending Volumes β€” Adding CapacityTable 5: Shrinking Volumes β€” Reducing CapacityTable 6: LVM Snapshots β€” Backups and RollbackTable 7: Thin Provisioning β€” Overcommit and Virtual PoolsTable 8: Moving Extents β€” Disk Replacement with pvmoveTable 9: LVM RAID β€” Mirroring and StripingTable 10: Filesystem Resize Reference by TypeTable 11: Swap on LVMTable 12: Encryption β€” LUKS on LVMTable 13: LVM Cache β€” SSD Acceleration with lvmcacheTable 14: Metadata Backup and RecoveryTable 15: VG Migration and Multi-Host OperationsTable 16: systemd, udev, and LVM Boot IntegrationTable 17: Common Pitfalls and GotchasTable 18: LVM vs ZFS vs Btrfs β€” Key ComparisonsTable 19: Scripted Provisioning Patterns

Table 1: Core Concepts and Architecture

LVM's power comes entirely from its three-layer abstraction. Understanding PV, VG, LV, and the extent model β€” before touching any command β€” is the prerequisite that prevents the most common mistakes.

ConceptExampleDescription
Physical Volume (PV)
/dev/sdb, /dev/sdb1, /dev/md0
β€’ A block device (disk, partition, RAID array, or loop device) initialized with an LVM header
β€’ the raw material for all LVM operations
Volume Group (VG)
vgcreate myvg /dev/sdb /dev/sdc
A pool of one or more PVs that forms a single unified storage namespace from which LVs are carved.
Logical Volume (LV)
/dev/myvg/data or /dev/mapper/myvg-data
β€’ A virtual block device carved from a VG
β€’ used like a normal partition (formatted, mounted, encrypted). Accessible at both path forms
Physical Extent (PE)
Default 4 MiB; set with vgcreate -s 8M
β€’ The smallest allocatable unit within a PV
β€’ all extents in a VG share the same size
β€’ LVs are built from contiguous or scattered PE allocations

More in Operating Systems and CLI

  • Linux File System Structure and FHS Cheat Sheet
  • Linux Networking CLI Tools Cheat Sheet
  • AWS CLI Cheat Sheet
  • GCP CLI Cheat Sheet
  • macOS Usage Cheat Sheet
  • systemd and Linux Service Management Cheat Sheet
View all 48 topics in Operating Systems and CLI