LinuxCommandLibrary

pvs

TLDR

List physical volumes

$ sudo pvs
copy
List all including non-PVs
$ sudo pvs -a
copy
Verbose output
$ sudo pvs -v
copy
Show specific fields
$ sudo pvs -o pv_name,vg_name,pv_size
copy
Append field
$ sudo pvs -o +field_name
copy
No headings
$ sudo pvs --noheadings
copy
Use separator
$ sudo pvs --separator =
copy

SYNOPSIS

pvs [OPTIONS] [PhysicalVolume...]

DESCRIPTION

pvs displays information about physical volumes in a configurable table format. It shows device names, volume groups, sizes, and free space for each physical volume.

PARAMETERS

-a, --all

Show devices that are not physical volumes
-v, --verbose
Increase verbosity and show additional details
-o, --options fields
Specify which fields to display
--noheadings
Suppress the heading line in output
--separator char
Use specified character as field separator
--units units
Display sizes in specified units

CAVEATS

Physical volumes that are not part of a volume group will show empty VG field. Use -a to see devices that could become physical volumes.

HISTORY

pvs is part of LVM2, the Linux Logical Volume Manager.

SEE ALSO

lvm(8), pvdisplay(8), lvs(8), vgs(8)

Copied to clipboard