Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

LVM · Linux Storage

Direct answer

LVM (Logical Volume Manager) groups physical volumes into volume groups and carves them into logical volumes that can be resized, snapshotted or moved online, managed with pvs, vgs and lvs.

When to use this

Use this when creating, extending or snapshotting Linux logical volumes.

First 30 seconds

1. LVM on Linux: PV → VG → LV.

2. Online resize, snapshots, thin pools, cache, RAID LVs.

3. Filters for multipath.

4. Metadata backups automatic.

5. Activate with vgchange.

Operational verification

PV → VG → LV → filesystem

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Snapshots left in place until they fill and become invalid.
  • Growing the LV but not the file system (use lvextend -r).
  • Shrinking XFS (not possible) or shrinking ext4 without unmounting first.
  • Thin pools with no monitoring — when full, writes fail. Enable thin_pool_autoextend_threshold in lvm.conf.
Platform / version applicability
Linux Storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformLinux Storage
Key commandpvs ; vgs ; lvs
Scope / prerequisiteUse this when creating, extending or snapshotting Linux logical volumes.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • PV → VG → LV layering.
  • lvextend -r grows the file system too.
  • Thin pools can overfill; monitor data and metadata.
Key checks
  • pvs; vgs; lvs — LVM overview
  • lvs -a -o +devices — mapping
  • lvm fullreport — complete state
ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Everyday LVM inventory on a Linux host:

lsblk                                  # where LVs sit on disks
pvs; vgs; lvs
lvs -a -o lv_name,vg_name,lv_size,segtype,data_percent,devices
dmsetup ls --tree

Typical layouts: RHEL installs rhel VG with root, swap (and home); Ubuntu server uses ubuntu-vg/ubuntu-lv and by default leaves part of the VG unallocated — lvextend -r -l +100%FREE ubuntu-vg/ubuntu-lv is the common first fix for a small root filesystem.

Thin pools

lvcreate -L 500G -T vg_data/thinpool
lvcreate -V 200G -T vg_data/thinpool -n lv_vm1
lvs -o +data_percent,metadata_percent vg_data

Documented example, not captured output. Thin LVs can exceed the pool size in total; monitor data_percent and metadata_percent.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Commands

pvcreate /dev/sdb
vgcreate vg_data /dev/sdb
lvcreate -n lv_app -L 100G vg_data
mkfs.xfs /dev/vg_data/lv_app
lvextend -r -L +50G /dev/vg_data/lv_app        # -r grows the file system too
pvs ; vgs ; lvs
lvcreate -s -n lv_app_snap -L 10G /dev/vg_data/lv_app

Documented example, not captured output. Classic LVM snapshots slow writes and become invalid when full; thin pools give efficient snapshots. XFS can only grow, not shrink.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docLinux Storage current

Authoritative/upstream documentation reviewed for bounded claims in Linux Storage → LVM. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/block/index.html · confidence 94%
Confirmation

Confirm action

Continue?