]> sourceware.org Git - lvm2.git/blob - tools/commands.h
Scan all devices for lvmetad if 'pvscan --cache' used without device list.
[lvm2.git] / tools / commands.h
1 /*
2 * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
4 *
5 * This file is part of LVM2.
6 *
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 Lesser General Public License v.2.1.
10 *
11 * You should have received a copy of the GNU Lesser General Public License
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
14 */
15
16 /*********** Replace with script?
17 xx(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[bBsSkKmMgGtTpPeE]}" "\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
31 xx(dumpconfig,
32 "Dump active configuration",
33 PERMITTED_READ_ONLY,
34 "dumpconfig "
35 "\t[-f|--file filename] " "\n"
36 "[ConfigurationVariable...]\n",
37 file_ARG)
38
39 xx(formats,
40 "List available metadata formats",
41 PERMITTED_READ_ONLY,
42 "formats\n")
43
44 xx(help,
45 "Display help for commands",
46 PERMITTED_READ_ONLY,
47 "help <command>" "\n")
48
49 /*********
50 xx(lvactivate,
51 "Activate logical volume on given partition(s)",
52 "lvactivate "
53 "\t[-d|--debug]\n"
54 "\t[-h|--help]\n"
55 "\t[-v|--verbose]\n"
56 "Logical Volume(s)\n")
57 ***********/
58
59 xx(lvchange,
60 "Change the attributes of logical volume(s)",
61 CACHE_VGMETADATA | PERMITTED_READ_ONLY,
62 "lvchange\n"
63 "\t[-A|--autobackup y|n]\n"
64 "\t[-a|--available [e|l]y|n]\n"
65 "\t[--addtag Tag]\n"
66 "\t[--alloc AllocationPolicy]\n"
67 "\t[-C|--contiguous y|n]\n"
68 "\t[-d|--debug]\n"
69 "\t[--deltag Tag]\n"
70 "\t[-f|--force]\n"
71 "\t[-h|--help]\n"
72 "\t[--ignorelockingfailure]\n"
73 "\t[--ignoremonitoring]\n"
74 "\t[--monitor {y|n}]\n"
75 "\t[--poll {y|n}]\n"
76 "\t[--noudevsync]\n"
77 "\t[-M|--persistent y|n] [--major major] [--minor minor]\n"
78 "\t[-P|--partial] " "\n"
79 "\t[-p|--permission r|rw]\n"
80 "\t[-r|--readahead ReadAheadSectors|auto|none]\n"
81 "\t[--refresh]\n"
82 "\t[--resync]\n"
83 "\t[--sysinit]\n"
84 "\t[-t|--test]\n"
85 "\t[-v|--verbose]\n"
86 "\t[-y|--yes]\n"
87 "\t[--version]" "\n"
88 "\tLogicalVolume[Path] [LogicalVolume[Path]...]\n",
89
90 alloc_ARG, autobackup_ARG, available_ARG, contiguous_ARG, force_ARG,
91 ignorelockingfailure_ARG, ignoremonitoring_ARG, major_ARG, minor_ARG,
92 monitor_ARG, noudevsync_ARG, partial_ARG, permission_ARG, persistent_ARG,
93 poll_ARG, readahead_ARG, resync_ARG, refresh_ARG, addtag_ARG, deltag_ARG,
94 sysinit_ARG, test_ARG, yes_ARG)
95
96 xx(lvconvert,
97 "Change logical volume layout",
98 0,
99 "lvconvert "
100 "[-m|--mirrors Mirrors [{--mirrorlog {disk|core|mirrored}|--corelog}]]\n"
101 "\t[--type SegmentType]\n"
102 "\t[--repair [--use-policies]]\n"
103 "\t[--replace PhysicalVolume]\n"
104 "\t[-R|--regionsize MirrorLogRegionSize]\n"
105 "\t[--alloc AllocationPolicy]\n"
106 "\t[-b|--background]\n"
107 "\t[-d|--debug]\n"
108 "\t[-f|--force]\n"
109 "\t[-h|-?|--help]\n"
110 "\t[-i|--interval seconds]\n"
111 "\t[--stripes Stripes [-I|--stripesize StripeSize]]\n"
112 "\t[--noudevsync]\n"
113 "\t[-v|--verbose]\n"
114 "\t[-y|--yes]\n"
115 "\t[--version]" "\n"
116 "\tLogicalVolume[Path] [PhysicalVolume[Path]...]\n\n"
117
118 "lvconvert "
119 "[--splitmirrors Images --trackchanges]\n"
120 "[--splitmirrors Images --name SplitLogicalVolumeName]\n"
121 "\tLogicalVolume[Path] [SplittablePhysicalVolume[Path]...]\n\n"
122
123 "lvconvert "
124 "[-s|--snapshot]\n"
125 "\t[-c|--chunksize]\n"
126 "\t[-d|--debug]\n"
127 "\t[-h|-?|--help]\n"
128 "\t[--noudevsync]\n"
129 "\t[-v|--verbose]\n"
130 "\t[-Z|--zero {y|n}]\n"
131 "\t[--version]" "\n"
132 "\tOriginalLogicalVolume[Path] SnapshotLogicalVolume[Path]\n\n"
133
134 "lvconvert "
135 "--merge\n"
136 "\t[-b|--background]\n"
137 "\t[-i|--interval seconds]\n"
138 "\t[-d|--debug]\n"
139 "\t[-h|-?|--help]\n"
140 "\t[-v|--verbose]\n"
141 "\tLogicalVolume[Path]\n",
142
143 alloc_ARG, background_ARG, chunksize_ARG, corelog_ARG, interval_ARG,
144 merge_ARG, mirrorlog_ARG, mirrors_ARG, name_ARG, noudevsync_ARG,
145 regionsize_ARG, repair_ARG, replace_ARG, snapshot_ARG, splitmirrors_ARG,
146 trackchanges_ARG, type_ARG, stripes_long_ARG, stripesize_ARG, test_ARG,
147 use_policies_ARG, yes_ARG, force_ARG, zero_ARG)
148
149 xx(lvcreate,
150 "Create a logical volume",
151 0,
152 "lvcreate " "\n"
153 "\t[-A|--autobackup {y|n}]\n"
154 "\t[-a|--available [e|l]y|n]\n"
155 "\t[--addtag Tag]\n"
156 "\t[--alloc AllocationPolicy]\n"
157 "\t[-C|--contiguous {y|n}]\n"
158 "\t[-d|--debug]\n"
159 "\t[-h|-?|--help]\n"
160 "\t[--ignoremonitoring]\n"
161 "\t[--monitor {y|n}]\n"
162 "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n"
163 "\t{-l|--extents LogicalExtentsNumber[%{VG|PVS|FREE}] |\n"
164 "\t -L|--size LogicalVolumeSize[bBsSkKmMgGtTpPeE]}\n"
165 "\t[-M|--persistent {y|n}] [--major major] [--minor minor]\n"
166 "\t[-m|--mirrors Mirrors [--nosync] [{--mirrorlog {disk|core|mirrored}|--corelog}]]\n"
167 "\t[-n|--name LogicalVolumeName]\n"
168 "\t[--noudevsync]\n"
169 "\t[-p|--permission {r|rw}]\n"
170 "\t[-r|--readahead ReadAheadSectors|auto|none]\n"
171 "\t[-R|--regionsize MirrorLogRegionSize]\n"
172 "\t[-t|--test]\n"
173 "\t[--type VolumeType]\n"
174 "\t[-v|--verbose]\n"
175 "\t[-Z|--zero {y|n}]\n"
176 "\t[--version]\n"
177 "\tVolumeGroupName [PhysicalVolumePath...]\n\n"
178
179 "lvcreate \n"
180 "\t{ {-s|--snapshot} OriginalLogicalVolume[Path] |\n"
181 "\t [-s|--snapshot] VolumeGroupName[Path] -V|--virtualsize VirtualSize}\n"
182 "\t {-T|--thin} VolumeGroupName[Path][/PoolLogicalVolume] \n"
183 "\t -V|--virtualsize VirtualSize}\n"
184 "\t[-c|--chunksize]\n"
185 "\t[-A|--autobackup {y|n}]\n"
186 "\t[--addtag Tag]\n"
187 "\t[--alloc AllocationPolicy]\n"
188 "\t[-C|--contiguous {y|n}]\n"
189 "\t[-d|--debug]\n"
190 "\t[-h|-?|--help]\n"
191 "\t[--ignoremonitoring]\n"
192 "\t[--monitor {y|n}]\n"
193 "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n"
194 "\t{-l|--extents LogicalExtentsNumber[%{VG|FREE|ORIGIN}] |\n"
195 "\t -L|--size LogicalVolumeSize[bBsSkKmMgGtTpPeE]}\n"
196 "\t[--poolmetadatasize Size[bBsSkKmMgG]]\n"
197 "\t[-M|--persistent {y|n}] [--major major] [--minor minor]\n"
198 "\t[-n|--name LogicalVolumeName]\n"
199 "\t[--noudevsync]\n"
200 "\t[-p|--permission {r|rw}]\n"
201 "\t[-r|--readahead ReadAheadSectors|auto|none]\n"
202 "\t[-t|--test]\n"
203 "\t[--thinpool] PoolLogicalVolume\n"
204 "\t[-v|--verbose]\n"
205 "\t[--version]\n"
206
207 "\t[PhysicalVolumePath...]\n\n",
208
209 addtag_ARG, alloc_ARG, autobackup_ARG, available_ARG, chunksize_ARG,
210 contiguous_ARG, corelog_ARG, extents_ARG, ignoremonitoring_ARG, major_ARG,
211 minor_ARG, mirrorlog_ARG, mirrors_ARG, monitor_ARG, name_ARG, nosync_ARG,
212 noudevsync_ARG, permission_ARG, persistent_ARG, readahead_ARG,
213 regionsize_ARG, size_ARG, snapshot_ARG, stripes_ARG, stripesize_ARG,
214 test_ARG, thin_ARG, thinpool_ARG, type_ARG, virtualoriginsize_ARG,
215 poolmetadatasize_ARG, virtualsize_ARG, zero_ARG)
216
217 xx(lvdisplay,
218 "Display information about a logical volume",
219 PERMITTED_READ_ONLY,
220 "lvdisplay\n"
221 "\t[-a|--all]\n"
222 "\t[-c|--colon]\n"
223 "\t[-d|--debug]\n"
224 "\t[-h|--help]\n"
225 "\t[--ignorelockingfailure]\n"
226 "\t[-m|--maps]\n"
227 "\t[--nosuffix]\n"
228 "\t[-P|--partial] " "\n"
229 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
230 "\t[-v|--verbose]\n"
231 "\t[--version]" "\n"
232 "\t[LogicalVolume[Path] [LogicalVolume[Path]...]]\n"
233 "\n"
234 "lvdisplay --columns|-C\n"
235 "\t[--aligned]\n"
236 "\t[-a|--all]\n"
237 "\t[-d|--debug]\n"
238 "\t[-h|--help]\n"
239 "\t[--ignorelockingfailure]\n"
240 "\t[--noheadings]\n"
241 "\t[--nosuffix]\n"
242 "\t[-o|--options [+]Field[,Field]]\n"
243 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
244 "\t[-P|--partial] " "\n"
245 "\t[--segments]\n"
246 "\t[--separator Separator]\n"
247 "\t[--unbuffered]\n"
248 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
249 "\t[-v|--verbose]\n"
250 "\t[--version]" "\n"
251 "\t[LogicalVolume[Path] [LogicalVolume[Path]...]]\n",
252
253 aligned_ARG, all_ARG, colon_ARG, columns_ARG,
254 ignorelockingfailure_ARG, maps_ARG, noheadings_ARG, nosuffix_ARG,
255 options_ARG, sort_ARG, partial_ARG, segments_ARG, separator_ARG,
256 unbuffered_ARG, units_ARG)
257
258 xx(lvextend,
259 "Add space to a logical volume",
260 0,
261 "lvextend\n"
262 "\t[-A|--autobackup y|n]\n"
263 "\t[--alloc AllocationPolicy]\n"
264 "\t[-d|--debug]\n"
265 "\t[-f|--force]\n"
266 "\t[-h|--help]\n"
267 "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n"
268 "\t{-l|--extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}] |\n"
269 "\t -L|--size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}\n"
270 "\t[-m|--mirrors Mirrors]\n"
271 "\t[--nosync]\n"
272 "\t[--use-policies]\n"
273 "\t[-n|--nofsck]\n"
274 "\t[--noudevsync]\n"
275 "\t[-r|--resizefs]\n"
276 "\t[-t|--test]\n"
277 "\t[--type VolumeType]\n"
278 "\t[-v|--verbose]\n"
279 "\t[--version]" "\n"
280 "\tLogicalVolume[Path] [ PhysicalVolumePath... ]\n",
281
282 alloc_ARG, autobackup_ARG, extents_ARG, force_ARG, mirrors_ARG,
283 nofsck_ARG, nosync_ARG, noudevsync_ARG, resizefs_ARG, size_ARG, stripes_ARG,
284 stripesize_ARG, test_ARG, type_ARG, use_policies_ARG)
285
286 xx(lvmchange,
287 "With the device mapper, this is obsolete and does nothing.",
288 0,
289 "lvmchange\n"
290 "\t[-d|--debug]\n"
291 "\t[-h|--help]\n"
292 "\t[-R|--reset]\n"
293 "\t[-v|--verbose]\n"
294 "\t[--version]" "\n",
295
296 reset_ARG)
297
298 xx(lvmdiskscan,
299 "List devices that may be used as physical volumes",
300 PERMITTED_READ_ONLY,
301 "lvmdiskscan\n"
302 "\t[-d|--debug]\n"
303 "\t[-h|--help]\n"
304 "\t[-l|--lvmpartition]\n"
305 "\t[--version]" "\n",
306
307 lvmpartition_ARG)
308
309 xx(lvmsadc,
310 "Collect activity data",
311 0,
312 "lvmsadc\n"
313 "\t[-d|--debug]\n"
314 "\t[-h|--help]\n"
315 "\t[-v|--verbose]\n"
316 "\t[--version]" "\n"
317 "\t[LogFilePath]\n" )
318
319 xx(lvmsar,
320 "Create activity report",
321 0,
322 "lvmsar\n"
323 "\t[-d|--debug]\n"
324 "\t[-f|--full]\n"
325 "\t[-h|--help]\n"
326 "\t[-s|--stdin]\n"
327 "\t[-v|--verbose]\n"
328 "\t[--version]" "\n"
329 "\tLogFilePath\n",
330
331 full_ARG, stdin_ARG)
332
333 xx(lvreduce,
334 "Reduce the size of a logical volume",
335 0,
336 "lvreduce\n"
337 "\t[-A|--autobackup y|n]\n"
338 "\t[-d|--debug]\n"
339 "\t[-f|--force]\n"
340 "\t[-h|--help]\n"
341 "\t{-l|--extents [-]LogicalExtentsNumber[%{VG|LV|FREE|ORIGIN}] |\n"
342 "\t -L|--size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}\n"
343 "\t[-n|--nofsck]\n"
344 "\t[--noudevsync]\n"
345 "\t[-r|--resizefs]\n"
346 "\t[-t|--test]\n"
347 "\t[-v|--verbose]\n"
348 "\t[-y|--yes]\n"
349 "\t[--version]" "\n"
350 "\tLogicalVolume[Path]\n",
351
352 autobackup_ARG, force_ARG, extents_ARG, nofsck_ARG, noudevsync_ARG,
353 resizefs_ARG, size_ARG, test_ARG, yes_ARG)
354
355 xx(lvremove,
356 "Remove logical volume(s) from the system",
357 0,
358 "lvremove\n"
359 "\t[-A|--autobackup y|n]\n"
360 "\t[-d|--debug]\n"
361 "\t[-f|--force]\n"
362 "\t[-h|--help]\n"
363 "\t[--noudevsync]\n"
364 "\t[-t|--test]\n"
365 "\t[-v|--verbose]\n"
366 "\t[--version]" "\n"
367 "\tLogicalVolume[Path] [LogicalVolume[Path]...]\n",
368
369 autobackup_ARG, force_ARG, noudevsync_ARG, test_ARG)
370
371 xx(lvrename,
372 "Rename a logical volume",
373 0,
374 "lvrename\n"
375 "\t[-A|--autobackup {y|n}] " "\n"
376 "\t[-d|--debug] " "\n"
377 "\t[-h|-?|--help] " "\n"
378 "\t[--noudevsync]\n"
379 "\t[-t|--test] " "\n"
380 "\t[-v|--verbose]" "\n"
381 "\t[--version] " "\n"
382 "\t{ OldLogicalVolumePath NewLogicalVolumePath |" "\n"
383 "\t VolumeGroupName OldLogicalVolumeName NewLogicalVolumeName }\n",
384
385 autobackup_ARG, noudevsync_ARG, test_ARG)
386
387 xx(lvresize,
388 "Resize a logical volume",
389 0,
390 "lvresize\n"
391 "\t[-A|--autobackup y|n]\n"
392 "\t[--alloc AllocationPolicy]\n"
393 "\t[-d|--debug]\n"
394 "\t[-f|--force]\n"
395 "\t[-h|--help]\n"
396 "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n"
397 "\t{-l|--extents [+|-]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}] |\n"
398 "\t -L|--size [+|-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}\n"
399 "\t[-n|--nofsck]\n"
400 "\t[--noudevsync]\n"
401 "\t[-r|--resizefs]\n"
402 "\t[-t|--test]\n"
403 "\t[--type VolumeType]\n"
404 "\t[-v|--verbose]\n"
405 "\t[--version]" "\n"
406 "\tLogicalVolume[Path] [ PhysicalVolumePath... ]\n",
407
408 alloc_ARG, autobackup_ARG, extents_ARG, force_ARG, nofsck_ARG,
409 noudevsync_ARG, resizefs_ARG, size_ARG, stripes_ARG, stripesize_ARG,
410 test_ARG, type_ARG)
411
412 xx(lvs,
413 "Display information about logical volumes",
414 PERMITTED_READ_ONLY,
415 "lvs" "\n"
416 "\t[-a|--all]\n"
417 "\t[--aligned]\n"
418 "\t[-d|--debug]\n"
419 "\t[-h|--help]\n"
420 "\t[--ignorelockingfailure]\n"
421 "\t[--nameprefixes]\n"
422 "\t[--noheadings]\n"
423 "\t[--nosuffix]\n"
424 "\t[-o|--options [+]Field[,Field]]\n"
425 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
426 "\t[-P|--partial] " "\n"
427 "\t[--rows]\n"
428 "\t[--segments]\n"
429 "\t[--separator Separator]\n"
430 "\t[--trustcache]\n"
431 "\t[--unbuffered]\n"
432 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
433 "\t[--unquoted]\n"
434 "\t[-v|--verbose]\n"
435 "\t[--version]" "\n"
436 "\t[LogicalVolume[Path] [LogicalVolume[Path]...]]\n",
437
438 aligned_ARG, all_ARG, ignorelockingfailure_ARG, nameprefixes_ARG,
439 noheadings_ARG, nolocking_ARG, nosuffix_ARG, options_ARG, partial_ARG,
440 rows_ARG, segments_ARG, separator_ARG, sort_ARG, trustcache_ARG,
441 unbuffered_ARG, units_ARG, unquoted_ARG)
442
443 xx(lvscan,
444 "List all logical volumes in all volume groups",
445 PERMITTED_READ_ONLY,
446 "lvscan " "\n"
447 "\t[-a|--all]\n"
448 "\t[-b|--blockdevice] " "\n"
449 "\t[-d|--debug] " "\n"
450 "\t[-h|-?|--help] " "\n"
451 "\t[--ignorelockingfailure]\n"
452 "\t[-P|--partial] " "\n"
453 "\t[-v|--verbose] " "\n"
454 "\t[--version]\n",
455
456 all_ARG, blockdevice_ARG, ignorelockingfailure_ARG, partial_ARG)
457
458 xx(pvchange,
459 "Change attributes of physical volume(s)",
460 0,
461 "pvchange\n"
462 "\t[-a|--all]\n"
463 "\t[-A|--autobackup y|n]\n"
464 "\t[-d|--debug]\n"
465 "\t[-f|--force]\n"
466 "\t[-h|--help]\n"
467 "\t[-t|--test]\n"
468 "\t[-u|--uuid]\n"
469 "\t[-x|--allocatable y|n]\n"
470 "\t[--metadataignore y|n]\n"
471 "\t[-v|--verbose]\n"
472 "\t[--addtag Tag]\n"
473 "\t[--deltag Tag]\n"
474 "\t[--version]" "\n"
475 "\t[PhysicalVolumePath...]\n",
476
477 all_ARG, allocatable_ARG, allocation_ARG, autobackup_ARG, deltag_ARG,
478 addtag_ARG, force_ARG, metadataignore_ARG, test_ARG, uuid_ARG)
479
480 xx(pvresize,
481 "Resize physical volume(s)",
482 0,
483 "pvresize " "\n"
484 "\t[-d|--debug]" "\n"
485 "\t[-h|-?|--help] " "\n"
486 "\t[--setphysicalvolumesize PhysicalVolumeSize[bBsSkKmMgGtTpPeE]" "\n"
487 "\t[-t|--test] " "\n"
488 "\t[-v|--verbose] " "\n"
489 "\t[--version] " "\n"
490 "\tPhysicalVolume [PhysicalVolume...]\n",
491
492 physicalvolumesize_ARG, test_ARG)
493
494 xx(pvck,
495 "Check the consistency of physical volume(s)",
496 0,
497 "pvck "
498 "\t[-d|--debug]\n"
499 "\t[-h|--help]\n"
500 "\t[--labelsector sector] " "\n"
501 "\t[-v|--verbose]\n"
502 "\t[--version]" "\n"
503 "\tPhysicalVolume [PhysicalVolume...]\n",
504
505 labelsector_ARG)
506
507 xx(pvcreate,
508 "Initialize physical volume(s) for use by LVM",
509 0,
510 "pvcreate " "\n"
511 "\t[--norestorefile]\n"
512 "\t[--restorefile file]\n"
513 "\t[-d|--debug]" "\n"
514 "\t[-f[f]|--force [--force]] " "\n"
515 "\t[-h|-?|--help] " "\n"
516 "\t[--labelsector sector] " "\n"
517 "\t[-M|--metadatatype 1|2]" "\n"
518 "\t[--pvmetadatacopies #copies]" "\n"
519 "\t[--metadatasize MetadataSize[bBsSkKmMgGtTpPeE]]" "\n"
520 "\t[--dataalignment Alignment[bBsSkKmMgGtTpPeE]]" "\n"
521 "\t[--dataalignmentoffset AlignmentOffset[bBsSkKmMgGtTpPeE]]" "\n"
522 "\t[--setphysicalvolumesize PhysicalVolumeSize[bBsSkKmMgGtTpPeE]" "\n"
523 "\t[-t|--test] " "\n"
524 "\t[-u|--uuid uuid] " "\n"
525 "\t[-v|--verbose] " "\n"
526 "\t[-y|--yes]" "\n"
527 "\t[-Z|--zero {y|n}]\n"
528 "\t[--version] " "\n"
529 "\tPhysicalVolume [PhysicalVolume...]\n",
530
531 dataalignment_ARG, dataalignmentoffset_ARG, force_ARG, test_ARG,
532 labelsector_ARG, metadatatype_ARG, metadatacopies_ARG,
533 metadatasize_ARG, metadataignore_ARG, norestorefile_ARG,
534 physicalvolumesize_ARG, pvmetadatacopies_ARG,
535 restorefile_ARG, uuidstr_ARG, yes_ARG, zero_ARG)
536
537 xx(pvdata,
538 "Display the on-disk metadata for physical volume(s)",
539 0,
540 "pvdata " "\n"
541 "\t[-a|--all] " "\n"
542 "\t[-d|--debug] " "\n"
543 "\t[-E|--physicalextent] " "\n"
544 "\t[-h|-?|--help]" "\n"
545 "\t[-L|--logicalvolume] " "\n"
546 "\t[-P[P]|--physicalvolume [--physicalvolume]]" "\n"
547 "\t[-U|--uuidlist] " "\n"
548 "\t[-v[v]|--verbose [--verbose]] " "\n"
549 "\t[-V|--volumegroup]" "\n"
550 "\t[--version] " "\n"
551 "\tPhysicalVolume [PhysicalVolume...]\n",
552
553 all_ARG, logicalextent_ARG, physicalextent_ARG,
554 physicalvolume_ARG, uuidlist_ARG, volumegroup_ARG)
555
556 xx(pvdisplay,
557 "Display various attributes of physical volume(s)",
558 CACHE_VGMETADATA | PERMITTED_READ_ONLY,
559 "pvdisplay\n"
560 "\t[-c|--colon]\n"
561 "\t[-d|--debug]\n"
562 "\t[-h|--help]\n"
563 "\t[--ignorelockingfailure]\n"
564 "\t[-m|--maps]\n"
565 "\t[--nosuffix]\n"
566 "\t[-s|--short]\n"
567 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
568 "\t[-v|--verbose]\n"
569 "\t[--version]" "\n"
570 "\t[PhysicalVolumePath [PhysicalVolumePath...]]\n"
571 "\n"
572 "pvdisplay --columns|-C\n"
573 "\t[--aligned]\n"
574 "\t[-a|--all]\n"
575 "\t[-d|--debug]\n"
576 "\t[-h|--help]\n"
577 "\t[--ignorelockingfailure]\n"
578 "\t[--noheadings]\n"
579 "\t[--nosuffix]\n"
580 "\t[-o|--options [+]Field[,Field]]\n"
581 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
582 "\t[--separator Separator]\n"
583 "\t[--unbuffered]\n"
584 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
585 "\t[-v|--verbose]\n"
586 "\t[--version]" "\n"
587 "\t[PhysicalVolumePath [PhysicalVolumePath...]]\n",
588
589 aligned_ARG, all_ARG, colon_ARG, columns_ARG, ignorelockingfailure_ARG,
590 maps_ARG, noheadings_ARG, nosuffix_ARG, options_ARG, separator_ARG,
591 short_ARG, sort_ARG, unbuffered_ARG, units_ARG)
592
593 xx(pvmove,
594 "Move extents from one physical volume to another",
595 0,
596 "pvmove " "\n"
597 "\t[--abort]\n"
598 "\t[-A|--autobackup {y|n}]\n"
599 "\t[--alloc AllocationPolicy]\n"
600 "\t[-b|--background]\n"
601 "\t[-d|--debug]\n "
602 "\t[-h|-?|--help]\n"
603 "\t[-i|--interval seconds]\n"
604 "\t[--noudevsync]\n"
605 "\t[-t|--test]\n "
606 "\t[-v|--verbose]\n "
607 "\t[--version]\n"
608 "\t[{-n|--name} LogicalVolume]\n"
609 /* "\t[{-n|--name} LogicalVolume[:LogicalExtent[-LogicalExtent]...]]\n" */
610 "\tSourcePhysicalVolume[:PhysicalExtent[-PhysicalExtent]...]}\n"
611 "\t[DestinationPhysicalVolume[:PhysicalExtent[-PhysicalExtent]...]...]\n",
612
613 abort_ARG, alloc_ARG, autobackup_ARG, background_ARG,
614 interval_ARG, name_ARG, noudevsync_ARG, test_ARG)
615
616 xx(pvremove,
617 "Remove LVM label(s) from physical volume(s)",
618 0,
619 "pvremove " "\n"
620 "\t[-d|--debug]" "\n"
621 "\t[-f[f]|--force [--force]] " "\n"
622 "\t[-h|-?|--help] " "\n"
623 "\t[-t|--test] " "\n"
624 "\t[-v|--verbose] " "\n"
625 "\t[-y|--yes]" "\n"
626 "\t[--version] " "\n"
627 "\tPhysicalVolume [PhysicalVolume...]\n",
628
629 force_ARG, test_ARG, yes_ARG)
630
631 xx(pvs,
632 "Display information about physical volumes",
633 CACHE_VGMETADATA | PERMITTED_READ_ONLY,
634 "pvs" "\n"
635 "\t[-a|--all]\n"
636 "\t[--aligned]\n"
637 "\t[-d|--debug]" "\n"
638 "\t[-h|-?|--help] " "\n"
639 "\t[--ignorelockingfailure]\n"
640 "\t[--nameprefixes]\n"
641 "\t[--noheadings]\n"
642 "\t[--nosuffix]\n"
643 "\t[-o|--options [+]Field[,Field]]\n"
644 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
645 "\t[-P|--partial] " "\n"
646 "\t[--rows]\n"
647 "\t[--segments]\n"
648 "\t[--separator Separator]\n"
649 "\t[--trustcache]\n"
650 "\t[--unbuffered]\n"
651 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
652 "\t[--unquoted]\n"
653 "\t[-v|--verbose]\n"
654 "\t[--version]\n"
655 "\t[PhysicalVolume [PhysicalVolume...]]\n",
656
657 aligned_ARG, all_ARG, ignorelockingfailure_ARG, nameprefixes_ARG,
658 noheadings_ARG, nolocking_ARG, nosuffix_ARG, options_ARG, partial_ARG,
659 rows_ARG, segments_ARG, separator_ARG, sort_ARG, trustcache_ARG,
660 unbuffered_ARG, units_ARG, unquoted_ARG)
661
662 xx(pvscan,
663 "List all physical volumes",
664 PERMITTED_READ_ONLY,
665 "pvscan " "\n"
666 "\t[--cache [DevicePath...]] " "\n"
667 "\t[-d|--debug] " "\n"
668 "\t{-e|--exported | -n|--novolumegroup} " "\n"
669 "\t[-h|-?|--help]" "\n"
670 "\t[--ignorelockingfailure]\n"
671 "\t[-P|--partial] " "\n"
672 "\t[-s|--short] " "\n"
673 "\t[-u|--uuid] " "\n"
674 "\t[-v|--verbose] " "\n"
675 "\t[--version]\n",
676
677 cache_ARG, exported_ARG, ignorelockingfailure_ARG, novolumegroup_ARG,
678 partial_ARG, short_ARG, uuid_ARG)
679
680 xx(segtypes,
681 "List available segment types",
682 PERMITTED_READ_ONLY,
683 "segtypes\n")
684
685 xx(vgcfgbackup,
686 "Backup volume group configuration(s)",
687 PERMITTED_READ_ONLY,
688 "vgcfgbackup " "\n"
689 "\t[-d|--debug] " "\n"
690 "\t[-f|--file filename] " "\n"
691 "\t[-h|-?|--help] " "\n"
692 "\t[--ignorelockingfailure]\n"
693 "\t[-P|--partial] " "\n"
694 "\t[-v|--verbose]" "\n"
695 "\t[--version] " "\n"
696 "\t[VolumeGroupName...]\n",
697
698 file_ARG, ignorelockingfailure_ARG, partial_ARG)
699
700 xx(vgcfgrestore,
701 "Restore volume group configuration",
702 0,
703 "vgcfgrestore " "\n"
704 "\t[-d|--debug] " "\n"
705 "\t[-f|--file filename] " "\n"
706 "\t[-l[l]|--list [--list]]" "\n"
707 "\t[-M|--metadatatype 1|2]" "\n"
708 "\t[-h|--help]" "\n"
709 "\t[-t|--test] " "\n"
710 "\t[-v|--verbose]" "\n"
711 "\t[--version] " "\n"
712 "\tVolumeGroupName",
713
714 file_ARG, list_ARG, metadatatype_ARG, test_ARG)
715
716 xx(vgchange,
717 "Change volume group attributes",
718 CACHE_VGMETADATA | PERMITTED_READ_ONLY,
719 "vgchange" "\n"
720 "\t[-A|--autobackup {y|n}] " "\n"
721 "\t[--alloc AllocationPolicy] " "\n"
722 "\t[-P|--partial] " "\n"
723 "\t[-d|--debug] " "\n"
724 "\t[-h|--help] " "\n"
725 "\t[--ignorelockingfailure]\n"
726 "\t[--ignoremonitoring]\n"
727 "\t[--monitor {y|n}]\n"
728 "\t[--[vg]metadatacopies #copies] " "\n"
729 "\t[--poll {y|n}]\n"
730 "\t[--noudevsync]\n"
731 "\t[--refresh]\n"
732 "\t[--sysinit]\n"
733 "\t[-t|--test]" "\n"
734 "\t[-u|--uuid] " "\n"
735 "\t[-v|--verbose] " "\n"
736 "\t[--version]" "\n"
737 "\t{-a|--available [e|l]{y|n} |" "\n"
738 "\t -c|--clustered {y|n} |" "\n"
739 "\t -x|--resizeable {y|n} |" "\n"
740 "\t -l|--logicalvolume MaxLogicalVolumes |" "\n"
741 "\t -p|--maxphysicalvolumes MaxPhysicalVolumes |" "\n"
742 "\t -s|--physicalextentsize PhysicalExtentSize[bBsSkKmMgGtTpPeE] |" "\n"
743 "\t --addtag Tag |\n"
744 "\t --deltag Tag}\n"
745 "\t[VolumeGroupName...]\n",
746
747 addtag_ARG, alloc_ARG, allocation_ARG, autobackup_ARG, available_ARG,
748 clustered_ARG, deltag_ARG, ignorelockingfailure_ARG, ignoremonitoring_ARG,
749 logicalvolume_ARG, maxphysicalvolumes_ARG, monitor_ARG, noudevsync_ARG,
750 metadatacopies_ARG, vgmetadatacopies_ARG, partial_ARG,
751 physicalextentsize_ARG, poll_ARG, refresh_ARG, resizeable_ARG,
752 resizable_ARG, sysinit_ARG, test_ARG, uuid_ARG)
753
754 xx(vgck,
755 "Check the consistency of volume group(s)",
756 0,
757 "vgck "
758 "\t[-d|--debug]\n"
759 "\t[-h|--help]\n"
760 "\t[-v|--verbose]\n"
761 "\t[--version]" "\n"
762 "\t[VolumeGroupName...]\n" )
763
764 xx(vgconvert,
765 "Change volume group metadata format",
766 0,
767 "vgconvert " "\n"
768 "\t[-d|--debug]" "\n"
769 "\t[-h|--help] " "\n"
770 "\t[--labelsector sector] " "\n"
771 "\t[-M|--metadatatype 1|2]" "\n"
772 "\t[--pvmetadatacopies #copies]" "\n"
773 "\t[--metadatasize MetadataSize[bBsSkKmMgGtTpPeE]]" "\n"
774 "\t[-t|--test] " "\n"
775 "\t[-v|--verbose] " "\n"
776 "\t[--version] " "\n"
777 "\tVolumeGroupName [VolumeGroupName...]\n",
778
779 force_ARG, test_ARG, labelsector_ARG, metadatatype_ARG, metadatacopies_ARG,
780 pvmetadatacopies_ARG, metadatasize_ARG )
781
782 xx(vgcreate,
783 "Create a volume group",
784 0,
785 "vgcreate" "\n"
786 "\t[-A|--autobackup {y|n}] " "\n"
787 "\t[--addtag Tag] " "\n"
788 "\t[--alloc AllocationPolicy] " "\n"
789 "\t[-c|--clustered {y|n}] " "\n"
790 "\t[-d|--debug]" "\n"
791 "\t[-h|--help]" "\n"
792 "\t[-l|--maxlogicalvolumes MaxLogicalVolumes]" "\n"
793 "\t[-M|--metadatatype 1|2] " "\n"
794 "\t[--[vg]metadatacopies #copies] " "\n"
795 "\t[-p|--maxphysicalvolumes MaxPhysicalVolumes] " "\n"
796 "\t[-s|--physicalextentsize PhysicalExtentSize[bBsSkKmMgGtTpPeE]] " "\n"
797 "\t[-t|--test] " "\n"
798 "\t[-v|--verbose]" "\n"
799 "\t[--version] " "\n"
800 "\t[ PHYSICAL DEVICE OPTIONS ] " "\n"
801 "\tVolumeGroupName PhysicalDevicePath [PhysicalDevicePath...]\n",
802
803 addtag_ARG, alloc_ARG, autobackup_ARG, clustered_ARG, maxlogicalvolumes_ARG,
804 maxphysicalvolumes_ARG, metadatatype_ARG, physicalextentsize_ARG, test_ARG,
805 force_ARG, yes_ARG, zero_ARG, labelsector_ARG, metadatasize_ARG,
806 pvmetadatacopies_ARG, metadatacopies_ARG, vgmetadatacopies_ARG,
807 dataalignment_ARG, dataalignmentoffset_ARG)
808
809 xx(vgdisplay,
810 "Display volume group information",
811 PERMITTED_READ_ONLY,
812 "vgdisplay " "\n"
813 "\t[-A|--activevolumegroups]" "\n"
814 "\t[-c|--colon | -s|--short | -v|--verbose]" "\n"
815 "\t[-d|--debug] " "\n"
816 "\t[-h|--help] " "\n"
817 "\t[--ignorelockingfailure]" "\n"
818 "\t[--nosuffix]\n"
819 "\t[-P|--partial] " "\n"
820 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
821 "\t[--version]" "\n"
822 "\t[VolumeGroupName [VolumeGroupName...]]\n"
823 "\n"
824 "vgdisplay --columns|-C\n"
825 "\t[--aligned]\n"
826 "\t[-d|--debug] " "\n"
827 "\t[-h|--help] " "\n"
828 "\t[--ignorelockingfailure]" "\n"
829 "\t[--noheadings]\n"
830 "\t[--nosuffix]\n"
831 "\t[-o|--options [+]Field[,Field]]\n"
832 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
833 "\t[-P|--partial] " "\n"
834 "\t[--separator Separator]\n"
835 "\t[--unbuffered]\n"
836 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
837 "\t[--verbose]" "\n"
838 "\t[--version]" "\n"
839 "\t[VolumeGroupName [VolumeGroupName...]]\n",
840
841 activevolumegroups_ARG, aligned_ARG, colon_ARG, columns_ARG,
842 ignorelockingfailure_ARG, noheadings_ARG, nosuffix_ARG, options_ARG,
843 partial_ARG, short_ARG, separator_ARG, sort_ARG, unbuffered_ARG, units_ARG)
844
845 xx(vgexport,
846 "Unregister volume group(s) from the system",
847 0,
848 "vgexport " "\n"
849 "\t[-a|--all] " "\n"
850 "\t[-d|--debug] " "\n"
851 "\t[-h|--help]" "\n"
852 "\t[-v|--verbose] " "\n"
853 "\t[--version] " "\n"
854 "\tVolumeGroupName [VolumeGroupName...]\n",
855
856 all_ARG, test_ARG)
857
858 xx(vgextend,
859 "Add physical volumes to a volume group",
860 0,
861 "vgextend\n"
862 "\t[-A|--autobackup y|n]\n"
863 "\t[--restoremissing]\n"
864 "\t[-d|--debug]\n"
865 "\t[-f|--force]\n"
866 "\t[-h|--help]\n"
867 "\t[-t|--test]\n"
868 "\t[-v|--verbose]\n"
869 "\t[--version]" "\n"
870 "\t[ PHYSICAL DEVICE OPTIONS ] " "\n"
871 "\tVolumeGroupName PhysicalDevicePath [PhysicalDevicePath...]\n",
872
873 autobackup_ARG, test_ARG,
874 force_ARG, yes_ARG, zero_ARG, labelsector_ARG, metadatatype_ARG,
875 metadatasize_ARG, pvmetadatacopies_ARG, metadatacopies_ARG,
876 metadataignore_ARG, dataalignment_ARG, dataalignmentoffset_ARG,
877 restoremissing_ARG)
878
879 xx(vgimport,
880 "Register exported volume group with system",
881 0,
882 "vgimport " "\n"
883 "\t[-a|--all]\n"
884 "\t[-d|--debug] " "\n"
885 "\t[-f|--force] " "\n"
886 "\t[-h|--help] " "\n"
887 "\t[-t|--test] " "\n"
888 "\t[-v|--verbose]" "\n"
889 "\t[--version]" "\n"
890 "\tVolumeGroupName..." "\n",
891
892 all_ARG, force_ARG, test_ARG)
893
894 xx(vgmerge,
895 "Merge volume groups",
896 0,
897 "vgmerge\n"
898 "\t[-A|--autobackup y|n]\n"
899 "\t[-d|--debug]\n"
900 "\t[-h|--help]\n"
901 "\t[-l|--list]\n"
902 "\t[-t|--test]\n"
903 "\t[-v|--verbose]\n"
904 "\t[--version]" "\n"
905 "\tDestinationVolumeGroupName SourceVolumeGroupName\n",
906
907 autobackup_ARG, list_ARG, test_ARG)
908
909 xx(vgmknodes,
910 "Create the special files for volume group devices in /dev",
911 0,
912 "vgmknodes\n"
913 "\t[-d|--debug]\n"
914 "\t[-h|--help]\n"
915 "\t[--ignorelockingfailure]\n"
916 "\t[--refresh]\n"
917 "\t[-v|--verbose]\n"
918 "\t[--version]" "\n"
919 "\t[VolumeGroupName...]\n",
920
921 ignorelockingfailure_ARG, refresh_ARG)
922
923 xx(vgreduce,
924 "Remove physical volume(s) from a volume group",
925 0,
926 "vgreduce\n"
927 "\t[-a|--all]\n"
928 "\t[-A|--autobackup y|n]\n"
929 "\t[-d|--debug]\n"
930 "\t[-h|--help]\n"
931 "\t[--mirrorsonly]\n"
932 "\t[--removemissing]\n"
933 "\t[-f|--force]\n"
934 "\t[-t|--test]\n"
935 "\t[-v|--verbose]\n"
936 "\t[--version]" "\n"
937 "\tVolumeGroupName\n"
938 "\t[PhysicalVolumePath...]\n",
939
940 all_ARG, autobackup_ARG, force_ARG, mirrorsonly_ARG, removemissing_ARG,
941 test_ARG)
942
943 xx(vgremove,
944 "Remove volume group(s)",
945 0,
946 "vgremove\n"
947 "\t[-d|--debug]\n"
948 "\t[-f|--force]\n"
949 "\t[-h|--help]\n"
950 "\t[--noudevsync]\n"
951 "\t[-t|--test]\n"
952 "\t[-v|--verbose]\n"
953 "\t[--version]" "\n"
954 "\tVolumeGroupName [VolumeGroupName...]\n",
955
956 force_ARG, noudevsync_ARG, test_ARG)
957
958 xx(vgrename,
959 "Rename a volume group",
960 0,
961 "vgrename\n"
962 "\t[-A|--autobackup y|n]\n"
963 "\t[-d|--debug]\n"
964 "\t[-h|--help]\n"
965 "\t[-t|--test]\n"
966 "\t[-v|--verbose]\n"
967 "\t[--version]" "\n"
968 "\tOldVolumeGroupPath NewVolumeGroupPath |\n"
969 "\tOldVolumeGroupName NewVolumeGroupName\n",
970
971 autobackup_ARG, force_ARG, test_ARG)
972
973 xx(vgs,
974 "Display information about volume groups",
975 PERMITTED_READ_ONLY,
976 "vgs" "\n"
977 "\t[--aligned]\n"
978 "\t[-a|--all]\n"
979 "\t[-d|--debug]\n"
980 "\t[-h|--help]\n"
981 "\t[--ignorelockingfailure]\n"
982 "\t[--nameprefixes]\n"
983 "\t[--noheadings]\n"
984 "\t[--nosuffix]\n"
985 "\t[-o|--options [+]Field[,Field]]\n"
986 "\t[-O|--sort [+|-]key1[,[+|-]key2[,...]]]\n"
987 "\t[-P|--partial] " "\n"
988 "\t[--rows]\n"
989 "\t[--separator Separator]\n"
990 "\t[--trustcache]\n"
991 "\t[--unbuffered]\n"
992 "\t[--units hHbBsSkKmMgGtTpPeE]\n"
993 "\t[--unquoted]\n"
994 "\t[-v|--verbose]\n"
995 "\t[--version]\n"
996 "\t[VolumeGroupName [VolumeGroupName...]]\n",
997
998 aligned_ARG, all_ARG, ignorelockingfailure_ARG, nameprefixes_ARG,
999 noheadings_ARG, nolocking_ARG, nosuffix_ARG, options_ARG, partial_ARG,
1000 rows_ARG, separator_ARG, sort_ARG, trustcache_ARG, unbuffered_ARG, units_ARG,
1001 unquoted_ARG)
1002
1003 xx(vgscan,
1004 "Search for all volume groups",
1005 PERMITTED_READ_ONLY,
1006 "vgscan "
1007 "\t[-d|--debug]\n"
1008 "\t[-h|--help]\n"
1009 "\t[--ignorelockingfailure]\n"
1010 "\t[--mknodes]\n"
1011 "\t[-P|--partial] " "\n"
1012 "\t[-v|--verbose]\n"
1013 "\t[--version]" "\n",
1014
1015 ignorelockingfailure_ARG, mknodes_ARG, partial_ARG)
1016
1017 xx(vgsplit,
1018 "Move physical volumes into a new or existing volume group",
1019 0,
1020 "vgsplit " "\n"
1021 "\t[-A|--autobackup {y|n}] " "\n"
1022 "\t[--alloc AllocationPolicy] " "\n"
1023 "\t[-c|--clustered {y|n}] " "\n"
1024 "\t[-d|--debug] " "\n"
1025 "\t[-h|--help] " "\n"
1026 "\t[-l|--maxlogicalvolumes MaxLogicalVolumes]" "\n"
1027 "\t[-M|--metadatatype 1|2] " "\n"
1028 "\t[--[vg]metadatacopies #copies] " "\n"
1029 "\t[-n|--name LogicalVolumeName]\n"
1030 "\t[-p|--maxphysicalvolumes MaxPhysicalVolumes] " "\n"
1031 "\t[-t|--test] " "\n"
1032 "\t[-v|--verbose] " "\n"
1033 "\t[--version]" "\n"
1034 "\tSourceVolumeGroupName DestinationVolumeGroupName" "\n"
1035 "\t[PhysicalVolumePath...]\n",
1036
1037 alloc_ARG, autobackup_ARG, clustered_ARG,
1038 maxlogicalvolumes_ARG, maxphysicalvolumes_ARG,
1039 metadatatype_ARG, vgmetadatacopies_ARG, name_ARG, test_ARG)
1040
1041 xx(version,
1042 "Display software and driver version information",
1043 PERMITTED_READ_ONLY,
1044 "version\n" )
1045
This page took 0.098297 seconds and 6 git commands to generate.