lvscan(8)
Scan all disks for Logical Volume Manager (LVM) physical volumes and report the status of logical volumes.
Synopsis
lvscan [option]... [--all | --cache | VolumeGroupName]Description
lvscan scans all block devices to discover LVM physical volumes and displays information about logical volumes found on the system. It reports which logical volumes are active, inactive, or in a partial state. This is useful for understanding the current LVM configuration and detecting available volumes after system startup or disk changes.
By default, lvscan checks all block devices and can discover orphaned physical volumes or logical volumes that may not be immediately accessible. The output shows the logical volume path, size, and allocation status.
Common options
| Flag | What it does |
|---|---|
-a, --all | Scan all block devices on the system (default behavior) |
-c, --cache | Use cached metadata instead of scanning devices (faster but may be outdated) |
-b, --blockdevice | Scan only block devices (exclude other device types) |
-P, --partial | Report logical volumes that are only partially available |
-v, --verbose | Verbose output with additional details about each volume |
--notimestamp | Omit timestamp from output |
Examples
Scan all disks and display all logical volumes with their status and sizes
lvscanExplicitly scan all available block devices for logical volumes
lvscan -aUse cached LVM metadata for faster scanning without device I/O
lvscan -cDisplay detailed verbose output including more metadata about each logical volume
lvscan -vScan and list all logical volumes in the volume group named 'vg0'
lvscan vg0Show logical volumes that are in a degraded or partial state
lvscan -P