1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00
lvm2/man/pvdisplay.8_pregen

462 lines
12 KiB
Plaintext
Raw Normal View History

.TH PVDISPLAY 8 "LVM TOOLS #VERSION#" "Red Hat, Inc."
2021-04-15 21:11:52 +03:00
.
.SH NAME
2021-04-15 21:11:52 +03:00
.
pvdisplay \(em Display various attributes of physical volume(s)
.
.SH SYNOPSIS
2021-04-15 21:11:52 +03:00
.
\fBpvdisplay\fP
.br
[ \fIoption_args\fP ]
.br
[ \fIposition_args\fP ]
.br
2021-04-15 21:11:52 +03:00
.
.SH DESCRIPTION
2021-04-15 21:11:52 +03:00
.
pvdisplay shows the attributes of PVs, like size, physical extent size,
space used for the VG descriptor area, etc.
2021-04-15 21:11:52 +03:00
.P
\fBpvs\fP(8) is a preferred alternative that shows the same information
and more, using a more compact and configurable output format.
2021-04-15 21:11:52 +03:00
.
.SH USAGE
2021-04-15 21:11:52 +03:00
.
\fBpvdisplay\fP
.br
.RS 4
.ad l
[ \fB-a\fP|\fB--all\fP ]
.br
[ \fB-c\fP|\fB--colon\fP ]
.br
[ \fB-C\fP|\fB--columns\fP ]
.br
[ \fB-m\fP|\fB--maps\fP ]
.br
[ \fB-o\fP|\fB--options\fP \fIString\fP ]
.br
[ \fB-S\fP|\fB--select\fP \fIString\fP ]
.br
[ \fB-s\fP|\fB--short\fP ]
.br
[ \fB-O\fP|\fB--sort\fP \fIString\fP ]
.br
[ \fB--aligned\fP ]
.br
[ \fB--binary\fP ]
.br
[ \fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP ]
.br
[ \fB--foreign\fP ]
.br
[ \fB--ignorelockingfailure\fP ]
.br
[ \fB--logonly\fP ]
.br
[ \fB--noheadings\fP ]
.br
[ \fB--nosuffix\fP ]
.br
[ \fB--readonly\fP ]
.br
2022-08-05 11:31:08 +03:00
[ \fB--reportformat\fP \fBbasic\fP|\fBjson\fP|\fBjson_std\fP ]
2022-07-11 02:02:22 +03:00
.br
[ \fB--separator\fP \fIString\fP ]
.br
[ \fB--shared\fP ]
.br
[ \fB--unbuffered\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB--units\fP \c
.nh
\%[\fINumber\fP]\fBr\fP|\:\fBR\fP|\:\fBh\fP|\:\fBH\fP|\:\fBb\fP|\:\fBB\fP|\:\fBs\fP|\:\fBS\fP|\:\fBk\fP|\:\fBK\fP|\:\fBm\fP|\:\fBM\fP|\:\fBg\fP|\:\fBG\fP|\:\fBt\fP|\:\fBT\fP|\:\fBp\fP|\:\fBP\fP|\:\fBe\fP|\:\fBE\fP
.hy
]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP|\fITag\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
Common options for lvm:
.
.RS 4
.ad l
[ \fB-d\fP|\fB--debug\fP ]
.br
[ \fB-h\fP|\fB--help\fP ]
.br
[ \fB-q\fP|\fB--quiet\fP ]
.br
[ \fB-t\fP|\fB--test\fP ]
.br
[ \fB-v\fP|\fB--verbose\fP ]
.br
[ \fB-y\fP|\fB--yes\fP ]
.br
[ \fB--commandprofile\fP \fIString\fP ]
.br
[ \fB--config\fP \fIString\fP ]
.br
2021-02-24 14:40:15 +03:00
[ \fB--devices\fP \fIPV\fP ]
.br
[ \fB--devicesfile\fP \fIString\fP ]
.br
[ \fB--driverloaded\fP \fBy\fP|\fBn\fP ]
.br
2021-08-06 14:23:11 +03:00
[ \fB--journal\fP \fIString\fP ]
.br
2018-01-12 03:30:52 +03:00
[ \fB--lockopt\fP \fIString\fP ]
.br
[ \fB--longhelp\fP ]
.br
2021-09-22 15:48:58 +03:00
[ \fB--nohints\fP ]
.br
2018-06-08 23:16:00 +03:00
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
.br
[ \fB--version\fP ]
.ad b
.RE
2021-04-15 21:11:52 +03:00
.
.SH OPTIONS
2021-04-15 21:11:52 +03:00
.
.
.HP
\fB--aligned\fP
.br
2021-04-08 22:08:48 +03:00
Use with --separator to align the output columns
2021-04-15 21:11:52 +03:00
.
.HP
\fB-a\fP|\fB--all\fP
.br
Show information about devices that have not been initialized
by LVM, i.e. they are not PVs.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--binary\fP
.br
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).
2021-04-15 21:11:52 +03:00
.
.HP
\fB-c\fP|\fB--colon\fP
.br
Generate colon separated output for easier parsing in scripts or programs.
2017-06-27 17:47:00 +03:00
Also see \fBvgs\fP(8) which provides considerably more control over the output.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-C\fP|\fB--columns\fP
.br
2017-06-27 17:47:00 +03:00
Display output in columns, the equivalent of \fBvgs\fP(8).
Options listed are the same as options given in \fBvgs\fP(8).
2021-04-15 21:11:52 +03:00
.
.HP
\fB--commandprofile\fP \fIString\fP
.br
The command profile to use for command configuration.
See \fBlvm.conf\fP(5) for more information about profiles.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--config\fP \fIString\fP
.br
2021-04-15 21:11:52 +03:00
Config settings for the command. These override \fBlvm.conf\fP(5) settings.
The String arg uses the same format as \fBlvm.conf\fP(5),
or may use section/field syntax.
See \fBlvm.conf\fP(5) for more information about config.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--configreport\fP \fBlog\fP|\fBvg\fP|\fBlv\fP|\fBpv\fP|\fBpvseg\fP|\fBseg\fP
.br
2021-04-08 22:08:48 +03:00
See \fBlvmreport\fP(7).
2021-04-15 21:11:52 +03:00
.
.HP
\fB-d\fP|\fB--debug\fP ...
.br
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).
2021-04-15 21:11:52 +03:00
.
.HP
2021-02-24 14:40:15 +03:00
\fB--devices\fP \fIPV\fP
.br
2022-05-18 19:15:30 +03:00
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
2021-02-24 14:40:15 +03:00
the devices file.
2021-04-15 21:11:52 +03:00
.
.HP
2021-02-24 14:40:15 +03:00
\fB--devicesfile\fP \fIString\fP
.br
A file listing devices that LVM should use.
2021-04-15 21:11:52 +03:00
The file must exist in \fI#DEFAULT_SYS_DIR#/devices/\fP and is managed
with the \fBlvmdevices\fP(8) command.
This overrides the \fBlvm.conf\fP(5) \fBdevices/devicesfile\fP and
\fBdevices/use_devicesfile\fP settings.
.
.HP
\fB--driverloaded\fP \fBy\fP|\fBn\fP
.br
If set to no, the command will not attempt to use device-mapper.
For testing and debugging.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--foreign\fP
.br
Report/display foreign VGs that would otherwise be skipped.
2017-06-27 17:47:00 +03:00
See \fBlvmsystemid\fP(7) for more information about foreign VGs.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-h\fP|\fB--help\fP
.br
2021-04-08 22:08:48 +03:00
Display help text.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--ignorelockingfailure\fP
.br
Allows a command to continue with read-only metadata
operations after locking failures.
2021-04-15 21:11:52 +03:00
.
.HP
2021-08-06 14:23:11 +03:00
\fB--journal\fP \fIString\fP
.br
Record information in the systemd journal.
This information is in addition to information
enabled by the lvm.conf log/journal setting.
command: record information about the command.
output: record the default command output.
debug: record full command debugging.
.
.HP
2018-01-12 03:30:52 +03:00
\fB--lockopt\fP \fIString\fP
.br
Used to pass options for special cases to lvmlockd.
See \fBlvmlockd\fP(8) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--logonly\fP
.br
2021-04-08 22:08:48 +03:00
Suppress command report and display only log report.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--longhelp\fP
.br
2021-04-08 22:08:48 +03:00
Display long help text.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-m\fP|\fB--maps\fP
.br
2021-04-08 22:08:48 +03:00
Display the mapping of physical extents to LVs and logical extents.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--noheadings\fP
.br
Suppress the headings line that is normally the first line of output.
Useful if grepping the output.
2021-04-15 21:11:52 +03:00
.
.HP
2021-09-22 15:48:58 +03:00
\fB--nohints\fP
.br
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.
.
.HP
2018-06-08 23:16:00 +03:00
\fB--nolocking\fP
.br
2022-05-02 14:16:25 +03:00
Disable locking. Use with caution, concurrent commands may produce
incorrect results.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--nosuffix\fP
.br
Suppress the suffix on output sizes. Use with --units
(except h and H) if processing the output.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-o\fP|\fB--options\fP \fIString\fP
.br
Comma-separated, ordered list of fields to display in columns.
2021-04-15 21:11:52 +03:00
String arg syntax is: [\fB+\fP|\fB-\fP|\fB#\fP]\fIField1\fP[\fB,\fP\fIField2\fP ...]
The prefix \fB+\fP will append the specified fields to the default fields,
\fB-\fP will remove the specified fields from the default fields, and
\fB#\fP will compact specified fields (removing them when empty for all rows.)
Use \fB-o help\fP to view the list of all available fields.
Use separate lists of fields to add, remove or compact by repeating the -o option:
-o+field1,field2 -o-field3,field4 -o#field5.
These lists are evaluated from left to right.
Use field name \fBlv_all\fP to view all LV fields,
\fBvg_all\fP all VG fields,
\fBpv_all\fP all PV fields,
\fBpvseg_all\fP all PV segment fields,
\fBseg_all\fP all LV segment fields, and
\fBpvseg_all\fP all PV segment columns.
2021-04-15 21:11:52 +03:00
See the \fBlvm.conf\fP(5) report section for more config options.
2017-06-27 17:47:00 +03:00
See \fBlvmreport\fP(7) for more information about reporting.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--profile\fP \fIString\fP
.br
An alias for --commandprofile or --metadataprofile, depending
on the command.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-q\fP|\fB--quiet\fP ...
.br
Suppress output and log messages. Overrides --debug and --verbose.
2017-05-03 13:23:15 +03:00
Repeat once to also suppress any prompts with answer 'no'.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--readonly\fP
.br
2023-12-12 22:01:16 +03:00
Prevent the command from making changes, including activation and
metadata updates.
2021-04-15 21:11:52 +03:00
.
.HP
2022-08-05 11:31:08 +03:00
\fB--reportformat\fP \fBbasic\fP|\fBjson\fP|\fBjson_std\fP
2022-07-11 02:02:22 +03:00
.br
Overrides current output format for reports which is defined globally by
the report/output_format setting in \fBlvm.conf\fP(5).
\fBbasic\fP is 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. \fBjson\fP produces report
2022-08-05 11:31:08 +03:00
output in JSON format. \fBjson_std\fP produces report output in
JSON format which is more compliant with JSON standard.
See \fBlvmreport\fP(7) for more information.
2022-07-11 02:02:22 +03:00
.
.HP
\fB-S\fP|\fB--select\fP \fIString\fP
.br
Select objects for processing and reporting based on specified criteria.
The criteria syntax is described by \fB--select help\fP and \fBlvmreport\fP(7).
For reporting commands, one row is displayed for each object matching the criteria.
See \fB--options help\fP for selectable object fields.
Rows can be displayed with an additional "selected" field (-o selected)
showing 1 if the row matches the selection and 0 otherwise.
For non-reporting commands which process LVM entities, the selection is
used to choose items to process.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--separator\fP \fIString\fP
.br
2021-04-08 22:08:48 +03:00
String to use to separate each column. Useful if grepping the output.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--shared\fP
.br
Report/display shared VGs that would otherwise be skipped when
lvmlockd is not being used on the host.
2017-06-27 17:47:00 +03:00
See \fBlvmlockd\fP(8) for more information about shared VGs.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-s\fP|\fB--short\fP
.br
2021-04-08 22:08:48 +03:00
Only display the size of the given PVs.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-O\fP|\fB--sort\fP \fIString\fP
.br
Comma-separated ordered list of columns to sort by. Replaces the default
selection. Precede any column with \fB-\fP for a reverse sort on that column.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-t\fP|\fB--test\fP
.br
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.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--unbuffered\fP
.br
2021-04-08 22:08:48 +03:00
Produce output immediately without sorting or aligning the columns properly.
2021-04-15 21:11:52 +03:00
.
.HP
.ad l
2021-04-15 21:11:52 +03:00
\fB--units\fP \c
.nh
\%[\fINumber\fP]\fBr\fP|\:\fBR\fP|\:\fBh\fP|\:\fBH\fP|\:\fBb\fP|\:\fBB\fP|\:\fBs\fP|\:\fBS\fP|\:\fBk\fP|\:\fBK\fP|\:\fBm\fP|\:\fBM\fP|\:\fBg\fP|\:\fBG\fP|\:\fBt\fP|\:\fBT\fP|\:\fBp\fP|\:\fBP\fP|\:\fBe\fP|\:\fBE\fP
.hy
2021-04-08 22:08:48 +03:00
.ad b
2021-04-15 21:11:52 +03:00
.br
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.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-v\fP|\fB--verbose\fP ...
.br
Set verbose level. Repeat from 1 to 4 times to increase the detail
of messages sent to stdout and stderr.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--version\fP
.br
2021-04-08 22:08:48 +03:00
Display version information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-y\fP|\fB--yes\fP
.br
Do not prompt for confirmation interactively but always assume the
answer yes. Use with extreme caution.
(For automatic no, see -qq.)
2021-04-15 21:11:52 +03:00
.
.SH VARIABLES
2021-04-15 21:11:52 +03:00
.
.TP
.I 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 end.
Start and end range (inclusive): \fIPV\fP[\fB:\fP\fIPE\fP\fB-\fP\fIPE\fP]...
Start and length range (counting from 0): \fIPV\fP[\fB:\fP\fIPE\fP\fB+\fP\fIPE\fP]...
2021-04-15 21:11:52 +03:00
.TP
.I Tag
Tag name. See \fBlvm\fP(8) for information about tag names and using tags
in place of a VG, LV or PV.
2021-04-15 21:11:52 +03:00
.TP
.I String
See the option description for information about the string content.
2021-04-15 21:11:52 +03:00
.TP
.IR 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 to 1024.
The default input unit is specified by letter, followed by |UNIT.
2021-04-15 21:11:52 +03:00
UNIT represents other possible input units:
.BR b | B
is bytes,
.BR s | S
is sectors of 512 bytes,
.BR k | K
is KiB,
.BR m | M
is MiB,
.BR g | G
is GiB,
.BR t | T
is TiB,
.BR p | P
is PiB,
.BR e | E
is EiB.
(This should not be confused with the output control --units, where
capital letters mean multiple of 1000.)
2021-04-15 21:11:52 +03:00
.
.SH ENVIRONMENT VARIABLES
2021-04-15 21:11:52 +03:00
.
See \fBlvm\fP(8) for information about environment variables used by lvm.
For example, LVM_VG_NAME can generally be substituted for a required VG parameter.