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

vgextend - Extend VG (Volume Group) Capacity





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

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

Here: Some commonly used options for the vgextend command include::
For example, the following command will add the physical volume" /dev/sda1" to the volume group named "db_vg" to extend its capacity:
# vgextend db_vg /dev/sda1
Volume group "db_vg" successfully extended

After running this command, the capacity of the "db_vg" volume group will be extended to include the space provided by "/dev/sda1".

The vgextend command is a crucial tool in LVM for administrators who need to manage storage resources by dynamically growing volume groups as more physical storage becomes available.

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