3
3
lvs \- report information about logical volumes
7
[\-\-aligned] [\-d|\-\-debug] [\-h|\-?|\-\-help]
8
[\-\-ignorelockingfailure] [\-\-nameprefixes] [\-\-noheadings] [\-\-nosuffix]
9
[\-o|\-\-options [+]Field[,Field]]
10
[\-O|\-\-sort [+|-]Key1[,[+|-]Key2[,...]]]
11
[\-P|\-\-partial] [\-\-rows] [\-\-segments]
12
[\-\-separator Separator]
14
[\-\-units hHbBsSkKmMgGtTpPeE]
17
[\-\-version] [VolumeGroupName [VolumeGroupName...]]
8
.RB [ \-d | \-\-debug ]
9
.RB [ \-h | \-? | \-\-help ]
10
.RB [ \-\-ignorelockingfailure ]
11
.RB [ \-\-nameprefixes ]
12
.RB [ \-\-noheadings ]
14
.RB [ \-o | \-\-options
15
.RI [ + ] Field [, Field ]]
17
.RI [ + | - ] Key1 [,[ + | - ] Key2 [,...]]]
18
.RB [ \-P | \-\-partial ]
23
.RB [ \-\-unbuffered ]
25
.IR hHbBsSkKmMgGtTpPeE ]
27
.RB [ \-v | \-\-verbose ]
30
.RI [ VolumeGroupName ...]]
19
33
lvs produces formatted output about logical volumes.
21
See \fBlvm\fP for common options.
24
40
Include information in the output about internal Logical Volumes that
25
41
are components of normally-accessible Logical Volumes, such as mirrors,
26
42
but which are not independently accessible (e.g. not mountable).
29
45
--mirrorlog disk', this option will reveal three internal Logical
30
46
Volumes, with suffixes mimage_0, mimage_1, and mlog.
33
49
Use with \-\-separator to align the output columns.
36
52
Add an "LVM2_" prefix plus the field name to the output. Useful
37
53
with --noheadings to produce a list of field=value pairs that can
38
be used to set environment variables (for example, in \fBudev (7)\fP rules).
54
be used to set environment variables (for example, in
41
59
Suppress the headings line that is normally the first line of output.
42
60
Useful if grepping the output.
45
63
Suppress the suffix on output sizes. Use with \-\-units (except h and H)
46
64
if processing the output.
66
.BR \-o ", " \-\-options
49
67
Comma-separated ordered list of columns. Precede the list with '+' to append
50
68
to the default selection of columns instead of replacing it.
57
75
Column names include:
58
76
lv_uuid, lv_name, lv_path, lv_attr, lv_major, lv_minor, lv_read_ahead, lv_kernel_major,
59
77
lv_kernel_minor, lv_kernel_read_ahead, lv_size, seg_count, origin, origin_size,
60
snap_percent, copy_percent, move_pv, convert_lv, lv_tags, mirror_log, modules,
78
snap_percent, copy_percent, move_pv, convert_lv, lv_tags, mirror_log, thin_pool, modules,
61
79
segtype, stripes, stripesize, regionsize, chunksize, seg_start, seg_start_pe,
62
80
seg_size, seg_tags, seg_pe_ranges, devices.
64
82
With \-\-segments, any "seg_" prefixes are optional; otherwise any "lv_"
65
prefixes are optional. Columns mentioned in \fBvgs (8)\fP
83
prefixes are optional. Columns mentioned in
66
85
can also be chosen.
68
87
The lv_attr bits are:
71
90
Volume type: (m)irrored, (M)irrored without initial sync, (o)rigin,
72
(O)rigin with merging snapshot, (s)napshot, merging (S)napshot, (p)vmove,
73
(v)irtual, mirror (i)mage, mirror (I)mage out-of-sync, under (c)onversion
91
(O)rigin with merging snapshot, (r)aid, (R)aid without initial sync,
92
(s)napshot, merging (S)napshot, (p)vmove, (v)irtual,
93
mirror or raid (i)mage, mirror or raid (I)mage out-of-sync, mirror (l)og device,
94
under (c)onversion, thin (V)olume, (t)hin pool, (T)hin pool data, raid or
75
Permissions: (w)riteable, (r)ead-only
97
Permissions: (w)riteable, (r)ead-only, (R)ead-only activation of non-read-only
77
100
Allocation policy: (c)ontiguous, c(l)ing, (n)ormal, (a)nywhere, (i)nherited
78
101
This is capitalised if the volume is currently locked against allocation
79
changes, for example during \fBpvmove\fP (8).
102
changes, for example during
83
107
State: (a)ctive, (s)uspended, (I)nvalid snapshot, invalid (S)uspended snapshot,
108
snapshot (m)erge failed, suspended snapshot (M)erge failed,
84
109
mapped (d)evice present without tables, mapped device present with (i)nactive table
113
Target type: (m)irror, (r)aid, (s)napshot, (t)hin, (u)nknown, (v)irtual.
114
This groups logical volumes related to the same kernel target together. So,
115
for example, mirror images, mirror logs as well as mirrors themselves appear as
116
(m) if they use the original device-mapper mirror kernel driver; whereas the raid
117
equivalents using the md raid kernel driver all appear as (r).
118
Snapshots using the original device-mapper driver appear as (s); whereas
119
snapshots of thin volumes using the new thin provisioning driver appear as (t).
121
Newly-allocated data blocks are overwritten with blocks of (z)eroes before use.
90
125
Use default columns that emphasize segment information.
127
.BR \-O ", " \-\-sort
93
128
Comma-separated ordered list of columns to sort by. Replaces the default
94
129
selection. Precede any column with - for a reverse sort on that column.
97
132
Output columns as rows.
99
.I \-\-separator Separator
134
.B \-\-separator \fISeparator
100
135
String to use to separate each column. Useful if grepping the output.
103
138
Produce output immediately without sorting or aligning the columns properly.
105
.I \-\-units hHbBsSkKmMgGtTpPeE
140
.B \-\-units \fIhHbBsSkKmMgGtTpPeE
106
141
All sizes are output in these units: (h)uman-readable, (b)ytes, (s)ectors,
107
142
(k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes, (p)etabytes, (e)xabytes.
108
143
Capitalise to use multiples of 1000 (S.I.) instead of 1024. Can also specify
109
144
custom units e.g. \-\-units 3M
112
147
When used with --nameprefixes, output values in the field=value pairs are not quoted.