~ubuntu-branches/ubuntu/vivid/lvm2/vivid

« back to all changes in this revision

Viewing changes to man/lvs.8.in

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2012-05-01 20:27:50 UTC
  • mto: (3.1.23 sid)
  • mto: This revision was merged to the branch mainline in revision 72.
  • Revision ID: package-import@ubuntu.com-20120501202750-gljjjtblowwq9mw8
Tags: upstream-2.02.95
ImportĀ upstreamĀ versionĀ 2.02.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
lvs \- report information about logical volumes
4
4
.SH SYNOPSIS
5
5
.B lvs
6
 
[\-a|\-\-all]
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]
13
 
[\-\-unbuffered]
14
 
[\-\-units hHbBsSkKmMgGtTpPeE]
15
 
[\-\-unquoted]
16
 
[\-v|\-\-verbose] 
17
 
[\-\-version] [VolumeGroupName [VolumeGroupName...]]
 
6
.RB [ \-a | \-\-all ]
 
7
.RB [ \-\-aligned ]
 
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
 
17
.RI [ + | - ] Key1 [,[ + | - ] Key2 [,...]]]
 
18
.RB [ \-P | \-\-partial ]
 
19
.RB [ \-\-rows ]
 
20
.RB [ \-\-segments ]
 
21
.RB [ \-\-separator
 
22
.IR Separator ]
 
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
 
18
32
.SH DESCRIPTION
19
33
lvs produces formatted output about logical volumes.
20
34
.SH OPTIONS
21
 
See \fBlvm\fP for common options.
 
35
See
 
36
.BR lvm (8)
 
37
for common options.
22
38
.TP
23
 
.I \-\-all
 
39
.B \-\-all
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.
31
47
.TP
32
 
.I \-\-aligned
 
48
.B \-\-aligned
33
49
Use with \-\-separator to align the output columns.
34
50
.TP
35
 
.I \-\-nameprefixes
 
51
.B \-\-nameprefixes
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 
 
55
.BR udev (7)
 
56
rules).
39
57
.TP
40
 
.I \-\-noheadings
 
58
.B \-\-noheadings
41
59
Suppress the headings line that is normally the first line of output.
42
60
Useful if grepping the output.
43
61
.TP
44
 
.I \-\-nosuffix
 
62
.B \-\-nosuffix
45
63
Suppress the suffix on output sizes.  Use with \-\-units (except h and H)
46
64
if processing the output.
47
65
.TP
48
 
.I \-o, \-\-options
 
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.
51
69
.IP
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.
63
81
.IP
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
 
84
.BR vgs (8)
66
85
can also be chosen.
67
86
.IP
68
87
The lv_attr bits are: 
69
88
.RS
70
89
.IP 1 3
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
 
95
thin pool m(e)tadata
74
96
.IP 2 3
75
 
Permissions: (w)riteable, (r)ead-only
 
97
Permissions: (w)riteable, (r)ead-only, (R)ead-only activation of non-read-only
 
98
volume
76
99
.IP 3 3
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
 
103
.BR pvmove (8).
80
104
.IP 4 3
81
105
fixed (m)inor
82
106
.IP 5 3
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
85
110
.IP 6 3
86
111
device (o)pen
 
112
.IP 7 3
 
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).
 
120
.IP 8 3
 
121
Newly-allocated data blocks are overwritten with blocks of (z)eroes before use.
87
122
.RE
88
123
.TP
89
 
.I \-\-segments
 
124
.B \-\-segments
90
125
Use default columns that emphasize segment information.
91
126
.TP
92
 
.I \-O, \-\-sort
 
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.
95
130
.TP
96
 
.I \-\-rows
 
131
.B \-\-rows
97
132
Output columns as rows.
98
133
.TP
99
 
.I \-\-separator Separator
 
134
.B \-\-separator \fISeparator
100
135
String to use to separate each column.  Useful if grepping the output.
101
136
.TP
102
 
.I \-\-unbuffered
 
137
.B \-\-unbuffered
103
138
Produce output immediately without sorting or aligning the columns properly.
104
139
.TP
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
110
145
.TP
111
 
.I \-\-unquoted
 
146
.B \-\-unquoted
112
147
When used with --nameprefixes, output values in the field=value pairs are not quoted.
113
148
.SH SEE ALSO
114
149
.BR lvm (8),