1PVS(8)                      System Manager's Manual                     PVS(8)
2
3
4

NAME

6       pvs - Display information about physical volumes
7

SYNOPSIS

9       pvs
10           [ option_args ]
11           [ position_args ]
12

DESCRIPTION

14       pvs produces formatted output about PVs.
15

USAGE

17       pvs
18           [ -a|--all ]
19           [ -o|--options String ]
20           [ -S|--select String ]
21           [ -O|--sort String ]
22           [    --segments ]
23           [    --aligned ]
24           [    --binary ]
25           [    --configreport log|vg|lv|pv|pvseg|seg ]
26           [    --foreign ]
27           [    --ignorelockingfailure ]
28           [    --ignoreskippedcluster ]
29           [    --logonly ]
30           [    --nameprefixes ]
31           [    --noheadings ]
32           [    --nolocking ]
33           [    --nosuffix ]
34           [    --readonly ]
35           [    --reportformat basic|json ]
36           [    --rows ]
37           [    --separator String ]
38           [    --shared ]
39           [    --trustcache ]
40           [    --unbuffered ]
41           [    --units r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
42           [    --unquoted ]
43           [ COMMON_OPTIONS ]
44           [ PV|Tag ... ]
45
46       Common options for lvm:
47           [ -d|--debug ]
48           [ -h|--help ]
49           [ -q|--quiet ]
50           [ -t|--test ]
51           [ -v|--verbose ]
52           [ -y|--yes ]
53           [    --commandprofile String ]
54           [    --config String ]
55           [    --driverloaded y|n ]
56           [    --lockopt String ]
57           [    --longhelp ]
58           [    --profile String ]
59           [    --version ]
60

OPTIONS

62       --aligned
63              Use with --separator to align the output columns
64
65       -a|--all
66              Show information about devices that have not been initialized by
67              LVM, i.e. they are not PVs.
68
69       --binary
70              Use binary values "0" or "1" instead of descriptive literal val‐
71              ues for columns that have exactly two valid values to report
72              (not counting the "unknown" value which denotes that the value
73              could not be determined).
74
75       --commandprofile String
76              The command profile to use for command configuration.  See
77              lvm.conf(5) for more information about profiles.
78
79       --config String
80              Config settings for the command. These override lvm.conf set‐
81              tings.  The String arg uses the same format as lvm.conf, or may
82              use section/field syntax.  See lvm.conf(5) for more information
83              about config.
84
85       --configreport log|vg|lv|pv|pvseg|seg
86              See lvmreport(7).
87
88       -d|--debug ...
89              Set debug level. Repeat from 1 to 6 times to increase the detail
90              of messages sent to the log file and/or syslog (if configured).
91
92       --driverloaded y|n
93              If set to no, the command will not attempt to use device-mapper.
94              For testing and debugging.
95
96       --foreign
97              Report/display foreign VGs that would otherwise be skipped.  See
98              lvmsystemid(7) for more information about foreign VGs.
99
100       -h|--help
101              Display help text.
102
103       --ignorelockingfailure
104              Allows a command to continue with read-only metadata operations
105              after locking failures.
106
107       --ignoreskippedcluster
108              Use to avoid exiting with an non-zero status code if the command
109              is run without clustered locking and clustered VGs are skipped.
110
111       --lockopt String
112              Used to pass options for special cases to lvmlockd.  See lvm‐
113              lockd(8) for more information.
114
115       --logonly
116              Suppress command report and display only log report.
117
118       --longhelp
119              Display long help text.
120
121       --nameprefixes
122              Add an "LVM2_" prefix plus the field name to the output. Useful
123              with --noheadings to produce a list of field=value pairs that
124              can be used to set environment variables (for example, in udev
125              rules).
126
127       --noheadings
128              Suppress the headings line that is normally the first line of
129              output.  Useful if grepping the output.
130
131       --nolocking
132              Disable locking.
133
134       --nosuffix
135              Suppress the suffix on output sizes. Use with --units (except h
136              and H) if processing the output.
137
138       -o|--options String
139              Comma-separated, ordered list of fields to display in columns.
140              String arg syntax is: [+|-|#]Field1[,Field2 ...]  The prefix +
141              will append the specified fields to the default fields, - will
142              remove the specified fields from the default fields, and # will
143              compact specified fields (removing them when empty for all
144              rows.)  Use -o help to view the list of all available fields.
145              Use separate lists of fields to add, remove or compact by
146              repeating the -o option: -o+field1,field2 -o-field3,field4
147              -o#field5.  These lists are evaluated from left to right.  Use
148              field name lv_all to view all LV fields, vg_all all VG fields,
149              pv_all all PV fields, pvseg_all all PV segment fields, seg_all
150              all LV segment fields, and pvseg_all all PV segment columns.
151              See the lvm.conf report section for more config options.  See
152              lvmreport(7) for more information about reporting.
153
154       --profile String
155              An alias for --commandprofile or --metadataprofile, depending on
156              the command.
157
158       -q|--quiet ...
159              Suppress output and log messages. Overrides --debug and --ver‐
160              bose.  Repeat once to also suppress any prompts with answer
161              'no'.
162
163       --readonly
164              Run the command in a special read-only mode which will read on-
165              disk metadata without needing to take any locks. This can be
166              used to peek inside metadata used by a virtual machine image
167              while the virtual machine is running.  It can also be used to
168              peek inside the metadata of clustered VGs when clustered locking
169              is not configured or running. No attempt will be made to commu‐
170              nicate with the device-mapper kernel driver, so this option is
171              unable to report whether or not LVs are actually in use.
172
173       --reportformat basic|json
174              Overrides current output format for reports which is defined
175              globally by the report/output_format setting in lvm.conf.  basic
176              is the original format with columns and rows.  If there is more
177              than one report per command, each report is prefixed with the
178              report name for identification. json produces report output in
179              JSON format. See lvmreport(7) for more information.
180
181       --rows
182              Output columns as rows.
183
184       --segments
185              Produces one line of output for each contiguous allocation of
186              space on each PV, showing the start (pvseg_start) and length
187              (pvseg_size) in units of physical extents.
188
189       -S|--select String
190              Select objects for processing and reporting based on specified
191              criteria.  The criteria syntax is described by --select help and
192              lvmreport(7).  For reporting commands, one row is displayed for
193              each object matching the criteria.  See --options help for
194              selectable object fields.  Rows can be displayed with an addi‐
195              tional "selected" field (-o selected) showing 1 if the row
196              matches the selection and 0 otherwise.  For non-reporting com‐
197              mands which process LVM entities, the selection is used to
198              choose items to process.
199
200       --separator String
201              String to use to separate each column. Useful if grepping the
202              output.
203
204       --shared
205              Report/display shared VGs that would otherwise be skipped when
206              lvmlockd is not being used on the host.  See lvmlockd(8) for
207              more information about shared VGs.
208
209       -O|--sort String
210              Comma-separated ordered list of columns to sort by. Replaces the
211              default selection. Precede any column with - for a reverse sort
212              on that column.
213
214       -t|--test
215              Run in test mode. Commands will not update metadata.  This is
216              implemented by disabling all metadata writing but nevertheless
217              returning success to the calling function. This may lead to
218              unusual error messages in multi-stage operations if a tool
219              relies on reading back metadata it believes has changed but
220              hasn't.
221
222       --trustcache
223              Avoids certain device scanning during command processing. Do not
224              use.
225
226       --unbuffered
227              Produce output immediately without sorting or aligning the col‐
228              umns properly.
229
230       --units r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E
231              All sizes are output in these units: human-(r)eadable with '<'
232              rounding indicator, (h)uman-readable, (b)ytes, (s)ectors,
233              (k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes, (p)etabytes,
234              (e)xabytes.  Capitalise to use multiples of 1000 (S.I.) instead
235              of 1024.  Custom units can be specified, e.g. --units 3M.
236
237       --unquoted
238              When used with --nameprefixes, output values in the field=value
239              pairs are not quoted.
240
241       -v|--verbose ...
242              Set verbose level. Repeat from 1 to 4 times to increase the
243              detail of messages sent to stdout and stderr.
244
245       --version
246              Display version information.
247
248       -y|--yes
249              Do not prompt for confirmation interactively but always assume
250              the answer yes. Use with extreme caution.  (For automatic no,
251              see -qq.)
252

VARIABLES

254       PV
255              Physical Volume name, a device path under  /dev.   For  commands
256              managing physical extents, a PV positional arg generally accepts
257              a suffix indicating a range (or  multiple  ranges)  of  physical
258              extents  (PEs). When the first PE is omitted, it defaults to the
259              start of the device, and when the last PE is omitted it defaults
260              to  end.   Start and end range (inclusive): PV[:PE-PE]...  Start
261              and length range (counting from 0): PV[:PE+PE]...
262
263       Tag
264              Tag name.  See lvm(8) for information about tag names and  using
265              tags in place of a VG, LV or PV.
266
267       String
268              See the option description for information about the string con‐
269              tent.
270
271       Size[UNIT]
272              Size is an input number that accepts an  optional  unit.   Input
273              units are always treated as base two values, regardless of capi‐
274              talization, e.g. 'k' and 'K' both refer to  1024.   The  default
275              input unit is specified by letter, followed by |UNIT.  UNIT rep‐
276              resents other possible input units:  bBsSkKmMgGtTpPeE.   b|B  is
277              bytes,  s|S  is  sectors  of 512 bytes, k|K is kilobytes, m|M is
278              megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes,
279              e|E  is  exabytes.  (This should not be confused with the output
280              control --units, where capital letters mean multiple of 1000.)
281

ENVIRONMENT VARIABLES

283       See lvm(8) for information about environment  variables  used  by  lvm.
284       For example, LVM_VG_NAME can generally be substituted for a required VG
285       parameter.
286

NOTES

288       The pv_attr bits are:
289
290       1  (d)uplicate, (a)llocatable, (u)sed
291
292       2  e(x)ported
293
294       3  (m)issing
295

SEE ALSO

297       lvm(8) lvm.conf(5) lvmconfig(8)
298
299       pvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)
300       pvresize(8) pvs(8) pvscan(8)
301
302       vgcfgbackup(8)  vgcfgrestore(8)  vgchange(8) vgck(8) vgcreate(8) vgcon‐
303       vert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport‐
304       clone(8)  vgmerge(8)  vgmknodes(8)  vgreduce(8) vgremove(8) vgrename(8)
305       vgs(8) vgscan(8) vgsplit(8)
306
307       lvcreate(8) lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8)  lvre‐
308       duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
309
310       lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
311       vate(8) lvmdump(8)
312
313       dmeventd(8) lvmetad(8) lvmpolld(8) lvmlockd(8)  lvmlockctl(8)  clvmd(8)
314       cmirrord(8) lvmdbusd(8)
315
316       lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
317
318
319
320Red Hat, Inc.         LVM TOOLS 2.02.183(2) (2018-12-07)                PVS(8)
Impressum