Linux LVM, RAID, and Encryption Cheat Sheet/Extend an LV and filesystem together

Grow both the LV and the contained filesystem when supported.

Section: LVM Growth and Snapshots

Extend an LV and filesystem together

bash
bash
sudo lvextend -r -L +50G /dev/vgdata/lvdata
Explanation

Grow both the LV and the contained filesystem when supported.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing LVM Growth and Snapshots
Extend an LV by fixed size
Grow the logical volume size.
OpenIn sheetbashsame section
Add a PV to an existing VG
Increase free capacity in a volume group.
OpenIn sheetbashsame section
Reduce an LV size
Dangerous if done without shrinking the filesystem first.
OpenIn sheetbashsame section
Create an LVM snapshot
Create a snapshot LV for backup or rollback workflows.
OpenIn sheetbashsame section
Remove a snapshot
Delete an unneeded LVM snapshot.
OpenIn sheetbashsame section
Move extents off a PV
Relocate data to other PVs before removing a disk.
OpenIn sheetbashsame section