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

pvscan — List all physical volumes and manage their online status. More information: <https://manned.org/pvsc

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

Problem

How to use the pvscan command: List all physical volumes and manage their online status. More information: <https://manned.org/pvscan>.

Solution

pvscan — List all physical volumes and manage their online status. More information: <https://manned.org/pvscan>.

List all physical volumes:
sudo pvscan


Show the volume group that uses a specific physical volume:
sudo pvscan --cache --listvg {{/dev/sdX}}


Show logical volumes that use a specific physical volume:
sudo pvscan --cache --listlvs {{/dev/sdX}}


Display detailed information in JSON format:
sudo pvscan --reportformat json

Code Snippets

List all physical volumes

sudo pvscan

Show the volume group that uses a specific physical volume

sudo pvscan --cache --listvg {{/dev/sdX}}

Show logical volumes that use a specific physical volume

sudo pvscan --cache --listlvs {{/dev/sdX}}

Display detailed information in JSON format

sudo pvscan --reportformat json

Context

tldr-pages: linux/pvscan

Revisions (0)

No revisions yet.