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

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)

Copied to clipboard
Kai