cheat.sheets:vgscan
# vgscan
# Scan all disks for volume groups.
# Scan all physical volumes for volume groups
vgscan
# Scan all disks for volume groups without updating the cache
vgscan --ignorelockingfailure
# Scan and print the current volume group names without performing any changes
vgscan --readonly
# Run vgscan with verbose output
vgscan --verbose
# Run vgscan with debugging information output
vgscan --debug
# Scan all disks and force a re-read of the metadata
vgscan --mknodes
tldr:vgscan
# vgscan
# Scan for volume groups on all supported Logical Volume Manager (LVM) block devices.
# See also `lvm`, `vgchange`.
# More information: <https://manned.org/vgscan>.
# Scan for volume groups and print information about each group found:
sudo 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 --mknodes
$
cheat.sh