![Forrest logo](/images/logo.png)
vgscan
"vgscan" is a command line tool in Linux used to scan for all available volume groups (VG) on the system. It is a part of the LVM (Logical Volume Manager) suite of utilities.
When executed, "vgscan" scans all attached disks and partitions on the system looking for LVM metadata. It then reads this metadata to identify existing volume groups.
This tool is useful when you are trying to access or manage volume groups that may not be automatically detected by the system. For example, after attaching a new disk, you can run "vgscan" to discover any new volume groups that may have been created.
"vgscan" provides information about the found volume groups including their names, physical volumes (PVs), and logical volumes (LVs).
Once the volume groups are scanned, the output can be used with other LVM tools like "vgdisplay", "lvscan", and "lvdisplay" to gather more detailed information about the volume groups and their associated logical volumes.
To use "vgscan", you typically need to have root or superuser privileges as it requires direct access to low-level storage devices and their metadata.
Overall, "vgscan" is a handy tool for discovering and managing volume groups on Linux systems.
List of commands for vgscan:
-
vgscan:tldr:6f94d vgscan: Scan for volume groups and print information about each group found.$ sudo vgscantry on your machineexplain this command
-
vgscan:tldr:d3723 vgscan: Scan for volume groups and add the special files in `/dev`, if they don't already exist, needed to access the logical volumes in the found groups.$ sudo vgscan --mknodestry on your machineexplain this command