Most LVM incidents are caused by operators holding the wrong mental model: thinking of LVM as “partitioning with extra steps” rather than what it actually is, a userspace management layer that programs the kernel’s device-mapper subsystem. Once you internalize that, the confusing behaviors stop being confusing. A full thin pool freezing every process in D-state, a snapshot silently invalidating, an lvs command hanging during the exact incident you need it for: all of these follow directly from the architecture.

This article builds that model. It is not a tutorial on pvcreate flags. It is the model you want in your head before you debug a storage incident at 3 a.m.

The short version: LVM does not store data and it does not move data. It maintains mapping tables, on disk and in kernel memory, that translate I/O on virtual block devices into I/O on physical extents. Almost every LVM failure mode is a failure of those tables, the space they allocate from, or the metadata that describes them.

What it is and why it matters

LVM sits between your physical block devices and your filesystems. Its job is indirection: carve physical storage into fixed-size chunks, pool those chunks, and hand out virtual block devices whose blocks are mapped onto the pool. That indirection buys you online resize, snapshots, thin provisioning, striping and mirroring, and data migration between disks without downtime.

The cost is a second layer of capacity and a second layer of state that most teams under-monitor. df tells you about filesystems. LVM tells you about the pool underneath them. These are independent failure domains: a thin pool can be 100% full and freezing all writes while df shows 50% usage, because the filesystem’s space is virtual and the pool’s space is physical.

How it works: the three layers

LVM organizes storage into three layers, and every LVM command you run manipulates one of them.

Physical Volumes (PVs) are raw block devices: disks, partitions, SAN LUNs, md RAID arrays, multipath devices, NVMe namespaces. pvcreate stamps the device with a metadata header and divides the usable space into physical extents (PEs), fixed-size chunks that default to 4 MiB. The metadata area at the start of the PV (the Volume Group Descriptor Area, VGDA) contains the PV’s UUID, its extent map, and the complete description of every LV in the VG. Each PV in a VG holds a copy of the VG metadata.

Volume Groups (VGs) are pools. A VG aggregates the PEs from one or more PVs into a single allocatable namespace and is the unit of administration: it defines the PE size and the set of contributing PVs. Because metadata is replicated across all member PVs and must stay consistent, a crash during a metadata update or bad blocks in a PV’s metadata area can make an entire VG unreadable. Every metadata change increments a sequence number, and that sequence number is your audit trail: a disagreement between PVs tells you one of them missed an update.

Logical Volumes (LVs) are virtual block devices carved from VG capacity, exposed as /dev/VG/LV, which are symlinks into /dev/mapper/. Each LV is, at its core, a segment map: “blocks 0 through N of this LV correspond to PEs X through Y on PV Z.” LV types include:

  • Linear: simple extent mapping, contiguous or not. Zero I/O overhead, pure remapping.
  • Striped: extents spread across multiple PVs for parallelism.
  • Mirror/RAID: dm-mirror or dm-raid (which uses the kernel md infrastructure) for redundancy.
  • Thin-provisioned: overcommitted allocation from a shared thin pool.
  • Snapshot: copy-on-write point-in-time copies, traditional or thin.
  • Cache: dm-cache or dm-writecache layering a fast device in front of a slow one.
flowchart TD
  subgraph kernel["Kernel"]
    DM["device-mapper
mapping tables in memory"] end APP["Filesystems / applications"] -->|I/O on /dev/VG/LV| DM DM -->|extent map| LV["Logical Volumes
virtual block devices"] LV -->|allocated from| VG["Volume Group
pool of 4 MiB extents"] VG -->|aggregates| PV1["PV: /dev/sdb"] VG -->|aggregates| PV2["PV: /dev/sdc"] VGDA["VGDA metadata
start of each PV"] -.->|describes| VG PV1 -.->|holds copy| VGDA PV2 -.->|holds copy| VGDA

Device-mapper: the kernel machinery

This is the part most operators skip, and the part that matters most during an incident.

LVM is userspace tooling. The actual work is done by the kernel’s device-mapper (dm) subsystem. When an LV is activated, LVM loads a mapping table into the kernel. From that point on, every active LV is a /dev/dm-N device, and the kernel routes I/O according to the table. You can see the tables directly with dmsetup table and device state with dmsetup status.

Two operational consequences follow.

First, table reloads suspend I/O. When you resize or reshape an LV, dm briefly suspends the device, swaps the table, and resumes. This is normally sub-second. A dm device stuck in suspended state for minutes means something is wrong at the kernel level, and every process doing I/O to it is parked in uninterruptible sleep (D state), unkillable even with SIGKILL until the device resumes.

Second, dmsetup talks to the kernel directly. It takes no LVM locks and does no disk I/O. Every LVM command (pvs, vgs, lvs) takes a VG lock and reads metadata from PV headers. When PVs are slow or a lock is held by a stuck pvmove, the LVM tools hang while dmsetup status still answers instantly. During an incident, dmsetup is your primary diagnostic tool. Also remember that your monitoring system’s lvs calls participate in the same lock and I/O paths they are observing.

One more practical detail: dm minor numbers (/dev/dm-3, /dev/dm-7) are not stable across reboots. The /dev/mapper/VG-LV names are. Never put /dev/dm-N in a configuration file.

Thin pools and snapshots: the two internal machines

Thin pools

A thin pool is a pair of special internal LVs managed together: a data LV (tdata) holding the actual blocks, and a much smaller metadata LV (tmeta) holding the block mapping table for every thin volume in the pool. Thin LVs get virtual sizes that can sum to more than the pool’s physical size; physical blocks are allocated on first write.

This creates two independent exhaustion domains, and they fail differently:

  • Data exhaustion: at 100% data, the default kernel behavior is to queue writes for 60 seconds (the no_space_timeout default), then fail them with errors. Databases crash, VMs pause, applications see I/O errors. Painful, but generally recoverable by extending the pool.
  • Metadata exhaustion: at 100% metadata, the pool cannot record new block mappings, and the metadata itself can become inconsistent. Recovery requires offline repair via lvconvert --repair, and it is not guaranteed. Treat that command as a data-loss-risk operation: it requires the pool to be deactivated and rebuilds the metadata with thin_repair. The preventive fix is extending the metadata LV (lvextend on the pool’s tmeta) before it fills. Metadata consumption is non-linear: it tracks unique blocks written, not bytes written, so random I/O burns metadata far faster than sequential I/O, and snapshots multiply metadata entries. This is why you can see a pool at 40% data and 95% metadata, and why teams monitoring only data_percent get blindsided.

Two defaults here are genuinely dangerous and widely misunderstood. First, thin_pool_autoextend_threshold defaults to 100, which means auto-extend is disabled out of the box. Many operators believe their pools will auto-grow; they have never checked. Second, even when auto-extend is configured, it requires dmeventd to be running and free extents in the VG. If either is missing, auto-extend fails silently.

Traditional snapshots

A traditional (non-thin) snapshot gets a fixed-size COW exception store at creation time. Every write to the origin triggers a three-step operation: read the original block, copy it into the exception store, then write the new data. That is a minimum 3x write amplification on the origin, and multiple snapshots on the same origin multiply it further.

The failure mode is a cliff: when the exception store hits 100%, the snapshot is immediately and irreversibly invalidated. It does not warn and it does not degrade gracefully. The snapshot stays in lvs output with I (invalid) in the state attribute, but the restore point is gone. The origin keeps running fine, which is exactly why nobody notices until the backup restore fails. Thin snapshots avoid the fixed exception store by sharing the pool, but they inherit the pool’s exhaustion risks instead.

Activation and the death of lvmetad

An LV existing in metadata is not the same as an LV being usable. Activation is the step where LVM loads the dm table into the kernel. Activation failures at boot (a PV slow to appear, an initramfs without the right tooling) are a classic cause of systems coming up with missing mount points.

On caching: if you have read older documentation about lvmetad, the metadata caching daemon, disregard it unless you run legacy RHEL 7 or older. lvmetad was removed in the LVM 2.03 series. Every currently supported distribution (RHEL 8+, Ubuntu 22.04+, Debian 12+) ships LVM 2.03.x and has never had it. Modern LVM uses event-driven autoactivation: udev rules fire pvscan --cache as devices appear, and LVs activate in dependency order. A config file on a modern system that references use_lvmetad is stale.

Where it shows up in production

The model above explains the failure archetypes you will actually meet:

  • Space exhaustion: VG free extents gone, or thin pool data/metadata full. Cliff-edge behavior: no degradation at 99%, total failure at 100%.
  • Device loss: a PV disappears (disk failure, SAN path loss). The VG goes partial. Linear and striped LVs with extents on the missing PV are immediately inaccessible; mirrored and RAID LVs degrade.
  • Silent redundancy loss: a mirror leg dies and everything keeps working on the surviving leg. No application errors. The next failure is total data loss.
  • Metadata corruption: crash during a metadata write or bad blocks in the VGDA. Can make the whole VG unreadable. Your lifeline is the automatic backups in /etc/lvm/backup/ and the archive in /etc/lvm/archive/, which vgcfgrestore reads.
  • Snapshot collapse: a write-heavy origin fills the COW store, the snapshot invalidates instantly, and origin latency spiked the whole time from COW overhead.
  • Thin pool strangulation: as the pool approaches full, internal reclaim activity competes with application I/O, so latency rises before the pool actually fills.

Also note the stacked-storage trap: LVM on md RAID on multipath on a SAN is four layers. A SAN path failure surfaces as an LVM “missing PV.” Before debugging LVM, check the layers below it (multipath -ll, mdadm --detail, dmesg).

Signals to watch in production

These are the signals that fall directly out of the model. Thresholds and response procedures belong to the monitoring playbook; this is the minimum set that maps to the architecture.

SignalWhy it mattersWarning sign
VG free spaceHeadroom for extends, snapshots, thin pool growth. Cliff-edge at 0.Below 10%, or any sustained downward trend
Thin pool data_percentAt 100%, all thin LVs in the pool fail writes simultaneouslyAbove 85%, or growth projecting exhaustion within days
Thin pool metadata_percentExhaustion can corrupt the pool; recovery not guaranteedAbove 75%; any value climbing while data% is low
Snapshot snap_percentCOW store overflow invalidates the snapshot irreversiblyAbove 80%, or any snapshot older than 24h on a busy origin
PV presenceA missing PV means partial VG; linear LVs on it are goneAny PV showing [unknown] or the m attribute
LV health (attr position 9)p partial (a PV is missing), r refresh needed, mismatch flags on RAIDAny character other than -
Mirror/RAID sync stateDegraded arrays have zero redundancy; resync hammers I/OA RAID/mirror LV stuck below 100% sync long after creation, or resync not progressing
dm device stateSuspended devices block all I/O; D-state processes pile upAny device suspended more than a few seconds
dmeventd running + auto-extend configThe safety net for thin pools; silently absent otherwisethin_pool_autoextend_threshold = 100 (disabled) on a production pool
D-state process countThe user-visible symptom of LVM I/O hangsProcesses stuck on dm devices for more than a minute

How Netdata helps

The LVM failure modes above share a trait: they are visible in kernel and block-layer signals before they become outages, but only if someone is collecting those signals continuously.

  • Netdata collects per-device block I/O metrics for dm devices (throughput, latency, I/O in progress) from the kernel, so you can see origin latency rising from snapshot COW overhead or thin pool reclaim activity before the pool fills.
  • Correlating dm-device latency against the underlying physical device latency tells you whether the LVM layer itself (snapshots, thin provisioning, RAID rebuild) is the bottleneck, or the disk is.
  • D-state process counts and disk error signals are collected alongside the block metrics, which makes corroboration possible: “thin pool full” plus “D-state processes accumulating on dm devices” is a very different page than either signal alone.
  • Per-second collection with historical retention closes LVM’s biggest instrumentation gap: LVM itself shows current state only, so trend-based runway estimation (VG free space, pool fill rate) requires an external time series.
  • Anomaly detection on dm-device latency catches the slow-burn cases, like a mirror resync silently degrading application latency, that fixed thresholds miss.