PVDISPLAY(8)
๐ธ PVDISPLAY(8) ๐ธ
section 8 of the System Manager's Manual, bestie. yes we're in the big-girl section. ๐
๐ NAME ๐
pvdisplay โ Display various attributes of physical volume(s) โจ
(it says "(s)" because it's shy about plurals. it means all of them. every single one. nosy queen behavior and we love her for it ๐ซถ)
๐ฆ SYNOPSIS ๐ฆ
okay so this is the shape of it, and then a whole wall of every flag she takes. do not panic at the volume of dashes, we get to each one, one at a time, together ๐
pvdisplay option_args
[ option_args ]
[ position_args ]
--aligned
-a|--all
--binary
-c|--colon
-C|--columns
--commandprofile String
--config String
--configreport log|vg|lv|pv|pvseg|seg
-d|--debug ...
--devices PV
--devicesfile String
--driverloaded y|n
--foreign
--headings none|abbrev|full|0|1|2
-h|--help
--ignorelockingfailure
--journal String
--lockopt String
--logonly
--longhelp
-m|--maps
--nameprefixes
--noheadings
--nohints
--nolocking
--nosuffix
-o|--options String
--profile String
-q|--quiet ...
--readonly
--reportformat basic|json|json_std
--rows
--segments
-S|--select String
--separator String
--shared
-s|--short
-O|--sort String
-t|--test
--unbuffered
--units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E
--unquoted
-v|--verbose ...
--version
-y|--yes
like. that's a LOT of options. and every single one of them gets explained, no cap, we're not skipping a single one ๐
๐ DESCRIPTION ๐
Okay so pvdisplay shows you the attributes of PVs โ that's physical volumes for anyone new here โ like the size, the physical extent size, the space used for the VG descriptor area, etc. it's giving full background check on your volume, it's giving investigative journalist ๐โจ
but bestie, hear me out: pvs(8) is the preferred alternative. and the reason is so valid โ it shows the same information and more, using a more compact and configurable output format. so like, same facts, cuter packaging, way more slots to customize. she ate and left no crumbs ๐
โจ USAGE โจ
here's every actual way you can run this thing. each one hits different, pick your fighter ๐
pvdisplay (the classic, the origin, the moment)
pvdisplay
[ -m|--maps ]
[ -s|--short ]
[ COMMON_OPTIONS ]
[ PV|Tag ... ]
pvdisplay -C|--columns
Display output in columns like pvs.
pvdisplay -C|--columns
[ -a|--all ]
[ -o|--options String ]
[ -O|--sort String ]
[ -S|--select String ]
[ --aligned ]
[ --binary ]
[ --configreport log|vg|lv|pv|pvseg|seg ]
[ --headings none|abbrev|full|0|1|2 ]
[ --logonly ]
[ --nameprefixes ]
[ --noheadings ]
[ --nosuffix ]
[ --rows ]
[ --separator String ]
[ --unbuffered ]
[ --unquoted ]
[ COMMON_OPTIONS ]
[ PV|Tag ... ]
pvdisplay -c|--colon
Generate colon separated output.
pvdisplay -c|--colon
[ COMMON_OPTIONS ]
[ PV|Tag ... ]
๐ซถ Common options for command
these ones apply to the command itself, and yes they're the same crew every time:
[ --foreign ]
[ --ignorelockingfailure ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ --segments ]
[ --shared ]
[ --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
๐ Common options for lvm
and these are the lvm-wide besties that show up basically everywhere in the family reunion:
[ -d|--debug ... ]
[ -h|--help ]
[ -q|--quiet ... ]
[ -t|--test ]
[ -v|--verbose ... ]
[ -y|--yes ]
[ --commandprofile String ]
[ --config String ]
[ --devices PV ]
[ --devicesfile String ]
[ --driverloaded y|n ]
[ --journal String ]
[ --lockopt String ]
[ --longhelp ]
[ --nohints ]
[ --nolocking ]
[ --profile String ]
[ --version ]
okay so that's the shape of the command and all the ways to call her ๐ the actual per-flag breakdown is coming next, so hold that thought bestie, we're not done being obsessed with her yet ๐
๐ OPTIONS ๐
--alignedโ use this with--separatorto align the output columns. โจ-a,--allโ show information about devices that have not been initialized by LVM, i.e. they are not PVs. ๐--binaryโ use binary values"0"or"1"instead of descriptive literal values for columns that have exactly two valid values to report (not counting the"unknown"value which denotes that the value could not be determined). ๐-c,--colonโ generate colon separated output for easier parsing in scripts or programs. Also seepvs(8)which provides considerably more control over the output. The values are:- Physical volume device name
- Volume group name
- Physical volume size in sectors
- Internal physical volume number (obsolete)
- Physical volume status
- Physical volume (not) allocatable
- Current number of logical volumes on this physical volume
- Physical extent size in kilobytes
- Total number of physical extents
- Free number of physical extents
- Allocated number of physical extents
-C,--columnsโ display output in columns. The equivalent ofpvs(8). Options listed are the same as options given inpvs(8). ๐--commandprofileString โ the command profile to use for command configuration. Seelvm.conf(5)for more information about profiles. ๐--configString โ config settings for the command. These overridelvm.conf(5)settings. The String arg uses the same format aslvm.conf(5), or may use section/field syntax. Seelvm.conf(5)for more information about config. ๐ฆ--configreportlog|vg|lv|pv|pvseg|segโ seelvmreport(7). ๐-d,--debug ...โ set debug level. Repeat from 1 to 6 times to increase the detail of messages sent to the log file and/or syslog (if configured). ๐ฅ--devicesPV โ restricts the devices that are visible and accessible to the command. Devices not listed will appear to be missing. This option can be repeated, or accepts a comma-separated list of devices. This overrides the devices file. ๐ซถ--devicesfileString โ a file listing devices that LVM should use. The file must exist in/etc/lvm/devices/and is managed with thelvmdevices(8)command. This overrides thelvm.conf(5)devices/devicesfileanddevices/use_devicesfilesettings. ๐--driverloadedy|nโ if set to no, the command will not attempt to use device-mapper. For testing and debugging. ๐งช--foreignโ report/display foreign VGs that would otherwise be skipped. Seelvmsystemid(7)for more information about foreign VGs. ๐--headingsnone|abbrev|full|0|1|2โ type of headings to use in report output.noneor0: no headings.abbrevor1: column name abbreviations.fullor2: full column names. โจ-h,--helpโ display help text. ๐--ignorelockingfailureโ allows a command to continue with read-only metadata operations after locking failures. ๐--journalString โ record information in the systemd journal. This information is in addition to information enabled by thelvm.conflog/journalsetting.command: record information about the command.output: record the default command output.debug: record full command debugging. ๐--lockoptString โ used to pass options for special cases tolvmlockd. Seelvmlockd(8)for more information. ๐--logonlyโ suppress command report and display only log report. ๐--longhelpโ display long help text. ๐-m,--mapsโ display the mapping of physical extents to LVs and logical extents. ๐บ๏ธ--nameprefixesโ add an"LVM2_"prefix plus the field name to the output. Useful with--noheadingsto produce a list offield=valuepairs that can be used to set environment variables (for example, in udev rules). ๐ท๏ธ--noheadingsโ suppress the headings line that is normally the first line of output. Useful if grepping the output. ๐--nohintsโ do not use the hints file to locate devices for PVs. A command may read more devices to find PVs when hints are not used. The command will still perform standard hint file invalidation where appropriate. ๐ก--nolockingโ disable locking. Use with caution, concurrent commands may produce incorrect results. โ ๏ธ--nosuffixโ suppress the suffix on output sizes. Use with--units(excepthandH) if processing the output. ๐ข-o,--optionsString โ comma-separated, ordered list of fields to display in columns. String arg syntax is:[+|-|#]Field1[,Field2 ...]The prefix+will append the specified fields to the default fields,-will remove the specified fields from the default fields, and#will compact specified fields (removing them when empty for all rows.) Use-o helpto view the list of all available fields. Use separate lists of fields to add, remove or compact by repeating the-ooption:-o+field1,field2 -o-field3,field4 -o#field5. These lists are evaluated from left to right. Use field namelv_allto view all LV fields,vg_allall VG fields,pv_allall PV fields,seg_allall LV segment fields, andpvseg_allall PV segment fields. See thelvm.conf(5)report section for more config options. Seelvmreport(7)for more information about reporting. ๐งฎ--profileString โ an alias for--commandprofileor--metadataprofile, depending on the command. ๐ซ-q,--quiet ...โ suppress output and log messages. Overrides--debugand--verbose. Repeat once to also suppress any prompts with answer 'no'. ๐คซ--readonlyโ prevent the command from making changes, including activation and metadata updates. (See--permission rfor read only LVs.) ๐--reportformatbasic|json|json_stdโ overrides current output format for reports which is defined globally by thereport/output_formatsetting inlvm.conf(5).basicis the original format with columns and rows. If there is more than one report per command, each report is prefixed with the report name for identification.jsonproduces report output in JSON format.json_stdproduces report output in JSON format which is more compliant with the JSON standard. Seelvmreport(7)for more information. ๐--rowsโ output columns as rows. โ๏ธ--segmentsโ ngl bestie, the original man page gives absolutely no description here, it just says--segmentsand moves on. The silence is loud. ๐-S,--selectString โ select objects for processing and reporting based on specified criteria. The criteria syntax is described by--select helpandlvmreport(7). For reporting commands, one row is displayed for each object matching the criteria. See--options helpfor selectable object fields. Rows can be displayed with an additional"selected"field (-o selected) showing1if the row matches the selection and0otherwise. For non-reporting commands which process LVM entities, the selection is used to choose items to process. ๐ฏ--separatorString โ string to use to separate each column. Useful if grepping the output. ๐ช--sharedโ report/display shared VGs that would otherwise be skipped whenlvmlockdis not being used on the host. Seelvmlockd(8)for more information about shared VGs. ๐ค-s,--shortโ only display the size of the given PVs. ๐-O,--sortString โ comma-separated ordered list of columns to sort by. Replaces the default selection. Precede any column with-for a reverse sort on that column. ๐-t,--testโ run in test mode. Commands will not update metadata. This is implemented by disabling all metadata writing but nevertheless returning success to the calling function. This may lead to unusual error messages in multi-stage operations if a tool relies on reading back metadata it believes has changed but hasn't. ๐งช--unbufferedโ produce output immediately without sorting or aligning the columns properly. ๐--units[Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|Eโ all sizes are output in these units: human-(r)eadable with'<'rounding indicator, (h)uman-readable, (b)ytes, (s)ectors, (k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes, (p)etabytes, (e)xabytes. Capitalise to use multiples of 1000 (S.I.) instead of 1024. Custom units can be specified, e.g.--units 3M. ๐--unquotedโ when used with--nameprefixes, output values in thefield=valuepairs are not quoted. โ๏ธ-v,--verbose ...โ set verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr. ๐ฃ๏ธ--versionโ display version information. ๐ท๏ธ-y,--yesโ do not prompt for confirmation interactively but always assume the answer yes. Use with extreme caution. (For automatic no, see-qq.) โ ๏ธ
๐ซถ VARIABLES ๐ซถ
PVโ Physical Volume name, a device path under/dev. For commands managing physical extents, a PV positional arg generally accepts a suffix indicating a range (or multiple ranges) of physical extents (PEs). When the first PE is omitted, it defaults to the start of the device, and when the last PE is omitted it defaults to the end.
Start and end range (inclusive): PV[:PE-PE] ...
Start and length range (counting from 0): PV[:PE+PE] ...
Tagโ Tag name. Seelvm(8)for information about tag names and using tags in place of a VG, LV or PV. ๐ท๏ธStringโ See the option description for information about the string content. ๐Size[UNIT]โ Size is an input number that accepts an optional unit. Input units are always treated as base two values, regardless of capitalization, e.g.'k'and'K'both refer to1024. The default input unit is specified by letter, followed by|UNIT.UNITrepresents other possible input units:b|Bis bytes,s|Sis sectors of 512 bytes,k|Kis KiB,m|Mis MiB,g|Gis GiB,t|Tis TiB,p|Pis PiB,e|Eis EiB. (This should not be confused with the output control--units, where capital letters mean multiple of 1000.) ๐
๐ธ ENVIRONMENT VARIABLES ๐ธ
okay so bestie, quick tea on the environment variables ๐ โ everything lvm actually reads from your environment is documented over in lvm(8), so that's where you go to get the full lore. No secrets here.
But here's the cute part: pretty much anywhere a command is being dramatic and demanding a required VG parameter, you can usually just hand it LVM_VG_NAME instead. Like, substitute it in. That's it. That's the trick. ๐
๐ SEE ALSO ๐
the whole extended lvm friend group, in actual reading order:
the LVM mothership & config crew
the physical volume girlies (you are here, literally)
pvchange(8),pvck(8),pvcreate(8),pvdisplay(8),pvmove(8),pvremove(8),pvresize(8),pvs(8),pvscan(8)
the volume group squad
vgcfgbackup(8),vgcfgrestore(8),vgchange(8),vgck(8),vgcreate(8),vgconvert(8),vgdisplay(8),vgexport(8),vgextend(8),vgimport(8),vgimportclone(8),vgimportdevices(8),vgmerge(8),vgmknodes(8),vgreduce(8),vgremove(8),vgrename(8),vgs(8),vgscan(8),vgsplit(8)
the logical volume icons โจ
lvcreate(8),lvchange(8),lvconvert(8),lvdisplay(8),lvextend(8),lvreduce(8),lvremove(8),lvrename(8),lvresize(8),lvs(8),lvscan(8)
the utilities that do the most
the daemons & sidekicks
section 7 supremacy โ the deep lore
bestie that's the WHOLE page, we ate and left zero crumbs ๐ every single reference is still there, untouched, character for character โ I would never do the manual dirty like that.
and that's a wrap! ๐ this little masterpiece is brought to you by Red Hat, Inc., stamped LVM TOOLS 2.03.44(2), dated 2026-10-27, and filed under PVDISPLAY(8). go forth and read your physical volumes, my gorgeous little sysadmin ๐ฆ๐ periodt.
๐ฆ where this page comes from
- arch rolling: lvm2 2.03.44-1 ยท GPL-2.0-only AND LGPL-2.1-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms