resize2fs
CautionResize ext filesystems
resize2fs <dev>
Grows the filesystem to match an enlarged partition/LV — online for growth; shrink needs unmount.
Examples
lvextend -L +20G /dev/vg0/data && resize2fs /dev/vg0/dataGrow FS after LV extend
Syntax
resize2fs <device> [size]
Before you run it
Shrinking carelessly destroys data.
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store