The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

vgreduce - Reduce VG (Volume Group) Capacity





The vgreduce command is part of the Logical Volume Manager (LVM) toolset and is used to reduce the capacity of a Volume Group (VG) by removing one or more Physical Volumes (PVs) from it.

The basic syntax for the vgreduce command is as follows:
vgextend [OPTIONS] VG_NAME PV_NAME1 [PV_NAME2 ...] .

Here:

Some commonly used options for the vgreduce command include:

For example, the following command will remove the physical volume "dev/sda1" from the volume group named "db_vg" to reduce its capacity:

# vgreduce db_vg /dev/sda1 

After running this command, the capacity of the "db_vg" volume group will be reduced, and "/dev/sda1" will no longer be part of the volume group.

The vgreduce command is useful for administrators who need to reclaim physical storage resources from a volume group, whether because a physical volume is no longer needed or for other administrative reasons.

For more detailed explanations and additional examples of the vgreduce command in LVM, you can refer to the provided link.