LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lvextend

increases the size of a logical volume in LVM

TLDR

Extend to absolute size
$ sudo lvextend -L 120G logical_volume
copy
Extend by relative size
$ sudo lvextend -L +40G -r logical_volume
copy
Use all free space
$ sudo lvextend -l +100%FREE logical_volume
copy
Extend and resize filesystem
$ sudo lvextend -l +100%FREE -r logical_volume
copy

SYNOPSIS

lvextend [OPTIONS] LogicalVolume

DESCRIPTION

lvextend increases the size of a logical volume in LVM. It can extend by an absolute size, relative size, or percentage of available space. The underlying filesystem can be resized automatically.

PARAMETERS

-L, --size size

Specify new absolute size or relative increase (+size)
-l, --extents extents
Specify size in extents or percentage (%VG, %FREE, %PVS)
-r, --resizefs
Automatically resize the underlying filesystem
-n, --nofsck
Skip filesystem check before resize
--use-policies
Use thin pool autoextend policies

INSTALL

sudo apt install lvm2
copy
sudo dnf install lvm2
copy
sudo pacman -S lvm2
copy
sudo apk add lvm2
copy
sudo zypper install lvm2
copy
nix profile install nixpkgs#lvm2
copy

CAVEATS

Ensure sufficient free space in the volume group. The filesystem resize with -r only works for ext2/3/4 and XFS. For other filesystems, manual resize is required after extending. XFS can only grow, not shrink.

HISTORY

lvextend is part of LVM2, the Linux Logical Volume Manager, providing dynamic storage management.

SEE ALSO

lvm(8), lvresize(8), lvreduce(8), lvcreate(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid