Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Extend

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

disk/PV grow → VG free → LV extend → filesystem grow

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
Logical Volume Management 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.

PlatformLogical Volume Management storage
Scope / prerequisiteUse it when the storage question has been narrowed to Logical Volume Management → Extend. Map the upper consumer throug…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 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
  • 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.
Key checks
  • lvextend -r -L +10G <vg>/<lv> — extend LV and filesystem
  • xfs_growfs <mount> / resize2fs <dev> — grow filesystem
  • df -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

StepCommand
Add a diskpvcreate /dev/sdc, vgextend vg0 /dev/sdc
Grown virtual disk/LUNRescan the device, pvresize /dev/sdb
Grown partition under the PVgrowpart /dev/sda 3, then pvresize /dev/sda3

File system notes

File systemOnline growCommand if not using -r
ext4Yesresize2fs /dev/vg0/data
XFSYes (mounted)xfs_growfs /srv
BtrfsYesbtrfs 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 docLogical Volume Management storage current

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%
Terminology layer

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.

Aliases that resolve here
lvm extendlv extendextend logical volume
Embedded reference data

Quick lookup tables

Logical Volume Management → Extend LVM map

Fast identity, allocation, capacity and proof boundaries for Logical Volume Management → Extend.

LVM boundaryWhat to verifyProof limit
Identity / mappingPV, VG, LV/thin-pool identity, size, membership and activation/mappingObject presence alone does not prove upper filesystem or lower path health
Allocation / capacityVG extents, LV size, thin data + metadata usage and upper-consumer capacityFree capacity at one layer does not prove allocation succeeds end to end
Failure boundaryA 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?