$linuxjunkies
>

lvscan(8)

Scan all disks for Logical Volume Manager (LVM) physical volumes and report the status of logical volumes.

UbuntuDebianFedoraArch

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

FlagWhat it does
-a, --allScan all block devices on the system (default behavior)
-c, --cacheUse cached metadata instead of scanning devices (faster but may be outdated)
-b, --blockdeviceScan only block devices (exclude other device types)
-P, --partialReport logical volumes that are only partially available
-v, --verboseVerbose output with additional details about each volume
--notimestampOmit timestamp from output

Examples

Scan all disks and display all logical volumes with their status and sizes

lvscan

Explicitly scan all available block devices for logical volumes

lvscan -a

Use cached LVM metadata for faster scanning without device I/O

lvscan -c

Display detailed verbose output including more metadata about each logical volume

lvscan -v

Scan and list all logical volumes in the volume group named 'vg0'

lvscan vg0

Show logical volumes that are in a degraded or partial state

lvscan -P

Related commands