LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

vgscan

Scan for LVM volume groups

TLDR

Scan for all volume groups
$ sudo vgscan
copy
Scan and recreate missing device nodes
$ sudo vgscan --mknodes
copy
Scan with verbose output
$ sudo vgscan -v
copy
Scan in test mode without updating metadata
$ sudo vgscan -t
copy

SYNOPSIS

vgscan [options]

DESCRIPTION

vgscan scans all supported LVM block devices in the system for volume groups. It builds the LVM cache file that holds current information about volume groups on the system.On modern LVM2 systems, volume group scans happen automatically when changes are made. Manual use of vgscan is mainly needed after hardware changes or to rebuild the cache.

PARAMETERS

--mknodes

Check and recreate LVM special device files in /dev. Creates missing nodes and removes unused ones.
-v, --verbose
Verbose mode. Repeat up to 4 times to increase detail.
--notifydbus
Send a notification to D-Bus after the scan completes.
--reportformat basic|json
Override the output format for reports.
--ignorelockingfailure
Continue with read-only metadata operations after locking failures.
-t, --test
Run in test mode without updating metadata.
-d, --debug
Set debug level. Repeat up to 6 times to increase detail.
-q, --quiet
Suppress output and log messages.

INSTALL

sudo apt install lvm2
copy
sudo dnf install lvm2
copy
sudo pacman -S lvm2
copy
sudo apk add lvm2
copy
sudo zypper install lvm2
copy
nix profile install nixpkgs#lvm2
copy

CAVEATS

vgscan is typically run automatically during system boot. Manually running vgscan is rarely necessary on modern systems as LVM automatically detects changes. Use vgchange -a y to activate volume groups after scanning. Requires root privileges.

HISTORY

vgscan is part of LVM2 (Logical Volume Manager), which evolved from the original LVM implementation. LVM2 was developed by Red Hat and uses the device-mapper kernel framework for dynamic disk management on Linux.

SEE ALSO

vgdisplay(8), vgchange(8), vgcreate(8), pvscan(8), lvscan(8), lvm(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid