Use it when the symptom is “Thin Pool Full”: work through the layers in order and stop at the first one that fails.
Thin Pool Full
Thin capacity has at least logical virtual size, allocated data extents, metadata space, snapshots/clones and underlying pool capacity. Monitor data and metadata independently.
1. Thin pool full: writes fail, VMs pause.
2. Extend the pool (or metadata).
3. Free space by deleting snapshots/unused volumes.
4. Run fstrim in guests.
5. Enable autoextend and alerts.
writes → pool full → extend/free → resume
Context & applicabilityCommon mistakes · platform/version boundaries
A full thin pool shows backing allocation cannot safely satisfy new mappings; it does not mean each thin volume or filesystem reports full.
Suspicious evidence includes data or metadata near 100%, rapid snapshot growth, failed allocations, read-only transition or backend exhaustion.
Operational reference
Fast context before you go deeper.
lvs -a -o lv_name,vg_name,lv_attr,lv_size,data_percent,metadata_percentPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Application write → filesystem → thin volume mapping → thin metadata → thin data pool → backing VG/pool → physical backend → completion
Healthy evidence shows restored data and metadata headroom, successful new allocations/writes and no pool read-only/error state.
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.
- Thin virtual free space ≠ physical pool free space.
- Filesystem free space inside a thin volume ≠ pool headroom.
- Deleting guest files ≠ pool reclamation unless discard/reclaim propagates.
- Extending data space ≠ fixing metadata exhaustion.
lvs -o lv_name,data_percent,metadata_percent— pool fulldmesg | grep -i thin— errorslvextend -L +50G <vg>/<pool>— extend pool
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
A full thin pool shows backing allocation cannot safely satisfy new mappings; it does not mean each thin volume or filesystem reports full.
In depth
What actually happens when the pool fills
A thin pool has two separate spaces: data and metadata. Either one running out breaks writes to every thin volume in the pool. The lvmthin manual describes two behaviours for a full data space:
whenfull mode | Behaviour | Set with |
|---|---|---|
| queue (default) | Writes wait up to 60 seconds for the pool to be extended, then fail | lvchange --errorwhenfull n VG/pool |
| error | Writes fail immediately | lvchange --errorwhenfull y VG/pool |
Check both percentages
# lvs -o name,attr,data_percent,metadata_percent,whenfull,seg_monitor vg0/pool
LV Attr Data% Meta% WhenFull Monitor
pool twi-aotzD- 100.00 41.20 queue monitored
Data% at 100 and a D in the attribute field mean the data space is full. Meta% at 100 means metadata is exhausted.
Recover data space
1. Extend the pool if the VG has free extents: lvextend -L +50G vg0/pool.
2. Otherwise add a PV (vgextend vg0 /dev/sdX) and then extend.
3. Free space inside guests (fstrim) only helps if discards pass through to the pool.
Metadata full is harder
The manual's recovery path is offline: deactivate the pool, run lvconvert --repair vg0/pool, grow metadata with lvextend --poolmetadatasize +1G vg0/pool, then check file systems on the thin volumes.
Prevent it
Autoextend needs dmeventd monitoring (lvchange --monitor y vg0/pool) and two lvm.conf activation settings: thin_pool_autoextend_threshold (minimum 50; 100 disables it) and thin_pool_autoextend_percent. Autoextend only works while the VG still has free extents, so alert on VG free space too.
*The lvs capacity figures illustrate a fully allocated thin pool with remaining metadata space; they are not measurements from an actual volume group.*
Method
When an LVM thin pool is full, writes to thin volumes fail or block (depending on --errorwhenfull), VMs pause and filesystems may go read-only.
lvs -o lv_name,data_percent,metadata_percent vg
vgs # free space in the VG?
lvextend -L +100G vg/pool0 # grow data
lvextend --poolmetadatasize +1G vg/pool0 # grow metadata
If the VG has no free space, add a PV, delete unneeded snapshots/volumes, or run fstrim inside guests (with discard enabled) to return freed blocks. Then enable autoextend and alerting so it does not happen again.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Troubleshooting → Thin Pool Full. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Storage Troubleshooting → Thin Pool Full proof map
Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → Thin Pool Full.
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Application write → filesystem → thin volume mapping → thin metadata → thin data pool → backing VG/pool → physical backend → completion | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A full thin pool proves backing allocation cannot safely satisfy new mappings; it does not mean each thin volume or filesystem reports full. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows restored data and metadata headroom, successful new allocations/writes and no pool read-only/error state. | Close only after the original workload/recovery test and regression check |