The vgs command is part of the Logical Volume Manager (LVM) toolset and is used to display information and attributes about Volume Groups (VGs) in the LVM configuration.
The vgs command provides information about VGs, including the following columns:
Commonly used options for the vgs command include:
For example, running the vgs command without options will display information about all VGs on the system, including their names, the number of PVs and LVs, attributes, and sizes:
# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 1 0 wz--n- <18.00g 0
db_vg 2 1 0 wz--n- <186.30g <167.67g |
In this example, you can see information about two VGs named "centos" and "db_vg". The columns provide details about the number of PVs, LVs, snapshots, attributes, total size ("VSize"), and free space ("VFree)" for each VG.
The vgs command is useful for gaining insights into the VG configuration, which can be crucial for managing storage in LVM effectively.
For more details and additional examples of using the vgs command in LVM, you can refer to the provided link.