Use it when a filesystem on LVM is running out of space.
Extend Logical Volume
Extending a logical volume adds space from the VG to the LV and then grows the filesystem on it.
1. vgs — VFree?
2. Not enough → add a PV (vgextend).
3. lvextend -r -L +20G /dev/<vg>/<lv>.
4. Check: df -h <mount>.
5. Monitor growth to plan ahead.
VG free extents → lvextend → LV larger → filesystem grown (-r) → space visible in df
For LVM → Extend Logical Volume, continue with the first unproven Topic check: Record target LV UUID/name, current LV size, filesystem type/size and VG free extents. If that boundary is healthy, advance to the adjacent check: Review allocation/segment implications and exact requested new size before execution. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lvs vg0/dataVerification & 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 Operational evidence path Verify boundary
VG free extents → LV extension plan → metadata commit → device-mapper larger device → filesystem grow → mount-visible capacity → workload
Healthy evidence: the intended LV receives the planned extents, device size increases, filesystem grows using supported tooling and the correct workload path sees added capacity.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Record target LV UUID/name, current LV size, filesystem type/size and VG free extents.
- Review allocation/segment implications and exact requested new size before execution.
- Verify LV/device-mapper size after allocation, then perform supported filesystem growth.
- Confirm effective filesystem capacity and original workload behavior at the intended mount.
Verification chain. VG free extents → LV extension plan → metadata commit → device-mapper larger device → filesystem grow → mount-visible capacity → workload
Step 3 Commands Verify boundary
lvextend -r -L +20G /dev/vg0/data
lvs vg0/data
df -h /data
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: wrong LV target, over-allocation, LV grows but filesystem remains unchanged, or the application uses a different mount/path than expected.
Step 5 Common mistakes Narrow the fault
- Extending the LV but not the filesystem (use
-r).
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.
Use lvextend -r to grow the filesystem in the same step. Both ext4 and XFS grow online. Make sure the VG has free space (or add a PV first).
pvs— physical volumesvgs— volume groups and free spacelvs -a -o +devices— logical volumes and their deviceslsblk— stack view
ReferenceWhat it is1 section · depth on demand
Core model
Show free VG extents and the exact target LV before extension. Capture pre-change LV and filesystem sizes. Extend the LV with an explicit amount/target, verify new device-mapper size, then grow the filesystem using filesystem-specific supported semantics and verify workload capacity.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
LV extension shows larger logical block capacity only, but it does not show filesystem expansion, mount visibility or workload benefit.
In depth
Worked extension — new disk, extend, grow the file system
# lsblk # new 50G disk appears as sdc
# pvcreate /dev/sdc
# vgextend vg_data /dev/sdc
# vgs vg_data
VG #PV #LV #SN Attr VSize VFree
vg_data 2 1 0 wz--n- 149.99g <50.00g
# lvextend -r -l +100%FREE /dev/vg_data/lv_app
Size of logical volume vg_data/lv_app changed from 100.00 GiB to 149.99 GiB.
Logical volume vg_data/lv_app successfully resized.
meta-data=/dev/mapper/vg_data-lv_app ...
data blocks changed from 26214400 to 39319552
# df -h /srv/app
The lvextend manual documents -r/--resizefs (resize the file system together with the LV via fsadm) and shows -l +100%FREE to use all free space in the VG.
Without -r — grow the file system yourself
| File system | Command | Online? |
|---|---|---|
| XFS | xfs_growfs /srv/app (mount point) | Yes |
| ext4 | resize2fs /dev/vg_data/lv_app | Yes |
| Btrfs | btrfs filesystem resize max /srv/app | Yes |
An LV that grew while the file system did not is the classic "lvextend worked but df shows the old size".
Extending an existing disk (VM disk grown)
# echo 1 > /sys/class/block/sdb/device/rescan
# growpart /dev/sdb 1 # only if the PV is on a partition
# pvresize /dev/sdb1
# lvextend -r -L +20G /dev/vg_data/lv_app
Checks before and after
| Check | Why |
|---|---|
| Recent backup / snapshot | Resize operations are safe but not risk-free |
vgs free space | Enough extents in the VG |
Thin LV? (lvs -o+pool_lv) | Extending a thin LV does not add pool space — extend the thin pool too |
df -h and application check afterwards | File system and service see the new space |
Size requests: -L +20G adds 20 GiB, -L 120G sets an absolute size, -l +50%FREE uses half of the free extents.
*The volume-group capacity and logical-volume resize messages are illustrative, not records of an actual storage expansion.*
How it works at runtime
Extend Logical Volume is part of LVM → Extend Logical Volume. Extending an LVM Logical Volume allocates additional Volume Group extents to the LV; it increases the block-device size but only increases filesystem capacity when the upper filesystem is separately and successfully grown.
Topic-specific state model. Extending an LVM Logical Volume allocates additional Volume Group extents to the LV; it increases the block-device size but only increases filesystem capacity when the upper filesystem is separately and successfully grown.
Interpretation rule. - VG has free extents ≠ extension target/amount is safe.
- lvextend succeeds ≠ filesystem grew.
- Filesystem grow command success ≠ application sees the expected mount/path.
- More capacity ≠ performance or inode pressure automatically fixed.
Method
Extending storage end to end:
# 1. if the disk grew
echo 1 > /sys/class/block/sdb/device/rescan
growpart /dev/sdb 1 # only if the PV is a partition
pvresize /dev/sdb1
# 2. extend LV and filesystem together
lvextend -r -L +50G vg_data/lv_app
lvextend -r -l +100%FREE vg_data/lv_app
# 3. verify
df -h /srv/app; lvs vg_data
-r runs resize2fs/xfs_growfs automatically. All steps are online for ext4 and XFS.
Limits and how it fails
Primary failure point. LV extension shows larger logical block capacity only, but it does not show filesystem expansion, mount visibility or workload benefit.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Extend Logical Volume owns LVM allocation growth. Resize Filesystem owns the upper filesystem growth step and its filesystem-specific constraints.
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 LVM → Extend Logical Volume. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/configuring_and_managing_logical_volumes/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
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
Extend Logical Volume operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Extend Logical Volume.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Extending an LVM Logical Volume allocates additional Volume Group extents to the LV; it increases the block-device size but only increases filesystem capacity when the upper filesystem is separately and successfully grown. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + incident/change time → capture block topology and stable identities → validate partition/device metadata → validate filesystem identity/integrity and effective mount namespace/options → validate PV/VG/LV/device-mapper state where used → make one controlled change at the first failed boundary → re-read effective storage state → repeat original workload I/O/acceptance test. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | VG free extents → LV extension plan → metadata commit → device-mapper larger device → filesystem grow → mount-visible capacity → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | LV extension proves larger logical block capacity only; it does not prove filesystem expansion, mount visibility or workload benefit. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux storage evidence can establish this proof path: VG free extents → LV extension plan → metadata commit → device-mapper larger device → filesystem grow → mount-visible capacity → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured device, metadata, mapping, mount or workload scope. LV extension proves larger logical block capacity only; it does not prove filesystem expansion, mount visibility or workload benefit. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: prove backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change. | Continue to the next unresolved boundary while preserving the original test condition. |
Extend Logical Volume · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Extend Logical Volume |
|---|---|
| Topic path | LVM → Extend Logical Volume |
| Runtime state | Extending an LVM Logical Volume allocates additional Volume Group extents to the LV; it increases the block-device size but only increases filesystem capacity when the upper filesystem is separately and successfully grown. |
| Fast checks | - Record target LV UUID/name, current LV size, filesystem type/size and VG free extents. - Review allocation/segment implications and exact requested new size before execution. - Verify LV/device-mapper size after allocation, then perform supported filesystem growth. - Confirm effective filesystem capacity and original workload behavior at the intended mount. |
| Verification chain | VG free extents → LV extension plan → metadata commit → device-mapper larger device → filesystem grow → mount-visible capacity → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | LV extension proves larger logical block capacity only; it does not prove filesystem expansion, mount visibility or workload benefit. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |