LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lvmdiskscan

scans all SCSI, IDE, and other disks visible to the system and lists devices

TLDR

Scan all devices that may be used as physical volumes
$ lvmdiskscan
copy
Show only physical volumes (PVs)
$ lvmdiskscan -l
copy
Increase verbosity (repeat for more detail)
$ lvmdiskscan -v
copy

SYNOPSIS

lvmdiskscan [options]

DESCRIPTION

lvmdiskscan scans all SCSI, IDE, and other disks visible to the system and lists devices that may be used as physical volumes by LVM. It reports each device's size and whether it is already an LVM physical volume.The output shows partitions and whole disks, indicating which ones contain LVM metadata. This is useful for identifying available storage before creating new physical volumes.

PARAMETERS

-l, --lvmpartition

Show only partitions that are LVM physical volumes
-v, --verbose
Increase verbosity level; can be repeated for more detail

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

This command is deprecated; use pvs for listing physical volumes and standard tools like lsblk for device enumeration. The scan can be slow on systems with many devices. Requires root privileges for complete device information.

SEE ALSO

pvs(8), pvscan(8), lsblk(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