]> sourceware.org Git - lvm2.git/blame - tools/commands.h
set SO_KEEPALIVE on sockets
[lvm2.git] / tools / commands.h
CommitLineData
269930c0 1/*
6606c3ae
AK
2 * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
269930c0 4 *
6606c3ae 5 * This file is part of LVM2.
269930c0 6 *
6606c3ae
AK
7 * This copyrighted material is made available to anyone wishing to use,
8 * modify, copy, or redistribute it subject to the terms and conditions
9 * of the GNU General Public License v.2.
269930c0
AK
10 *
11 * You should have received a copy of the GNU General Public License
6606c3ae
AK
12 * along with this program; if not, write to the Free Software Foundation,
13 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
269930c0
AK
14 */
15
5a52dca9
AK
16/*********** Replace with script?
17xx(e2fsadm,
18 "Resize logical volume and ext2 filesystem",
19 "e2fsadm "
20 "[-d|--debug] " "[-h|--help] " "[-n|--nofsck]" "\n"
21 "\t{[-l|--extents] [+|-]LogicalExtentsNumber |" "\n"
22 "\t [-L|--size] [+|-]LogicalVolumeSize[kKmMgGtT]}" "\n"
23 "\t[-t|--test] " "\n"
24 "\t[-v|--verbose] " "\n"
25 "\t[--version] " "\n"
26 "\tLogicalVolumePath" "\n",
27
28 extents_ARG, size_ARG, nofsck_ARG, test_ARG)
29*********/
30
dcc31da5
AK
31xx(dumpconfig,
32 "Dump active configuration",
33 "dumpconfig <filename>\n")
34
156dd4f1
AK
35xx(formats,
36 "List available metadata formats",
37 "formats\n")
38
269930c0
AK
39xx(help,
40 "Display help for commands",
a03f2320 41 "help <command>" "\n")
269930c0 42
677a06d5 43/*********
269930c0
AK
44xx(lvactivate,
45 "Activate logical volume on given partition(s)",
e6efb2b0 46 "lvactivate "
c80325ca
AK
47 "\t[-d|--debug]\n"
48 "\t[-h|--help]\n"
49 "\t[-v|--verbose]\n"
e6efb2b0 50 "Logical Volume(s)\n")
677a06d5 51***********/
269930c0
AK
52
53xx(lvchange,
54 "Change the attributes of logical volume(s)",
55 "lvchange\n"
c80325ca 56 "\t[-A|--autobackup y|n]\n"
d6cf4325 57 "\t[-a|--available [e|l]y|n]\n"
cf6dd251 58 "\t[--addtag Tag]\n"
63bea03e 59 "\t[--alloc AllocationPolicy]\n"
c80325ca
AK
60 "\t[-C|--contiguous y|n]\n"
61 "\t[-d|--debug]\n"
cf6dd251 62 "\t[--deltag Tag]\n"
0b946db9 63 "\t[-f|--force]\n"
c80325ca 64 "\t[-h|--help]\n"
5a52dca9 65 "\t[--ignorelockingfailure]\n"
27f364af 66 "\t[-M|--persistent y|n] [--major major] [--minor minor]\n"
c80325ca
AK
67 "\t[-P|--partial] " "\n"
68 "\t[-p|--permission r|rw]\n"
69 "\t[-r|--readahead ReadAheadSectors]\n"
71b9fadf 70 "\t[--refresh]\n"
c80325ca
AK
71 "\t[-t|--test]\n"
72 "\t[-v|--verbose]\n"
4c64ed4c 73 "\t[--version]" "\n"
269930c0
AK
74 "\tLogicalVolume[Path] [LogicalVolume[Path]...]\n",
75
a0a23eff 76 alloc_ARG, autobackup_ARG, available_ARG, contiguous_ARG, force_ARG,
27f364af 77 ignorelockingfailure_ARG, major_ARG, minor_ARG, partial_ARG, permission_ARG,
71b9fadf 78 persistent_ARG, readahead_ARG, refresh_ARG, addtag_ARG, deltag_ARG,
cf6dd251 79 test_ARG)
269930c0
AK
80
81xx(lvcreate,
82 "Create a logical volume",
03888774 83 "lvcreate " "\n"
0eb83127 84 "\t[-A|--autobackup {y|n}]\n"
cf6dd251 85 "\t[--addtag Tag]\n"
63bea03e 86 "\t[--alloc AllocationPolicy]\n"
0eb83127
JT
87 "\t[-C|--contiguous {y|n}]\n"
88 "\t[-d|--debug]\n"
c80325ca 89 "\t[-h|-?|--help]\n"
0eb83127
JT
90 "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n"
91 "\t{-l|--extents LogicalExtentsNumber |\n"
92 "\t -L|--size LogicalVolumeSize[kKmMgGtT]}\n"
27f364af 93 "\t[-M|--persistent {y|n}] [--major major] [--minor minor]\n"
0eb83127
JT
94 "\t[-n|--name LogicalVolumeName]\n"
95 "\t[-p|--permission {r|rw}]\n"
96 "\t[-r|--readahead ReadAheadSectors]\n"
0eb83127 97 "\t[-t|--test]\n"
1832f310 98 "\t[--type VolumeType]\n"
0eb83127
JT
99 "\t[-v|--verbose]\n"
100 "\t[-Z|--zero {y|n}]\n"
101 "\t[--version]\n"
c80325ca 102 "\tVolumeGroupName [PhysicalVolumePath...]\n\n"
8b46b545 103
c80325ca 104 "lvcreate -s|--snapshot\n"
8b46b545
HM
105 "\t[-c|--chunksize]\n"
106 "\t[-A|--autobackup {y|n}]\n"
cf6dd251 107 "\t[--addtag Tag]\n"
63bea03e 108 "\t[--alloc AllocationPolicy]\n"
8b46b545
HM
109 "\t[-C|--contiguous {y|n}]\n"
110 "\t[-d|--debug]\n"
c80325ca 111 "\t[-h|-?|--help]\n"
8b46b545
HM
112 "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n"
113 "\t{-l|--extents LogicalExtentsNumber |\n"
114 "\t -L|--size LogicalVolumeSize[kKmMgGtT]}\n"
27f364af 115 "\t[-M|--persistent {y|n}] [--major major] [--minor minor]\n"
8b46b545
HM
116 "\t[-n|--name LogicalVolumeName]\n"
117 "\t[-p|--permission {r|rw}]\n"
118 "\t[-r|--readahead ReadAheadSectors]\n"
119 "\t[-t|--test]\n"
120 "\t[-v|--verbose]\n"
121 "\t[--version]\n"
122 "\tOriginalLogicalVolume[Path] [PhysicalVolumePath...]\n\n",
a03f2320 123
a0a23eff
AK
124 addtag_ARG, alloc_ARG, autobackup_ARG, chunksize_ARG, contiguous_ARG,
125 extents_ARG, major_ARG, minor_ARG, name_ARG, permission_ARG,
126 persistent_ARG, readahead_ARG, size_ARG, snapshot_ARG, stripes_ARG,
127 stripesize_ARG, test_ARG, type_ARG, zero_ARG)
269930c0
AK
128
129xx(lvdisplay,
130 "Display information about a logical volume",
131 "lvdisplay\n"
c80325ca
AK
132 "\t[-c|--colon]\n"
133 "\t[-d|--debug]\n"
134 "\t[-h|--help]\n"
8b46b545 135 "\t[--ignorelockingfailure]\n"
c80325ca 136 "\t[-m|--maps]\n"
4c64ed4c 137 "\t[--nosuffix]\n"
c80325ca 138 "\t[-P|--partial] " "\n"
4c64ed4c 139 "\t[--units hsbkmgtHKMGT]\n"
c80325ca 140 "\t[-v|--verbose]\n"
4c64ed4c
AK
141 "\t[--version]" "\n"
142 "\t[LogicalVolume[Path] [LogicalVolume[Path]...]]\n"
143 "\n"
144 "lvdisplay --columns|-C\n"
145 "\t[--aligned]\n"
146 "\t[-d|--debug]\n"
147 "\t[-h|--help]\n"
148 "\t[--ignorelockingfailure]\n"
149 "\t[--noheadings]\n"
150 "\t[--nosuffix]\n"
151 "\t[-o|--options [+]Field[,Field]]\n"
152 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
153 "\t[-P|--partial] " "\n"
154 "\t[--segments]\n"
155 "\t[--separator Separator]\n"
156 "\t[--unbuffered]\n"
157 "\t[--units hsbkmgtHKMGT]\n"
158 "\t[-v|--verbose]\n"
159 "\t[--version]" "\n"
160 "\t[LogicalVolume[Path] [LogicalVolume[Path]...]]\n",
269930c0 161
4c64ed4c
AK
162 aligned_ARG, colon_ARG, columns_ARG, disk_ARG, ignorelockingfailure_ARG,
163 maps_ARG, noheadings_ARG, nosuffix_ARG, options_ARG, sort_ARG,
164 partial_ARG, segments_ARG, separator_ARG, unbuffered_ARG, units_ARG)
269930c0
AK
165
166xx(lvextend,
167 "Add space to a logical volume",
168 "lvextend\n"
c80325ca 169 "\t[-A|--autobackup y|n]\n"
63bea03e 170 "\t[--alloc AllocationPolicy]\n"
c80325ca
AK
171 "\t[-d|--debug]\n"
172 "\t[-h|--help]\n"
52dc2139 173 "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n"
c80325ca
AK
174 "\t{-l|--extents [+]LogicalExtentsNumber |\n"
175 "\t -L|--size [+]LogicalVolumeSize[kKmMgGtT]}\n"
1a9ea74d
AK
176 "\t[-n|--nofsck]\n"
177 "\t[-r|--resizefs]\n"
c80325ca 178 "\t[-t|--test]\n"
1832f310 179 "\t[--type VolumeType]\n"
c80325ca 180 "\t[-v|--verbose]\n"
4c64ed4c 181 "\t[--version]" "\n"
269930c0
AK
182 "\tLogicalVolume[Path] [ PhysicalVolumePath... ]\n",
183
1a9ea74d
AK
184 alloc_ARG, autobackup_ARG, extents_ARG, nofsck_ARG, resizefs_ARG,
185 size_ARG, stripes_ARG, stripesize_ARG, test_ARG, type_ARG)
269930c0
AK
186
187xx(lvmchange,
a03f2320 188 "With the device mapper, this is obsolete and does nothing.",
03888774 189 "lvmchange\n"
c80325ca
AK
190 "\t[-d|--debug]\n"
191 "\t[-h|--help]\n"
192 "\t[-R|--reset]\n"
4c64ed4c
AK
193 "\t[-v|--verbose]\n"
194 "\t[--version]" "\n",
269930c0 195
a03f2320 196 reset_ARG)
269930c0
AK
197
198xx(lvmdiskscan,
199 "List devices that may be used as physical volumes",
200 "lvmdiskscan\n"
c80325ca
AK
201 "\t[-d|--debug]\n"
202 "\t[-h|--help]\n"
4c64ed4c
AK
203 "\t[-l|--lvmpartition]\n"
204 "\t[--version]" "\n",
269930c0
AK
205
206 lvmpartition_ARG)
207
208xx(lvmsadc,
209 "Collect activity data",
210 "lvmsadc\n"
c80325ca
AK
211 "\t[-d|--debug]\n"
212 "\t[-h|--help]\n"
213 "\t[-v|--verbose]\n"
4c64ed4c 214 "\t[--version]" "\n"
269930c0
AK
215 "\t[LogFilePath]\n" )
216
217xx(lvmsar,
218 "Create activity report",
219 "lvmsar\n"
c80325ca
AK
220 "\t[-d|--debug]\n"
221 "\t[-f|--full]\n"
222 "\t[-h|--help]\n"
223 "\t[-s|--stdin]\n"
224 "\t[-v|--verbose]\n"
4c64ed4c 225 "\t[--version]" "\n"
269930c0
AK
226 "\tLogFilePath\n",
227
8b46b545 228 full_ARG, stdin_ARG)
269930c0
AK
229
230xx(lvreduce,
231 "Reduce the size of a logical volume",
232 "lvreduce\n"
c80325ca
AK
233 "\t[-A|--autobackup y|n]\n"
234 "\t[-d|--debug]\n"
235 "\t[-f|--force]\n"
236 "\t[-h|--help]\n"
237 "\t{-l|--extents [-]LogicalExtentsNumber |\n"
238 "\t -L|--size [-]LogicalVolumeSize[kKmMgGtT]}\n"
1a9ea74d
AK
239 "\t[-n|--nofsck]\n"
240 "\t[-r|--resizefs]\n"
c80325ca
AK
241 "\t[-t|--test]\n"
242 "\t[-v|--verbose]\n"
4c64ed4c 243 "\t[--version]" "\n"
269930c0
AK
244 "\tLogicalVolume[Path]\n",
245
1a9ea74d 246 autobackup_ARG, force_ARG, extents_ARG, nofsck_ARG, resizefs_ARG,
c2d72fd4 247 size_ARG, test_ARG, yes_ARG)
269930c0
AK
248
249xx(lvremove,
250 "Remove logical volume(s) from the system",
251 "lvremove\n"
c80325ca
AK
252 "\t[-A|--autobackup y|n]\n"
253 "\t[-d|--debug]\n"
254 "\t[-f|--force]\n"
255 "\t[-h|--help]\n"
256 "\t[-t|--test]\n"
257 "\t[-v|--verbose]\n"
4c64ed4c 258 "\t[--version]" "\n"
269930c0
AK
259 "\tLogicalVolume[Path] [LogicalVolume[Path]...]\n",
260
c2d72fd4 261 autobackup_ARG, force_ARG, test_ARG)
269930c0
AK
262
263xx(lvrename,
264 "Rename a logical volume",
265 "lvrename "
a03f2320
AK
266 "\t[-A|--autobackup {y|n}] " "\n"
267 "\t[-d|--debug] " "\n"
c80325ca 268 "\t[-h|-?|--help] " "\n"
a03f2320
AK
269 "\t[-t|--test] " "\n"
270 "\t[-v|--verbose]" "\n"
271 "\t[--version] " "\n"
272 "\t{ OldLogicalVolumePath NewLogicalVolumePath |" "\n"
273 "\t VolumeGroupName OldLogicalVolumeName NewLogicalVolumeName }\n",
269930c0 274
c2d72fd4 275 autobackup_ARG, test_ARG)
269930c0 276
03a8a07d
AK
277xx(lvresize,
278 "Resize a logical volume",
279 "lvresize\n"
c80325ca 280 "\t[-A|--autobackup y|n]\n"
63bea03e 281 "\t[--alloc AllocationPolicy]\n"
c80325ca
AK
282 "\t[-d|--debug]\n"
283 "\t[-h|--help]\n"
52dc2139 284 "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n"
c80325ca
AK
285 "\t{-l|--extents [+|-]LogicalExtentsNumber |\n"
286 "\t -L|--size [+|-]LogicalVolumeSize[kKmMgGtT]}\n"
1a9ea74d
AK
287 "\t[-n|--nofsck]\n"
288 "\t[-r|--resizefs]\n"
c2d72fd4 289 "\t[-t|--test]\n"
1832f310 290 "\t[--type VolumeType]\n"
c80325ca 291 "\t[-v|--verbose]\n"
4c64ed4c 292 "\t[--version]" "\n"
03a8a07d
AK
293 "\tLogicalVolume[Path] [ PhysicalVolumePath... ]\n",
294
1a9ea74d
AK
295 alloc_ARG, autobackup_ARG, extents_ARG, nofsck_ARG, resizefs_ARG,
296 size_ARG, stripes_ARG, stripesize_ARG, test_ARG, type_ARG)
03a8a07d 297
4c64ed4c
AK
298xx(lvs,
299 "Display information about logical volumes",
300 "lvs" "\n"
301 "\t[--aligned]\n"
302 "\t[-d|--debug]\n"
303 "\t[-h|--help]\n"
304 "\t[--ignorelockingfailure]\n"
305 "\t[--noheadings]\n"
306 "\t[--nosuffix]\n"
307 "\t[-o|--options [+]Field[,Field]]\n"
308 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
309 "\t[-P|--partial] " "\n"
310 "\t[--segments]\n"
311 "\t[--separator Separator]\n"
312 "\t[--unbuffered]\n"
313 "\t[--units hsbkmgtHKMGT]\n"
314 "\t[-v|--verbose]\n"
315 "\t[--version]" "\n"
316 "\t[LogicalVolume[Path] [LogicalVolume[Path]...]]\n",
317
acd03445
AK
318 aligned_ARG, ignorelockingfailure_ARG, noheadings_ARG, nolocking_ARG,
319 nosuffix_ARG, options_ARG, partial_ARG, segments_ARG, separator_ARG,
320 sort_ARG, unbuffered_ARG, units_ARG)
4c64ed4c 321
269930c0
AK
322xx(lvscan,
323 "List all logical volumes in all volume groups",
a03f2320
AK
324 "lvscan " "\n"
325 "\t[-b|--blockdevice] " "\n"
326 "\t[-d|--debug] " "\n"
c80325ca 327 "\t[-h|-?|--help] " "\n"
8b46b545 328 "\t[--ignorelockingfailure]\n"
6b4c9ff7 329 "\t[-P|--partial] " "\n"
a03f2320
AK
330 "\t[-v|--verbose] " "\n"
331 "\t[--version]\n",
269930c0 332
8b46b545 333 blockdevice_ARG, disk_ARG, ignorelockingfailure_ARG, partial_ARG)
269930c0
AK
334
335xx(pvchange,
336 "Change attributes of physical volume(s)",
337 "pvchange\n"
15e6db35 338 "\t[-a|--all]\n"
c80325ca
AK
339 "\t[-A|--autobackup y|n]\n"
340 "\t[-d|--debug]\n"
341 "\t[-h|--help]\n"
c2d72fd4 342 "\t[-t|--test]\n"
15e6db35 343 "\t[-u|--uuid]\n"
c80325ca 344 "\t[-x|--allocatable y|n]\n"
15e6db35 345 "\t[-v|--verbose]\n"
cf6dd251
AK
346 "\t[--addtag Tag]\n"
347 "\t[--deltag Tag]\n"
15e6db35 348 "\t[--version]" "\n"
269930c0
AK
349 "\t[PhysicalVolumePath...]\n",
350
cf6dd251
AK
351 all_ARG, allocatable_ARG, allocation_ARG, autobackup_ARG, deltag_ARG,
352 addtag_ARG, test_ARG, uuid_ARG)
269930c0
AK
353
354xx(pvcreate,
355 "Initialize physical volume(s) for use by LVM",
a03f2320 356 "pvcreate " "\n"
5a52dca9 357 "\t[--restorefile file]\n"
a03f2320
AK
358 "\t[-d|--debug]" "\n"
359 "\t[-f[f]|--force [--force]] " "\n"
c80325ca 360 "\t[-h|-?|--help] " "\n"
5a52dca9
AK
361 "\t[--labelsector sector] " "\n"
362 "\t[-M|--metadatatype 1|2]" "\n"
363 "\t[--metadatacopies #copies]" "\n"
364 "\t[--metadatasize MetadataSize[kKmMgGtT]]" "\n"
365 "\t[--setphysicalvolumesize PhysicalVolumeSize[kKmMgGtT]" "\n"
a03f2320 366 "\t[-t|--test] " "\n"
add7dc2d 367 "\t[-u|--uuid uuid] " "\n"
a03f2320 368 "\t[-v|--verbose] " "\n"
5a52dca9 369 "\t[-y|--yes]" "\n"
2245e1c4 370 "\t[-Z|--zero {y|n}]\n"
a03f2320
AK
371 "\t[--version] " "\n"
372 "\tPhysicalVolume [PhysicalVolume...]\n",
269930c0 373
5a52dca9
AK
374 force_ARG, test_ARG, labelsector_ARG, metadatatype_ARG, metadatacopies_ARG,
375 metadatasize_ARG, physicalvolumesize_ARG, restorefile_ARG, uuidstr_ARG,
2245e1c4 376 yes_ARG, zero_ARG)
269930c0
AK
377
378xx(pvdata,
379 "Display the on-disk metadata for physical volume(s)",
a03f2320
AK
380 "pvdata " "\n"
381 "\t[-a|--all] " "\n"
382 "\t[-d|--debug] " "\n"
383 "\t[-E|--physicalextent] " "\n"
c80325ca 384 "\t[-h|-?|--help]" "\n"
a03f2320
AK
385 "\t[-L|--logicalvolume] " "\n"
386 "\t[-P[P]|--physicalvolume [--physicalvolume]]" "\n"
387 "\t[-U|--uuidlist] " "\n"
388 "\t[-v[v]|--verbose [--verbose]] " "\n"
389 "\t[-V|--volumegroup]" "\n"
390 "\t[--version] " "\n"
391 "\tPhysicalVolume [PhysicalVolume...]\n",
269930c0
AK
392
393 all_ARG, logicalextent_ARG, physicalextent_ARG,
394 physicalvolume_ARG, uuidlist_ARG, volumegroup_ARG)
395
396xx(pvdisplay,
4c64ed4c 397 "Display various attributes of physical volume(s)",
269930c0 398 "pvdisplay\n"
c80325ca
AK
399 "\t[-c|--colon]\n"
400 "\t[-d|--debug]\n"
401 "\t[-h|--help]\n"
8b46b545 402 "\t[--ignorelockingfailure]\n"
c80325ca 403 "\t[-m|--maps]\n"
4c64ed4c 404 "\t[--nosuffix]\n"
c80325ca 405 "\t[-s|--short]\n"
4c64ed4c 406 "\t[--units hsbkmgtHKMGT]\n"
c80325ca 407 "\t[-v|--verbose]\n"
4c64ed4c
AK
408 "\t[--version]" "\n"
409 "\t[PhysicalVolumePath [PhysicalVolumePath...]]\n"
410 "\n"
411 "pvdisplay --columns|-C\n"
412 "\t[--aligned]\n"
200ef4db 413 "\t[-a|--all]\n"
4c64ed4c
AK
414 "\t[-d|--debug]\n"
415 "\t[-h|--help]\n"
416 "\t[--ignorelockingfailure]\n"
417 "\t[--noheadings]\n"
418 "\t[--nosuffix]\n"
419 "\t[-o|--options [+]Field[,Field]]\n"
420 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
421 "\t[--separator Separator]\n"
422 "\t[--unbuffered]\n"
423 "\t[--units hsbkmgtHKMGT]\n"
424 "\t[-v|--verbose]\n"
425 "\t[--version]" "\n"
426 "\t[PhysicalVolumePath [PhysicalVolumePath...]]\n",
269930c0 427
200ef4db
AK
428 aligned_ARG, all_ARG, colon_ARG, columns_ARG, ignorelockingfailure_ARG,
429 maps_ARG, noheadings_ARG, nosuffix_ARG, options_ARG, separator_ARG,
430 short_ARG, sort_ARG, unbuffered_ARG, units_ARG)
269930c0 431
269930c0
AK
432xx(pvmove,
433 "Move extents from one physical volume to another",
43ecb8ff 434 "pvmove " "\n"
3a61b054 435 "\t[--abort]\n"
43ecb8ff 436 "\t[-A|--autobackup {y|n}]\n"
63bea03e 437 "\t[--alloc AllocationPolicy]\n"
3a61b054 438 "\t[-b|--background]\n"
43ecb8ff 439 "\t[-d|--debug]\n "
43ecb8ff
AK
440 "\t[-h|-?|--help]\n"
441 "\t[-i|--interval seconds]\n"
442 "\t[-t|--test]\n "
443 "\t[-v|--verbose]\n "
444 "\t[--version]\n"
57c74fb5 445 "\t[{-n|--name} LogicalVolume]\n"
43ecb8ff 446/* "\t[{-n|--name} LogicalVolume[:LogicalExtent[-LogicalExtent]...]]\n" */
9bd40d31 447 "\tSourcePhysicalVolume[:PhysicalExtent[-PhysicalExtent]...]}\n"
43ecb8ff 448 "\t[DestinationPhysicalVolume[:PhysicalExtent[-PhysicalExtent]...]...]\n",
269930c0 449
421c2a6a 450 abort_ARG, alloc_ARG, autobackup_ARG, background_ARG,
00b47204 451 interval_ARG, name_ARG, test_ARG)
269930c0 452
5a52dca9
AK
453xx(pvremove,
454 "Remove LVM label(s) from physical volume(s)",
455 "pvremove " "\n"
456 "\t[-d|--debug]" "\n"
457 "\t[-f[f]|--force [--force]] " "\n"
c80325ca 458 "\t[-h|-?|--help] " "\n"
5a52dca9
AK
459 "\t[-t|--test] " "\n"
460 "\t[-v|--verbose] " "\n"
461 "\t[-y|--yes]" "\n"
462 "\t[--version] " "\n"
463 "\tPhysicalVolume [PhysicalVolume...]\n",
464
465 force_ARG, test_ARG, yes_ARG)
466
9c42e035
HM
467xx(pvresize,
468 "Resize a physical volume in use by a volume group",
5a52dca9
AK
469 "Not implemented. Use pvcreate options.",
470/***
471 "pvresize "
9c42e035
HM
472 "[-A|--autobackup {y|n}] "
473 "[-d|--debug] "
c80325ca 474 "[-h|-?|--help]\n\t"
9c42e035
HM
475 "[-s|--size PhysicalVolumeSize[kKmMgGtT]" "\n"
476 "[-v|--verbose] "
477 "[--version]\n\t"
478 "\tPhysicalVolumePath [PhysicalVolumePath...]\n",
5a52dca9 479***/
9c42e035
HM
480 autobackup_ARG, physicalvolumesize_ARG)
481
4c64ed4c
AK
482xx(pvs,
483 "Display information about physical volumes",
484 "pvs" "\n"
485 "\t[--aligned]\n"
c29d2465 486 "\t[-a|--all]\n"
4c64ed4c
AK
487 "\t[-d|--debug]" "\n"
488 "\t[-h|-?|--help] " "\n"
489 "\t[--noheadings]\n"
490 "\t[--ignorelockingfailure]\n"
491 "\t[--nosuffix]\n"
492 "\t[-o|--options [+]Field[,Field]]\n"
493 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
494 "\t[--separator Separator]\n"
495 "\t[--unbuffered]\n"
496 "\t[--units hsbkmgtHKMGT]\n"
497 "\t[-v|--verbose]\n"
498 "\t[--version]\n"
499 "\t[PhysicalVolume [PhysicalVolume...]]\n",
500
c29d2465
AK
501 aligned_ARG, all_ARG, ignorelockingfailure_ARG, noheadings_ARG,
502 nolocking_ARG, nosuffix_ARG, options_ARG, separator_ARG, sort_ARG,
503 unbuffered_ARG, units_ARG)
4c64ed4c 504
269930c0
AK
505xx(pvscan,
506 "List all physical volumes",
a03f2320
AK
507 "pvscan " "\n"
508 "\t[-d|--debug] " "\n"
c80325ca
AK
509 "\t{-e|--exported | -n|--novolumegroup} " "\n"
510 "\t[-h|-?|--help]" "\n"
8b46b545 511 "\t[--ignorelockingfailure]\n"
6b4c9ff7 512 "\t[-P|--partial] " "\n"
a03f2320
AK
513 "\t[-s|--short] " "\n"
514 "\t[-u|--uuid] " "\n"
515 "\t[-v|--verbose] " "\n"
516 "\t[--version]\n",
269930c0 517
8b46b545
HM
518 exported_ARG, ignorelockingfailure_ARG, novolumegroup_ARG, partial_ARG,
519 short_ARG, uuid_ARG)
269930c0 520
156dd4f1
AK
521xx(segtypes,
522 "List available segment types",
523 "segtypes\n")
524
269930c0
AK
525xx(vgcfgbackup,
526 "Backup volume group configuration(s)",
a03f2320
AK
527 "vgcfgbackup " "\n"
528 "\t[-d|--debug] " "\n"
952d12a5 529 "\t[-f|--file filename] " "\n"
c80325ca 530 "\t[-h|-?|--help] " "\n"
8b46b545 531 "\t[--ignorelockingfailure]\n"
407332cb 532 "\t[-P|--partial] " "\n"
a03f2320 533 "\t[-v|--verbose]" "\n"
4c64ed4c 534 "\t[--version] " "\n"
2041d905 535 "\t[VolumeGroupName...]\n",
8b46b545
HM
536
537 file_ARG, ignorelockingfailure_ARG, partial_ARG)
269930c0
AK
538
539xx(vgcfgrestore,
540 "Restore volume group configuration",
a03f2320
AK
541 "vgcfgrestore " "\n"
542 "\t[-d|--debug] " "\n"
952d12a5 543 "\t[-f|--file filename] " "\n"
a03f2320 544 "\t[-l[l]|--list [--list]]" "\n"
5a52dca9 545 "\t[-M|--metadatatype 1|2]" "\n"
a03f2320
AK
546 "\t[-n|--name VolumeGroupName] " "\n"
547 "\t[-h|--help]" "\n"
a03f2320
AK
548 "\t[-t|--test] " "\n"
549 "\t[-v|--verbose]" "\n"
550 "\t[--version] " "\n"
288adea2 551 "\tVolumeGroupName",
269930c0 552
5a52dca9 553 file_ARG, list_ARG, metadatatype_ARG, name_ARG, test_ARG)
269930c0
AK
554
555xx(vgchange,
556 "Change volume group attributes",
a03f2320
AK
557 "vgchange" "\n"
558 "\t[-A|--autobackup {y|n}] " "\n"
63bea03e 559 "\t[--alloc AllocationPolicy] " "\n"
f53c6aa6 560 "\t[-P|--partial] " "\n"
a03f2320
AK
561 "\t[-d|--debug] " "\n"
562 "\t[-h|--help] " "\n"
8b46b545 563 "\t[--ignorelockingfailure]\n"
a03f2320 564 "\t[-t|--test]" "\n"
15e6db35 565 "\t[-u|--uuid] " "\n"
a03f2320
AK
566 "\t[-v|--verbose] " "\n"
567 "\t[--version]" "\n"
d6cf4325 568 "\t{-a|--available [e|l]{y|n} |" "\n"
343a8c92 569 "\t -c|--clustered {y|n} |" "\n"
b80f32dd 570 "\t -x|--resizeable {y|n} |" "\n"
cf6dd251
AK
571 "\t -l|--logicalvolume MaxLogicalVolumes |" "\n"
572 "\t --addtag Tag |\n"
573 "\t --deltag Tag}\n"
a03f2320 574 "\t[VolumeGroupName...]\n",
269930c0 575
a0a23eff 576 addtag_ARG, alloc_ARG, allocation_ARG, autobackup_ARG, available_ARG,
343a8c92
AK
577 clustered_ARG, deltag_ARG, ignorelockingfailure_ARG, logicalvolume_ARG,
578 partial_ARG, resizeable_ARG, resizable_ARG, test_ARG, uuid_ARG)
269930c0
AK
579
580xx(vgck,
581 "Check the consistency of volume group(s)",
582 "vgck "
c80325ca
AK
583 "\t[-d|--debug]\n"
584 "\t[-h|--help]\n"
585 "\t[-v|--verbose]\n"
43ecb8ff 586 "\t[--version]" "\n"
269930c0
AK
587 "\t[VolumeGroupName...]\n" )
588
5a52dca9
AK
589xx(vgconvert,
590 "Change volume group metadata format",
591 "vgconvert " "\n"
592 "\t[-d|--debug]" "\n"
593 "\t[-h|--help] " "\n"
594 "\t[--labelsector sector] " "\n"
595 "\t[-M|--metadatatype 1|2]" "\n"
596 "\t[--metadatacopies #copies]" "\n"
597 "\t[--metadatasize MetadataSize[kKmMgGtT]]" "\n"
598 "\t[-t|--test] " "\n"
599 "\t[-v|--verbose] " "\n"
600 "\t[--version] " "\n"
601 "\tVolumeGroupName [VolumeGroupName...]\n",
602
603 force_ARG, test_ARG, labelsector_ARG, metadatatype_ARG, metadatacopies_ARG,
604 metadatasize_ARG )
605
269930c0
AK
606xx(vgcreate,
607 "Create a volume group",
a03f2320
AK
608 "vgcreate" "\n"
609 "\t[-A|--autobackup {y|n}] " "\n"
cf6dd251 610 "\t[--addtag Tag] " "\n"
63bea03e 611 "\t[--alloc AllocationPolicy] " "\n"
343a8c92 612 "\t[-c|--clustered] " "\n"
a03f2320 613 "\t[-d|--debug]" "\n"
25b73380 614 "\t[-h|--help]" "\n"
a03f2320 615 "\t[-l|--maxlogicalvolumes MaxLogicalVolumes]" "\n"
5a52dca9 616 "\t[-M|--metadatatype 1|2] " "\n"
a03f2320 617 "\t[-p|--maxphysicalvolumes MaxPhysicalVolumes] " "\n"
a03f2320
AK
618 "\t[-s|--physicalextentsize PhysicalExtentSize[kKmMgGtT]] " "\n"
619 "\t[-t|--test] " "\n"
620 "\t[-v|--verbose]" "\n"
621 "\t[--version] " "\n"
622 "\tVolumeGroupName PhysicalVolume [PhysicalVolume...]\n",
269930c0 623
343a8c92 624 addtag_ARG, alloc_ARG, autobackup_ARG, clustered_ARG, maxlogicalvolumes_ARG,
a0a23eff 625 maxphysicalvolumes_ARG, metadatatype_ARG, physicalextentsize_ARG, test_ARG)
269930c0
AK
626
627xx(vgdisplay,
628 "Display volume group information",
a03f2320
AK
629 "vgdisplay " "\n"
630 "\t[-c|--colon | -s|--short | -v|--verbose]" "\n"
631 "\t[-d|--debug] " "\n"
632 "\t[-h|--help] " "\n"
5a52dca9 633 "\t[--ignorelockingfailure]" "\n"
4c64ed4c 634 "\t[--nosuffix]\n"
7ae5a778 635 "\t[-P|--partial] " "\n"
4c64ed4c 636 "\t[--units hsbkmgtHKMGT]\n"
a03f2320 637 "\t[-A|--activevolumegroups | [-D|--disk]" "\n"
7ae5a778 638 "\t[--version]" "\n"
4c64ed4c
AK
639 "\t[VolumeGroupName [VolumeGroupName...]]\n"
640 "\n"
641 "vgdisplay --columns|-C\n"
642 "\t[--aligned]\n"
643 "\t[-d|--debug] " "\n"
644 "\t[-h|--help] " "\n"
645 "\t[--ignorelockingfailure]" "\n"
646 "\t[--noheadings]\n"
647 "\t[--nosuffix]\n"
648 "\t[-o|--options [+]Field[,Field]]\n"
649 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
650 "\t[-P|--partial] " "\n"
651 "\t[--separator Separator]\n"
652 "\t[--unbuffered]\n"
653 "\t[--units hsbkmgtHKMGT]\n"
654 "\t[--verbose]" "\n"
655 "\t[--version]" "\n"
656 "\t[VolumeGroupName [VolumeGroupName...]]\n",
269930c0 657
4c64ed4c
AK
658 activevolumegroups_ARG, aligned_ARG, colon_ARG, columns_ARG, disk_ARG,
659 ignorelockingfailure_ARG, noheadings_ARG, nosuffix_ARG, options_ARG,
bc0d0ce0 660 partial_ARG, short_ARG, separator_ARG, sort_ARG, unbuffered_ARG, units_ARG)
269930c0
AK
661
662xx(vgexport,
663 "Unregister volume group(s) from the system",
a03f2320
AK
664 "vgexport " "\n"
665 "\t[-a|--all] " "\n"
666 "\t[-d|--debug] " "\n"
667 "\t[-h|--help]" "\n"
668 "\t[-v|--verbose] " "\n"
669 "\t[--version] " "\n"
670 "\tVolumeGroupName [VolumeGroupName...]\n",
269930c0 671
c2d72fd4 672 all_ARG, test_ARG)
269930c0
AK
673
674xx(vgextend,
675 "Add physical volumes to a volume group",
676 "vgextend\n"
c80325ca
AK
677 "\t[-A|--autobackup y|n]\n"
678 "\t[-d|--debug]\n"
679 "\t[-h|--help]\n"
680 "\t[-t|--test]\n"
681 "\t[-v|--verbose]\n"
4c64ed4c 682 "\t[--version]" "\n"
a03f2320 683 "\tVolumeGroupName PhysicalDevicePath [PhysicalDevicePath...]\n",
269930c0 684
c2d72fd4 685 autobackup_ARG, test_ARG)
269930c0
AK
686
687xx(vgimport,
688 "Register exported volume group with system",
a03f2320 689 "vgimport " "\n"
c80325ca 690 "\t[-a|--all]\n"
a03f2320
AK
691 "\t[-d|--debug] " "\n"
692 "\t[-f|--force] " "\n"
693 "\t[-h|--help] " "\n"
694 "\t[-t|--test] " "\n"
695 "\t[-v|--verbose]" "\n"
4c64ed4c 696 "\t[--version]" "\n"
df91af91 697 "\tVolumeGroupName..." "\n",
269930c0 698
df91af91 699 all_ARG, force_ARG, test_ARG)
269930c0
AK
700
701xx(vgmerge,
702 "Merge volume groups",
703 "vgmerge\n"
c80325ca
AK
704 "\t[-A|--autobackup y|n]\n"
705 "\t[-d|--debug]\n"
706 "\t[-h|--help]\n"
707 "\t[-l|--list]\n"
708 "\t[-t|--test]\n"
709 "\t[-v|--verbose]\n"
4c64ed4c 710 "\t[--version]" "\n"
269930c0
AK
711 "\tDestinationVolumeGroupName SourceVolumeGroupName\n",
712
713 autobackup_ARG, list_ARG, test_ARG)
714
715xx(vgmknodes,
716 "Create the special files for volume group devices in /dev",
717 "vgmknodes\n"
c80325ca
AK
718 "\t[-d|--debug]\n"
719 "\t[-h|--help]\n"
720 "\t[-v|--verbose]\n"
4c64ed4c 721 "\t[--version]" "\n"
269930c0
AK
722 "\t[VolumeGroupName...]\n" )
723
724xx(vgreduce,
725 "Remove physical volume(s) from a volume group",
726 "vgreduce\n"
c80325ca
AK
727 "\t[-a|--all]\n"
728 "\t[-A|--autobackup y|n]\n"
729 "\t[-d|--debug]\n"
730 "\t[-h|--help]\n"
a421f743 731 "\t[--removemissing]\n"
c80325ca
AK
732 "\t[-t|--test]\n"
733 "\t[-v|--verbose]\n"
4c64ed4c 734 "\t[--version]" "\n"
269930c0
AK
735 "\tVolumeGroupName\n"
736 "\t[PhysicalVolumePath...]\n",
737
a421f743 738 all_ARG, autobackup_ARG, removemissing_ARG, test_ARG)
269930c0
AK
739
740xx(vgremove,
741 "Remove volume group(s)",
742 "vgremove\n"
c80325ca
AK
743 "\t[-d|--debug]\n"
744 "\t[-h|--help]\n"
745 "\t[-t|--test]\n"
746 "\t[-v|--verbose]\n"
4c64ed4c 747 "\t[--version]" "\n"
c2d72fd4
AK
748 "\tVolumeGroupName [VolumeGroupName...]\n",
749
750 test_ARG)
269930c0
AK
751
752xx(vgrename,
753 "Rename a volume group",
754 "vgrename\n"
c80325ca
AK
755 "\t[-A|--autobackup y|n]\n"
756 "\t[-d|--debug]\n"
757 "\t[-h|--help]\n"
758 "\t[-t|--test]\n"
759 "\t[-v|--verbose]\n"
4c64ed4c 760 "\t[--version]" "\n"
a03f2320 761 "\tOldVolumeGroupPath NewVolumeGroupPath |\n"
269930c0
AK
762 "\tOldVolumeGroupName NewVolumeGroupName\n",
763
c2d72fd4 764 autobackup_ARG, force_ARG, test_ARG)
269930c0 765
4c64ed4c
AK
766xx(vgs,
767 "Display information about volume groups",
768 "vgs" "\n"
769 "\t[--aligned]\n"
770 "\t[-d|--debug]\n"
771 "\t[-h|--help]\n"
772 "\t[--ignorelockingfailure]\n"
773 "\t[--noheadings]\n"
774 "\t[--nosuffix]\n"
775 "\t[-o|--options [+]Field[,Field]]\n"
776 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
777 "\t[-P|--partial] " "\n"
778 "\t[--separator Separator]\n"
779 "\t[--unbuffered]\n"
780 "\t[--units hsbkmgtHKMGT]\n"
781 "\t[-v|--verbose]\n"
782 "\t[--version]\n"
783 "\t[VolumeGroupName [VolumeGroupName...]]\n",
784
acd03445
AK
785 aligned_ARG, ignorelockingfailure_ARG, noheadings_ARG, nolocking_ARG,
786 nosuffix_ARG, options_ARG, partial_ARG, separator_ARG, sort_ARG,
787 unbuffered_ARG, units_ARG)
4c64ed4c 788
269930c0
AK
789xx(vgscan,
790 "Search for all volume groups",
791 "vgscan "
c80325ca
AK
792 "\t[-d|--debug]\n"
793 "\t[-h|--help]\n"
8b46b545 794 "\t[--ignorelockingfailure]\n"
5a8fa8c9 795 "\t[--mknodes]\n"
c80325ca 796 "\t[-P|--partial] " "\n"
4c64ed4c
AK
797 "\t[-v|--verbose]\n"
798 "\t[--version]" "\n",
8b46b545 799
5a8fa8c9 800 ignorelockingfailure_ARG, mknodes_ARG, partial_ARG)
269930c0
AK
801
802xx(vgsplit,
803 "Move physical volumes into a new volume group",
a03f2320
AK
804 "vgsplit " "\n"
805 "\t[-A|--autobackup {y|n}] " "\n"
806 "\t[-d|--debug] " "\n"
807 "\t[-h|--help] " "\n"
808 "\t[-l|--list]" "\n"
5a52dca9 809 "\t[-M|--metadatatype 1|2] " "\n"
a03f2320
AK
810 "\t[-t|--test] " "\n"
811 "\t[-v|--verbose] " "\n"
812 "\t[--version]" "\n"
813 "\tExistingVolumeGroupName NewVolumeGroupName" "\n"
814 "\tPhysicalVolumePath [PhysicalVolumePath...]\n",
269930c0 815
fbbe942c 816 autobackup_ARG, list_ARG, metadatatype_ARG, test_ARG)
fae0c576
AK
817
818xx(version,
819 "Display software and driver version information",
820 "version\n" )
821
This page took 0.140795 seconds and 5 git commands to generate.