LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

vgremove

Remove LVM volume groups

TLDR

Remove a volume group with confirmation
$ sudo vgremove [volume_group]
copy
Forcefully remove a volume group without confirmation
$ sudo vgremove -f [volume_group]
copy
Remove with debug logging
$ sudo vgremove -d -d [volume_group]
copy
Remove a volume group matching a select criteria
$ sudo vgremove --select '[vg_name=~old_*]'
copy

SYNOPSIS

vgremove [options] volumegroup_...

DESCRIPTION

vgremove removes one or more LVM volume groups. Before a volume group can be removed, all logical volumes within it must first be removed using lvremove.The command updates the LVM metadata to mark the volume group as removed. The underlying physical volumes remain but are no longer associated with any volume group.

PARAMETERS

-f, --force

Force removal without confirmation
-d, --debug
Enable debug output (repeat for more detail, up to 6 times)
-S, --select string
Select objects for processing based on specified criteria
-t, --test
Test mode, don't actually make changes
-v, --verbose
Verbose output
-y, --yes
Answer yes to all prompts

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

Requires root privileges. All logical volumes must be removed first. Cannot remove an active volume group with mounted filesystems. Data on the volume group will be inaccessible after removal. Part of the LVM2 package.

SEE ALSO

lvm(8), vgcreate(8), lvremove(8), pvremove(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