vgreduce
Remove physical volumes from volume groups
TLDR
Remove physical volume from volume group
SYNOPSIS
vgreduce [options] volumegroup [physicalvolume...]
DESCRIPTION
vgreduce removes physical volumes from a volume group, reducing its capacity. The removed physical volumes can then be used in other volume groups or removed from the system entirely.
Before removal, ensure the physical volume contains no data by checking with pvdisplay. If data exists, use pvmove to migrate it to other physical volumes first. After vgreduce, use pvremove to clean LVM metadata from the disk.
The --removemissing option handles failed disks that are no longer present. Combined with --force, it removes any logical volumes that had data on the missing disk.
PARAMETERS
-a, --all
Remove all empty physical volumes.--removemissing
Remove missing (failed) physical volumes.--mirrorsonly
Only remove missing PVs from mirror LVs.-f, --force
Force removal, removing partial LVs if needed.-t, --test
Test mode; don't make changes.-v, --verbose
Verbose output.-y, --yes
Answer yes to prompts.
CAVEATS
Cannot remove PV with active data without pvmove. Force removal destroys data on affected LVs. Test mode recommended before force operations. Removed PVs need pvremove for reuse.
HISTORY
vgreduce is part of LVM2 (Logical Volume Manager), which evolved from the original LVM in Linux 2.4. LVM2 provides flexible disk management allowing dynamic resizing of storage. The vgreduce command enables non-destructive removal of storage from volume groups.
