commands.sh

lvreduce

linux

Reduce the size of a logical volume. See also: `lvm`.

More info →

Options (2)

-L, --sizeboolean

Reduce a volume's size to 120 GB

Example: sudo lvreduce {{[-L|--size]}} {{120G}} {{logical_volume}}
-r, --resizefsboolean

Reduce a volume's size by 40 GB as well as the underlying filesystem

Example: sudo lvreduce {{[-L|--size]}} -{{40G}} {{[-r|--resizefs]}} {{logical_volume}}

Examples (2)

Reduce a volume's size to 120 GB

sudo lvreduce [-L|--size] 120G logical_volume

Reduce a volume's size by 40 GB as well as the underlying filesystem

sudo lvreduce [-L|--size] -40G [-r|--resizefs] logical_volume
made by @shridhargupta | data from tldr-pages