HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lvscan — Scan (list) all logical volumes in the system. Part of the LVM (Logical Volume Manager) suite. More

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandalllogicallvscanclivolumesscanlist
linux

Problem

How to use the lvscan command: Scan (list) all logical volumes in the system. Part of the LVM (Logical Volume Manager) suite. More information: <https://manned.org/lvscan>.

Solution

lvscan — Scan (list) all logical volumes in the system. Part of the LVM (Logical Volume Manager) suite. More information: <https://manned.org/lvscan>.

List all logical volumes:
sudo lvscan


List only active logical volumes:
sudo lvscan --active


List only inactive logical volumes:
sudo lvscan --inactive


Display logical volumes in JSON format:
sudo lvscan --reportformat json

Code Snippets

List all logical volumes

sudo lvscan

List only active logical volumes

sudo lvscan --active

List only inactive logical volumes

sudo lvscan --inactive

Display logical volumes in JSON format

sudo lvscan --reportformat json

Context

tldr-pages: linux/lvscan

Revisions (0)

No revisions yet.