vgscan:tldr:6f94d
The command "sudo vgscan" is used to scan all Linux physical volumes (disks or partitions) that are part of a volume group (VG).
A volume group (VG) is a collection of physical volumes that functions as a logical unit in Linux LVM (Logical Volume Manager). It allows for the creation of logical volumes (LV) that can be used as partitions, file systems, or block devices.
By executing "sudo vgscan," you are requesting the system to scan and collect information about all available physical volumes on the system, and update the volume groups accordingly. It updates the metadata of volume groups, allowing the system to recognize all the physical volumes and logical volumes assigned to it.
This command can be useful in situations where you have added new physical volumes to the system, removed physical volumes, or made changes to the VG metadata. Running "sudo vgscan" ensures that the system maintains an up-to-date view of all the physical volumes and logical volumes in the volume groups.