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

NAME

6       lvs — report information about logical volumes
7

SYNOPSIS

9       lvs  [--aligned]  [--binary]  [-a|--all] [--commandprofile ProfileName]
10       [-d|--debug] [-h|-?|--help] [--ignorelockingfailure]  [--ignoreskipped‐
11       cluster]  [--nameprefixes]  [--noheadings]  [--nosuffix]  [-o|--options
12       [+|-|#]Field[,Field]]      [-O|--sort      [+|-]Key1[,[+|-]Key2[,...]]]
13       [-P|--partial] [--rows] [-S|--select Selection] [--separator Separator]
14       [--segments] [--unbuffered] [--units  hHbBsSkKmMgGtTpPeE]  [--unquoted]
15       [-v|--verbose]   [--version]  [VolumeGroupName|LogicalVolume{Name|Path}
16       [VolumeGroupName|LogicalVolume{Name|Path} ...]]
17
18

DESCRIPTION

20       lvs produces formatted output about logical volumes.
21

OPTIONS

23       See lvm(8) for common options.
24
25       --aligned
26              Use with --separator to align the output columns.
27
28       --binary
29              Use binary values "0" or "1" instead of descriptive literal val‐
30              ues  for  columns  that  have exactly two valid values to report
31              (not counting the "unknown" value which denotes that  the  value
32              could not be determined).
33
34       --all  Include information in the output about internal Logical Volumes
35              that are components of normally-accessible Logical Volumes, such
36              as mirrors, but which are not independently accessible (e.g. not
37              mountable).  The names of  such  Logical  Volumes  are  enclosed
38              within square brackets in the output.  For example, after creat‐
39              ing a mirror using lvcreate -m1 --mirrorlog disk ,  this  option
40              will  reveal  three internal Logical Volumes, with suffixes mim‐
41              age_0, mimage_1, and mlog.
42
43       --nameprefixes
44              Add an "LVM2_" prefix plus the field name to the output.  Useful
45              with  --noheadings  to  produce a list of field=value pairs that
46              can be used  to  set  environment  variables  (for  example,  in
47              udev(7) rules).
48
49       --noheadings
50              Suppress  the  headings  line that is normally the first line of
51              output.  Useful if grepping the output.
52
53       --nosuffix
54              Suppress the suffix on output sizes.  Use with --units (except h
55              and H) if processing the output.
56
57       -o, --options
58              Comma-separated ordered list of columns.
59
60              Precede  the list with '+' to append to the current list of col‐
61              umns, '-' to remove from the current list of columns or  '#'  to
62              compact  given columns. The -o option can be repeated, providing
63              several lists. These lists are evaluated from left to right.
64
65              Use -o lv_all to select  all  logical  volume  columns,  and  -o
66              seg_all to select all logical volume segment columns.
67
68              Use -o help to view the full list of columns available.
69
70              Column  names  include:  chunk_size,  convert_lv,  copy_percent,
71              data_lv, devices, discards, lv_attr,  lv_host,  lv_kernel_major,
72              lv_kernel_minor,   lv_kernel_read_ahead,   lv_major,   lv_minor,
73              lv_name, lv_path, lv_profile, lv_read_ahead,  lv_size,  lv_tags,
74              lv_time,  lv_uuid,  metadata_lv,  mirror_log,  modules, move_pv,
75              origin,    origin_size,     pool_lv,     raid_max_recovery_rate,
76              raid_min_recovery_rate,  raid_mismatch_count,  raid_sync_action,
77              raid_write_behind,     region_size,     segtype,      seg_count,
78              seg_pe_ranges,  seg_size,  seg_size_pe, seg_start, seg_start_pe,
79              seg_tags,  snap_percent,  stripes,  stripe_size,   sync_percent,
80              thin_count, transaction_id, zero.
81
82              With --segments, any "seg_" prefixes are optional; otherwise any
83              "lv_" prefixes are optional. Columns  mentioned  in  vgs(8)  can
84              also be chosen.
85
86              The lv_attr bits are:
87
88              1  Volume  type: (C)ache, (m)irrored, (M)irrored without initial
89                 sync,  (o)rigin,  (O)rigin  with  merging  snapshot,  (r)aid,
90                 (R)aid  without initial sync, (s)napshot, merging (S)napshot,
91                 (p)vmove, (v)irtual, mirror or raid (i)mage, mirror  or  raid
92                 (I)mage out-of-sync, mirror (l)og device, under (c)onversion,
93                 thin (V)olume, (t)hin pool, (T)hin pool data,  raid  or  pool
94                 m(e)tadata or pool metadata spare.
95
96              2  Permissions: (w)riteable, (r)ead-only, (R)ead-only activation
97                 of non-read-only volume
98
99              3  Allocation policy:   (a)nywhere,  (c)ontiguous,  (i)nherited,
100                 c(l)ing,  (n)ormal  This is capitalised if the volume is cur‐
101                 rently locked against allocation changes, for example  during
102                 pvmove(8).
103
104              4  fixed (m)inor
105
106              5  State:  (a)ctive,  (s)uspended,  (I)nvalid  snapshot, invalid
107                 (S)uspended  snapshot,  snapshot  (m)erge  failed,  suspended
108                 snapshot  (M)erge  failed,  mapped  (d)evice  present without
109                 tables, mapped device present with  (i)nactive  table,  thin-
110                 pool  (c)heck needed, suspended thin-pool (C)heck needed, (X)
111                 unknown
112
113              6  device (o)pen, (X) unknown
114
115              7  Target type: (C)ache, (m)irror, (r)aid,  (s)napshot,  (t)hin,
116                 (u)nknown, (v)irtual.  This groups logical volumes related to
117                 the same kernel target together.   So,  for  example,  mirror
118                 images,  mirror  logs as well as mirrors themselves appear as
119                 (m) if they use  the  original  device-mapper  mirror  kernel
120                 driver; whereas the raid equivalents using the md raid kernel
121                 driver all appear  as  (r).   Snapshots  using  the  original
122                 device-mapper driver appear as (s); whereas snapshots of thin
123                 volumes using the new thin provisioning driver appear as (t).
124
125              8  Newly-allocated data blocks are overwritten  with  blocks  of
126                 (z)eroes before use.
127
128              9  Volume  Health,  where  there  are  currently three groups of
129                 attributes identified:
130
131                 Common ones for all Logical Volumes: (p)artial, (X) unknown.
132                 (p)artial signifies that one or more of the Physical  Volumes
133                 this  Logical  Volume  uses  is  missing from the system. (X)
134                 unknown signifies the status is unknown.
135
136                 Related  to   RAID   Logical   Volumes:   (r)efresh   needed,
137                 (m)ismatches exist, (w)ritemostly.
138                 (r)efresh  signifies that one or more of the Physical Volumes
139                 this RAID Logical Volume uses had suffered a write error. The
140                 write error could be due to a temporary failure of that Phys‐
141                 ical Volume or an indication that it is failing.  The  device
142                 should  be refreshed or replaced. (m)ismatches signifies that
143                 the RAID logical volume has portions of the  array  that  are
144                 not  coherent.   Inconsistencies are detected by initiating a
145                 "check" on a RAID logical volume.  (The scrubbing operations,
146                 "check" and "repair", can be performed on a RAID logical vol‐
147                 ume via the 'lvchange' command.)  (w)ritemostly signifies the
148                 devices  in  a  RAID  1  logical volume that have been marked
149                 write-mostly.
150
151                 Related to Thin pool Logical Volumes: (F)ailed, out of (D)ata
152                 space, (M)etadata read only.
153                 (F)ailed  is set if thin pool encounters serious failures and
154                 hence no further I/O is permitted at all. The out  of  (D)ata
155                 space  is set if thin pool has run out of data space. (M)eta‐
156                 data read only signifies that thin  pool  encounters  certain
157                 types  of  failures  but  it's  still possible to do reads at
158                 least, but no metadata changes are allowed.
159
160                 Related to Thin Logical Volumes: (F)ailed.
161                 (F)ailed is set when related thin pool  enters  Failed  state
162                 and no further I/O is permitted at all.
163
164              10 s(k)ip  activation: this volume is flagged to be skipped dur‐
165                 ing activation.
166
167       -O, --sort
168              Comma-separated ordered list of columns to  sort  by.   Replaces
169              the default selection. Precede any column with '-' for a reverse
170              sort on that column.
171
172       --rows Output columns as rows.
173
174       -S, --select Selection
175              Display only rows that match Selection criteria.  All  rows  are
176              displayed  with  the  additional "selected" column (-o selected)
177              showing 1 if the row matches the Selection and 0 otherwise.  The
178              Selection  criteria  are  defined by specifying column names and
179              their valid values (that can include reserved values) while mak‐
180              ing  use  of  supported comparison operators. See lvm(8) and -S,
181              --select description for more detailed  information  about  con‐
182              structing  the  Selection  criteria.  As a quick help and to see
183              full list of column names that can be used in Selection  includ‐
184              ing  the list of reserved values and the set of supported selec‐
185              tion operators, check the output of lvs -S help command.
186
187       --segments
188              Use default columns that emphasize segment information.
189
190       --separator Separator
191              String to use to separate each column.  Useful if  grepping  the
192              output.
193
194       --unbuffered
195              Produce  output immediately without sorting or aligning the col‐
196              umns properly.
197
198       --units hHbBsSkKmMgGtTpPeE
199              All sizes are output in these units: (h)uman-readable,  (b)ytes,
200              (s)ectors,  (k)ilobytes,  (m)egabytes, (g)igabytes, (t)erabytes,
201              (p)etabytes, (e)xabytes.  Capitalise to use  multiples  of  1000
202              (S.I.)  instead  of  1024.   Can  also specify custom units e.g.
203              --units 3M
204
205       --unquoted
206              When used with --nameprefixes, output values in the  field=value
207              pairs are not quoted.
208

SEE ALSO

210       lvm(8), lvdisplay(8), pvs(8), vgs(8)
211
212
213
214Sistina Software UKLVM TOOLS 2.02.143(2)-RHEL6 (2016-12-13)             LVS(8)
Impressum