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:
- "VG_NAME" is the name of the volume group to which you want to add PVs.
- "PV_NAME1", "PV_NAME2", etc., are the names of the physical volumes you want to add to the volume group.
Some commonly used options for the vgextend command include::
- -l : Display detailed information about the extension.
- -y : Perform the extension without prompting for confirmation.
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.