]> sourceware.org Git - lvm2.git/blame - man/lvs.8.in
Refer to details of snapshot of raid problem.
[lvm2.git] / man / lvs.8.in
CommitLineData
5951ef33 1.TH LVS 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
4c64ed4c
AK
2.SH NAME
3lvs \- report information about logical volumes
4.SH SYNOPSIS
5.B lvs
65b977f2 6.RB [ \-\-aligned ]
a326be8f 7.RB [ \-a | \-\-all ]
65b977f2
ZK
8.RB [ \-d | \-\-debug ]
9.RB [ \-h | \-? | \-\-help ]
10.RB [ \-\-ignorelockingfailure ]
11.RB [ \-\-nameprefixes ]
12.RB [ \-\-noheadings ]
13.RB [ \-\-nosuffix ]
14.RB [ \-o | \-\-options
15.RI [ + ] Field [, Field ]]
16.RB [ \-O | \-\-sort
c63b155d 17.RI [ + | \- ] Key1 [,[ + | \- ] Key2 [,...]]]
65b977f2
ZK
18.RB [ \-P | \-\-partial ]
19.RB [ \-\-rows ]
65b977f2
ZK
20.RB [ \-\-separator
21.IR Separator ]
a326be8f 22.RB [ \-\-segments ]
65b977f2
ZK
23.RB [ \-\-unbuffered ]
24.RB [ \-\-units
25.IR hHbBsSkKmMgGtTpPeE ]
26.RB [ \-\-unquoted ]
27.RB [ \-v | \-\-verbose ]
28.RB [ \-\-version ]
29.RI [ VolumeGroupName
30.RI [ VolumeGroupName ...]]
31
4c64ed4c 32.SH DESCRIPTION
d6cf4325 33lvs produces formatted output about logical volumes.
4c64ed4c 34.SH OPTIONS
65b977f2
ZK
35See
36.BR lvm (8)
37for common options.
4c64ed4c 38.TP
a326be8f
ZK
39.B \-\-aligned
40Use with \fB\-\-separator\fP to align the output columns.
41.TP
65b977f2 42.B \-\-all
7c638cc2
DW
43Include information in the output about internal Logical Volumes that
44are components of normally-accessible Logical Volumes, such as mirrors,
45but which are not independently accessible (e.g. not mountable).
46The names of such Logical Volumes are enclosed within square brackets
c63b155d
ZK
47in the output. For example, after creating a mirror using
48.B lvcreate -m1 --mirrorlog disk
49, this option will reveal three internal Logical
7c638cc2
DW
50Volumes, with suffixes mimage_0, mimage_1, and mlog.
51.TP
65b977f2 52.B \-\-nameprefixes
583ee601 53Add an "LVM2_" prefix plus the field name to the output. Useful
c63b155d
ZK
54with \fB\-\-noheadings\fP to produce a list of field=value pairs that can
55be used to set environment variables (for example, in
65b977f2
ZK
56.BR udev (7)
57rules).
583ee601 58.TP
65b977f2 59.B \-\-noheadings
4c64ed4c
AK
60Suppress the headings line that is normally the first line of output.
61Useful if grepping the output.
62.TP
65b977f2 63.B \-\-nosuffix
c63b155d
ZK
64Suppress the suffix on output sizes. Use with \fB\-\-units\fP
65(except h and H) if processing the output.
4c64ed4c 66.TP
65b977f2 67.BR \-o ", " \-\-options
a326be8f
ZK
68Comma-separated ordered list of columns. Precede the list with '\fI+\fP'
69to append to the default selection of columns instead of replacing it.
01b988cf 70.IP
c63b155d
ZK
71Use \fB\-o lv_all\fP to select all logical volume columns,
72and \fB\-o seg_all\fP
476d4633 73to select all logical volume segment columns.
01b988cf 74.IP
c63b155d 75Use \fB\-o help\fP to view the full list of columns available.
01b988cf
DW
76.IP
77Column names include:
a8f352fd
ZK
78chunk_size,
79convert_lv,
80copy_percent,
81data_lv,
82devices,
83lv_attr,
84lv_host,
85lv_kernel_major,
86lv_kernel_minor,
87lv_kernel_read_ahead,
88lv_major,
89lv_minor,
90lv_name,
91lv_path,
92lv_read_ahead,
93lv_size,
94lv_tags,
95lv_time,
96lv_uuid,
97metadata_lv,
98mirror_log,
99modules,
100move_pv,
101origin,
102origin_size,
103pool_lv,
104region_size,
105segtype,
106seg_count,
107seg_pe_ranges,
108seg_size,
109seg_start,
110seg_start_pe,
111seg_tags,
112snap_percent,
113stripes,
114stripe_size,
115thin_count,
116transaction_id,
117zero.
d6cf4325 118.IP
c63b155d
ZK
119With \fB\-\-segments\fP, any "seg_" prefixes are optional;
120otherwise any "lv_" prefixes are optional. Columns mentioned in
65b977f2 121.BR vgs (8)
d6cf4325
AK
122can also be chosen.
123.IP
c63b155d 124The lv_attr bits are:
d6cf4325
AK
125.RS
126.IP 1 3
3b6a076e 127Volume type: (m)irrored, (M)irrored without initial sync, (o)rigin,
d36644c2
JEB
128(O)rigin with merging snapshot, (r)aid, (R)aid without initial sync,
129(s)napshot, merging (S)napshot, (p)vmove, (v)irtual,
130mirror or raid (i)mage, mirror or raid (I)mage out-of-sync, mirror (l)og device,
131under (c)onversion, thin (V)olume, (t)hin pool, (T)hin pool data, raid or
132thin pool m(e)tadata
d6cf4325 133.IP 2 3
8f95d94b
AK
134Permissions: (w)riteable, (r)ead-only, (R)ead-only activation of non-read-only
135volume
d6cf4325 136.IP 3 3
a326be8f 137Allocation policy: (a)nywhere, (c)ontiguous, (i)nherited, c(l)ing, (n)ormal
d6cf4325 138This is capitalised if the volume is currently locked against allocation
65b977f2
ZK
139changes, for example during
140.BR pvmove (8).
d6cf4325
AK
141.IP 4 3
142fixed (m)inor
143.IP 5 3
5f4b2acf 144State: (a)ctive, (s)uspended, (I)nvalid snapshot, invalid (S)uspended snapshot,
d658922f 145snapshot (m)erge failed, suspended snapshot (M)erge failed,
5f4b2acf 146mapped (d)evice present without tables, mapped device present with (i)nactive table
d6cf4325
AK
147.IP 6 3
148device (o)pen
52e3f9dd 149.IP 7 3
c63b155d 150Target type: (m)irror, (r)aid, (s)napshot, (t)hin, (u)nknown, (v)irtual.
52e3f9dd
AK
151This groups logical volumes related to the same kernel target together. So,
152for example, mirror images, mirror logs as well as mirrors themselves appear as
153(m) if they use the original device-mapper mirror kernel driver; whereas the raid
154equivalents using the md raid kernel driver all appear as (r).
155Snapshots using the original device-mapper driver appear as (s); whereas
156snapshots of thin volumes using the new thin provisioning driver appear as (t).
5081181b
AK
157.IP 8 3
158Newly-allocated data blocks are overwritten with blocks of (z)eroes before use.
d6cf4325 159.RE
4c64ed4c 160.TP
65b977f2 161.BR \-O ", " \-\-sort
4c64ed4c 162Comma-separated ordered list of columns to sort by. Replaces the default
c63b155d 163selection. Precede any column with '\fI\-\fP' for a reverse sort on that column.
4c64ed4c 164.TP
65b977f2 165.B \-\-rows
6baf9737
DW
166Output columns as rows.
167.TP
a326be8f
ZK
168.B \-\-segments
169Use default columns that emphasize segment information.
170.TP
65b977f2 171.B \-\-separator \fISeparator
4c64ed4c
AK
172String to use to separate each column. Useful if grepping the output.
173.TP
65b977f2 174.B \-\-unbuffered
4c64ed4c
AK
175Produce output immediately without sorting or aligning the columns properly.
176.TP
65b977f2 177.B \-\-units \fIhHbBsSkKmMgGtTpPeE
3d425215 178All sizes are output in these units: (h)uman-readable, (b)ytes, (s)ectors,
c63b155d
ZK
179(k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes, (p)etabytes, (e)xabytes.
180Capitalise to use multiples of 1000 (S.I.) instead of 1024. Can also specify
181custom units e.g. \fB\-\-units 3M\fP
c0f61d7d 182.TP
65b977f2 183.B \-\-unquoted
c63b155d
ZK
184When used with \fB\-\-nameprefixes\fP, output values in the field=value
185pairs are not quoted.
4c64ed4c 186.SH SEE ALSO
06ea7eaa 187.BR lvm (8),
d6cf4325 188.BR lvdisplay (8),
4c64ed4c
AK
189.BR pvs (8),
190.BR vgs (8)
This page took 0.093219 seconds and 5 git commands to generate.