Use it when the storage question has been narrowed to Logical Volume Management → Extend. Map the upper consumer through LV/VG/PV to the backing block path, separate allocation state from filesystem/data state, and preserve metadata plus recovery options before destructive changes.
Extend
Extending a logical volume adds space to it with lvextend; the filesystem on it must then be grown too (or use lvextend -r to do both) before applications can use the new space.
1. Extend: VG needs free extents (or add a PV).
2. -r resizes the filesystem too.
3. Online for ext4 and XFS.
4. Grow partition/PV first if underlying disk grew (pvresize).
5. Verify.
disk/PV grow → VG free → LV extend → filesystem grow
Context & applicabilityCommon mistakes · platform/version boundaries
A larger LV shows LVM allocated additional extents, but it does not show the filesystem or application can see or safely use the extra space.
Suspicious evidence: wrong target/size, VG exhausted unexpectedly, only LV grew while filesystem stayed unchanged, thin-pool metadata remains constrained or lower paths degrade after allocation.
Operational reference
Fast context before you go deeper.
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
capacity requirement → VG free extents → LV/thin-pool extend → device-mapper size → filesystem/consumer grow → workload verification
Healthy evidence: correct target grew to intended size, VG/PV state remains healthy, upper layer recognizes the new capacity and representative writes/read-back succeed.
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.
- LV extend ≠ filesystem extend.
- VG free extents ≠ guaranteed usable application capacity until upper layers grow.
- Online LV growth ≠ every filesystem can be grown in every state.
- Thin-pool data growth ≠ metadata growth.
lvextend -r -L +10G <vg>/<lv>— extend LV and filesystemxfs_growfs <mount> / resize2fs <dev>— grow filesystemdf -h <mount>— verify
ReferenceImportant terms & boundaries3 sections · depth on demand
Allocation
A larger LV shows LVM allocated additional extents, but it does not show the filesystem or application can see or safely use the extra space.
Extend owns LVM-side growth. Filesystems/databases/VM platforms own their own expansion steps; Capacity owns forecasting and reserve policy.
Operational checks for Extend — Allocation and ownership boundary: Anchor stable filesystem/volume/LUN/share/device identities across host, path/fabric, controller/pool and media so retries or multipath do not hide the failed leg.
In depth
Grow the LV and the file system in one step
lvextend(8) documents -L for size (with + for relative), -l for extents including percentages such as +100%FREE, and -r / --resizefs, which resizes the file system with fsadm in the same command.
# vgs vg0
VG #PV #LV #SN Attr VSize VFree
vg0 2 3 0 wz--n- 999.99g 200.00g
# lvextend -r -L +50G vg0/data
Size of logical volume vg0/data changed from 100.00 GiB to 150.00 GiB.
Logical volume vg0/data successfully resized.
resize2fs 1.47.0 (5-Feb-2023)
Filesystem at /dev/mapper/vg0-data is mounted on /srv; on-line resizing required
# df -h /srv
The manual's own example: lvextend -l+100%FREE -r vg01/lvol01 uses all free space in the VG and resizes the file system.
When the VG has no free space
| Step | Command |
|---|---|
| Add a disk | pvcreate /dev/sdc, vgextend vg0 /dev/sdc |
| Grown virtual disk/LUN | Rescan the device, pvresize /dev/sdb |
| Grown partition under the PV | growpart /dev/sda 3, then pvresize /dev/sda3 |
File system notes
| File system | Online grow | Command if not using -r |
|---|---|---|
| ext4 | Yes | resize2fs /dev/vg0/data |
| XFS | Yes (mounted) | xfs_growfs /srv |
| Btrfs | Yes | btrfs filesystem resize max /srv |
Thin pools
--poolmetadatasize +1G grows a thin pool's metadata LV — grow metadata as well as data when Meta% is high.
Forgetting -r is the classic mistake: the LV grows but df shows the old size until the file system is resized.
*The logical-volume growth messages illustrate resizing from 100 to 150 GiB, rather than an executed capacity change.*
Method
Growing a volume is usually online and safe. The order is bottom-up: underlying disk → PV → LV → filesystem.
# 1. disk/LUN grown by 100 GB
echo 1 > /sys/class/block/sdb/device/rescan
pvresize /dev/sdb
# 2+3. grow LV and filesystem in one step
lvextend -r -L +100G vg_data/lv_app
# or use all free space
lvextend -r -l +100%FREE vg_data/lv_app
-r calls resize2fs or xfs_growfs for you. Without it, the LV grows but df shows the old size until the filesystem is resized.
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 Logical Volume Management → Extend. 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/index · 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
Logical Volume Management → Extend LVM map
Fast identity, allocation, capacity and proof boundaries for Logical Volume Management → Extend.
| LVM boundary | What to verify | Proof limit |
|---|---|---|
| Identity / mapping | PV, VG, LV/thin-pool identity, size, membership and activation/mapping | Object presence alone does not prove upper filesystem or lower path health |
| Allocation / capacity | VG extents, LV size, thin data + metadata usage and upper-consumer capacity | Free capacity at one layer does not prove allocation succeeds end to end |
| Failure boundary | A larger LV proves LVM allocated additional extents; it does not prove the filesystem or application can see or safely use the extra space. | Correlate LVM evidence with both consumer and lower block path before recovery |
| Acceptance | Healthy evidence: correct target grew to intended size, VG/PV state remains healthy, upper layer recognizes the new capacity and representative writes/read-back succeed. | Close only after the original workload and independent read-back/consistency check succeeds |