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