mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 19:42:38 +00:00
26 lines
534 B
Plaintext
26 lines
534 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pvscan
|
|
|
|
> List all physical volumes and manage their online status.
|
|
> More information: <https://manned.org/pvscan>.
|
|
|
|
- List all physical volumes:
|
|
|
|
`pvscan`
|
|
|
|
- Show the volume group that uses a specific physical volume:
|
|
|
|
`pvscan --cache --listvg {{/dev/sdX}}`
|
|
|
|
- Show logical volumes that use a specific physical volume:
|
|
|
|
`pvscan --cache --listlvs {{/dev/sdX}}`
|
|
|
|
- Display detailed information in JSON format:
|
|
|
|
`pvscan --reportformat json`
|