Report issue Add example

vgreduce

Remove physical volumes from a volume group.

Description

The vgreduce command reduces the capacity of an LVM volume group by removing physical volumes from it. You cannot remove the last remaining physical volume in an LVM volume group.

Syntax

vgreduce (option) (parameter)

Options

-a: If no physical volumes are specified on the command line, remove all empty physical volumes;
--removemissing: Remove missing physical volumes from the volume group to restore it to a normal state.

Parameters

Examples

Use the vgreduce command to remove physical volume /dev/sdb2 from the volume group "vg2000". Enter the following command at the command line:

[root@localhost ~]# vgreduce vg2000 /dev/sdb2    # Remove physical volume "/dev/sdb2" from volume group "vg2000"

The output information is as follows:

Removed "/dev/sdb2" from volume group "vg2000"