HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lvreduce — Reduce the size of a logical volume. See also: `lvm`. More information: <https://manned.org/lvreduce

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thevolumecommandlogicallvreduceclisizereduce
linux

Problem

How to use the lvreduce command: Reduce the size of a logical volume. See also: lvm. More information: <https://manned.org/lvreduce>.

Solution

lvreduce — Reduce the size of a logical volume. See also: lvm. More information: <https://manned.org/lvreduce>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/lvreduce

Revisions (0)

No revisions yet.