Linux Command
vgscan
Scan and display volume groups in the system
Supplementary instructions
vgscan command searches for LVM volume groups that exist in the system and displays the list of found volume groups. The vgscan command only displays the name and LVM metadata type of the found volume group. To obtain detailed information about the volume group, you need to use the vgdisplay command.
grammar
vgscan(options)
Options
-d: debug mode;
--ignorerlockingfailure: Ignore locking failure errors.
Example
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 LVM volume group list
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".


