snippetbashTip
pvscan — List all physical volumes and manage their online status. More information: <https://manned.org/pvsc
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 pvscanShow 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 jsonCode Snippets
List all physical volumes
sudo pvscanShow 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 jsonContext
tldr-pages: linux/pvscan
Revisions (0)
No revisions yet.