5.3.5. Displaying Volume Groups
There are two commands you can use to display properties of LVM volume groups:
vgs and vgdisplay.
The
vgscan command, which scans all the disks for volume groups and rebuilds the LVM cache file, also displays the volume groups. For information on the vgscan command, see Section 5.3.6, “Scanning Disks for Volume Groups to Build the Cache File”.
The
vgs command provides volume group information in a configurable form, displaying one line per volume group. The vgs command provides a great deal of format control, and is useful for scripting. For information on using the vgs command to customize your output, see Section 5.8, “Customized Reporting for LVM”.
The
vgdisplay command displays volume group properties (such as size, extents, number of physical volumes, and so on) in a fixed form. The following example shows the output of a vgdisplay command for the volume group new_vg. If you do not specify a volume group, all existing volume groups are displayed.