LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lvscan

scans and lists all logical volumes in all volume groups

TLDR

List all logical volumes
$ sudo lvscan
copy
Include internal LV components (mirrors, etc.)
$ sudo lvscan --all
copy
Output in JSON format
$ sudo lvscan --reportformat json
copy
Run in read-only mode without taking locks
$ sudo lvscan --readonly
copy
Verbose output with extra detail
$ sudo lvscan -v
copy

SYNOPSIS

lvscan [options]

DESCRIPTION

lvscan scans and lists all logical volumes in all volume groups. The output shows one line per logical volume indicating whether it is active or inactive, the LV path, and its size.

PARAMETERS

-a, --all

Show information about internal LVs that are components of normal LVs (e.g., mirror images and logs).
-b, --blockdevice
No longer used. Use lvs(8) or lvdisplay(8) instead.
--readonly
Read on-disk metadata without taking locks. Useful for inspecting metadata on VMs or clustered VGs.
--reportformat FORMAT
Output format: basic or json.
--ignorelockingfailure
Allow the command to continue with read-only metadata after locking failures.
-d, --debug
Increase debug detail (repeat 1-6 times).
-q, --quiet
Suppress output and log messages.
-t, --test
Run in test mode without updating metadata.
-v, --verbose
Increase verbosity (repeat 1-4 times).

SEE ALSO

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

Copied to clipboard
Kai