commands.sh

fsadm

linux

Check or resize a filesystem on a device.

More info →

Options (3)

-n, --dry-runboolean

Perform a dry-run resize to a specific size (no changes made)

Example: fsadm {{[-n|--dry-run]}} resize {{/dev/vg_name/lv_name}} {{10G}}
-l, --lvresizeboolean

Resize the filesystem and the underlying logical volume together

Example: fsadm {{[-l|--lvresize]}} resize {{/dev/vg_name/lv_name}} {{100G}}
-e, --ext-offlineboolean

For ext2/3/4, unmount and resize offline

Example: fsadm {{[-e|--ext-offline]}} resize {{/dev/vg_name/lv_name}} {{20G}}

Examples (5)

Check a filesystem for errors

fsadm check /dev/vg_name/lv_name

Perform a dry-run resize to a specific size (no changes made)

fsadm [-n|--dry-run] resize /dev/vg_name/lv_name 10G

Grow a filesystem to fill the entire device (omit the size)

fsadm resize /dev/vg_name/lv_name

Resize the filesystem and the underlying logical volume together

fsadm [-l|--lvresize] resize /dev/vg_name/lv_name 100G

For ext2/3/4, unmount and resize offline

fsadm [-e|--ext-offline] resize /dev/vg_name/lv_name 20G
made by @shridhargupta | data from tldr-pages