Report issue Add example

vgscan

Scan and display volume groups in the system.

Description

The vgscan command searches for existing LVM volume groups in the system and displays a list of the groups found. The vgscan command only displays the names and LVM metadata types of the volume groups found; to get detailed information about a volume group, the vgdisplay command must be used.

Syntax

vgscan (option)

Options

-d: Debug mode;
--ignorerlockingfailure: Ignore errors related to locking failures.

Examples

Use the vgscan command to scan all volume groups in the system. Enter the following command at the command line:

[root@localhost ~]# vgscan     # Scan and display the list of LVM volume groups

The output information is as follows:

Found volume group "vg2000" using metadata type lvm2  
Found volume group "vg1000" using metadata type lvm2 

Note: In this example, the vgscan command found two LVM2 volume groups, "vg1000" and "vg2000".