snippetbashTip
lvreduce — Reduce the size of a logical volume. See also: `lvm`. More information: <https://manned.org/lvreduce
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.