LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

vgextend

Add physical volumes to volume groups

TLDR

Add single device
$ sudo vgextend vg1 /dev/sda1
copy
Add multiple devices
$ sudo vgextend vg1 /dev/sda1 /dev/sdb1
copy

SYNOPSIS

vgextend [OPTIONS] VolumeGroupName PhysicalVolume...

DESCRIPTION

vgextend adds one or more physical volumes to an existing volume group. This increases the total space available for creating or extending logical volumes within the group.

PARAMETERS

-f, --force

Force extension without confirmation
-y, --yes
Answer yes to all prompts
-A, --autobackup y|n
Automatically backup metadata after changes
--restoremissing
Restore physical volumes that were removed

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

Physical volumes must be initialized with pvcreate first. A physical volume can only belong to one volume group at a time. Adding a device does not automatically redistribute existing data.

HISTORY

vgextend is part of LVM2, the Linux Logical Volume Manager.

SEE ALSO

lvm(8), vgcreate(8), vgreduce(8), pvcreate(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