LinuxCommandLibrary

lvscan

scans and lists all logical volumes in the system

TLDR

List all logical volumes

$ sudo lvscan
copy
List active volumes only
$ sudo lvscan --active
copy
List inactive volumes only
$ sudo lvscan --inactive
copy
Output as JSON
$ sudo lvscan --reportformat json
copy

SYNOPSIS

lvscan [options]

DESCRIPTION

lvscan scans and lists all logical volumes in the system. It shows the volume path, size, and activation status.

PARAMETERS

--active

Show only active logical volumes
--inactive
Show only inactive logical volumes
--reportformat FORMAT
Output format: basic, json
-b, --blockdevice
Show block device names
-v, --verbose
Verbose output

OUTPUT FORMAT

Shows: ACTIVE/inactive, LV path, size, and status

SEE ALSO

lvs(8), lvdisplay(8), vgscan(8), pvscan(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community