master - man: document --configreport, --logonly, --reportformat
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a910052a2e7da4531ff0e39e569ab2eaa56b1870 Commit: a910052a2e7da4531ff0e39e569ab2eaa56b1870 Parent: 9a414245b908bfa1bacb12b6416908de65f0e317 Author: Peter Rajnoha <[email protected]> AuthorDate: Fri Jun 24 14:51:20 2016 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Fri Jun 24 14:51:20 2016 +0200
man: document --configreport, --logonly, --reportformat
--- man/lvchange.8.in | 2 ++ man/lvcreate.8.in | 4 ++++ man/lvdisplay.8.in | 20 ++++++++++++++------ man/lvextend.8.in | 2 ++ man/lvm.8.in | 10 ++++++++++ man/lvreduce.8.in | 2 ++ man/lvremove.8.in | 2 ++ man/lvrename.8.in | 2 ++ man/lvresize.8.in | 2 ++ man/lvs.8.in | 29 ++++++++++++++++++++++++----- man/lvscan.8.in | 2 ++ man/pvchange.8.in | 2 ++ man/pvcreate.8.in | 2 ++ man/pvdisplay.8.in | 21 ++++++++++++++------- man/pvmove.8.in | 2 ++ man/pvremove.8.in | 2 ++ man/pvresize.8.in | 2 ++ man/pvs.8.in | 30 ++++++++++++++++++++++++------ man/pvscan.8.in | 4 ++++ man/vgcfgbackup.8.in | 2 ++ man/vgchange.8.in | 2 ++ man/vgck.8.in | 2 ++ man/vgconvert.8.in | 2 ++ man/vgcreate.8.in | 2 ++ man/vgdisplay.8.in | 20 ++++++++++++++------ man/vgexport.8.in | 2 ++ man/vgextend.8.in | 2 ++ man/vgimport.8.in | 2 ++ man/vgmknodes.8.in | 2 ++ man/vgreduce.8.in | 2 ++ man/vgremove.8.in | 2 ++ man/vgrename.8.in | 2 ++ man/vgs.8.in | 30 ++++++++++++++++++++++++------ man/vgscan.8.in | 2 ++ 34 files changed, 182 insertions(+), 36 deletions(-)
man/lvchange.8.in +2 -0
@@ -76,6 +76,8 @@ lvchange \(em change attributes of a logical volume .RB [ \-r | \-\-readahead .RB { \fIReadAheadSectors | auto | none }] .RB [ \-\-refresh ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-resync ] .RB [ \-S | \-\-select .IR Selection ]
man/lvcreate.8.in +4 -0
@@ -93,6 +93,8 @@ lvcreate \- create a logical volume in an existing volume group .IR Rate ] .RB [ \-r | \-\-readahead .RB { \fIReadAheadSectors | auto | none }] +.RB [ \-\-reportformat +.RB {basic | json}] .RB \%[ \-k | \-\-setactivationskip .RB { y | n }] .RB [ \-s | \-\-snapshot ]
@@ -133,6 +135,8 @@ lvcreate \- create a logical volume in an existing volume group .RB { y | n }] .RB [ \-n | \-\-name .IR SnapshotLogicalVolumeName ] +.RB [ \-\-reportformat +.RB {basic | json}] .BR \-s | \-\-snapshot | \-H | \-\-cache .RI \%{[ VolumeGroup \fB/\fP] OriginalLogicalVolume .RB \%[ \-V | \-\-virtualsize
man/lvdisplay.8.in +14 -6
@@ -14,6 +14,8 @@ lvdisplay \(em display attributes of a logical volume .RB [ \-\-maps ] .RB [ \-\-nosuffix ] .RB [ \-P | \-\-partial ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-S | \-\-select .IR Selection ] .RB [ \-\-units
@@ -30,20 +32,26 @@ lvdisplay \(em display attributes of a logical volume .RB [ \-a | \-\-all ] .RB [ \-\-commandprofile .IR ProfileName ] +.RB [[ \-\-configreport +.IR ReportName ] +.RB [ \-o | \-\-options +.RI [ + | \- | # ] Field1 [, Field2 ...] +.RB [ \-O | \-\-sort +.RI [ + | \- ] Key1 [, Key2 ...]] +.RB [ \-S | \-\-select +.IR Selection ] +.RB ...] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] .RB [ \-\-ignorelockingfailure ] .RB [ \-\-ignoreskippedcluster ] +.RB [ \-\-logonly ] .RB [ \-\-noheadings ] .RB [ \-\-nosuffix ] -.RB [ \-o | \-\-options -.RI [ + | \- | # ] Field [ ,Field ...]] -.RB [ \-O | \-\-sort -.RI [ + | \- ] Key1 [ , [ + | \- ] Key2 ...]] .RB [ \-P | \-\-partial ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-segments ] -.RB [ \-S | \-\-select -.IR Selection ] .RB [ \-\-separator .IR Separator ] .RB [ \-\-unbuffered ]
man/lvextend.8.in +2 -0
@@ -24,6 +24,8 @@ lvextend \(em extend the size of a logical volume .RB [ \-n | \-\-nofsck ] .RB [ \-\-noudevsync] .RB [ \-r | \-\-resizefs ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-use\-policies ] .RB [ \-t | \-\-test ] .RB [ \-v | \-\-verbose ]
man/lvm.8.in +10 -0
@@ -466,6 +466,16 @@ for any other command (with the exception of \fBlvmconfig\fP command where the \fB\-\-profile\fP has special meaning, see \fBlvmconfig\fP(8) for more information). . .HP +.BR \-\-reportformat +.IR {basic|json} +.br +Overrides current output format for reports which is defined globally by +\fBreport/output_format\fP configuration setting in \fBlvm.conf\fP(5). +The \fBbasic\fP format is the original format with columns and rows and +if there is more than one report per command, each report is prefixed +with report's name for identification. The \fBjson\fP stands for report +output in JSON format. +.HP .BR \-\-config .IR ConfigurationString .br
man/lvreduce.8.in +2 -0
@@ -20,6 +20,8 @@ lvreduce \(em reduce the size of a logical volume .BR \-L | \-\-size .RI [ \- ] LogicalVolumeSize [ bBsSkKmMgGtTpPeE ]} .RB [ \-n | \-\-nofsck ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-r | \-\-resizefs ] .IR LogicalVolume { Name | Path } .SH DESCRIPTION
man/lvremove.8.in +2 -0
@@ -10,6 +10,8 @@ lvremove \(em remove a logical volume .RB [ \-d | \-\-debug ] .RB [ \-h | \-\-help ] .RB [ \-\-nohistory ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-S | \-\-select .IR Selection ] .RB [ \-t | \-\-test ]
man/lvrename.8.in +2 -0
@@ -14,6 +14,8 @@ lvrename \(em rename a logical volume .RB [ \-\-version ] .RB [ \-f | \-\-force ] .RB [ \-\-noudevsync ] +.RB [ \-\-reportformat +.RB { basic | json }] .RI { OldLogicalVolume { Name | Path } .IR NewLogicalVolume { Name | Path } |
man/lvresize.8.in +2 -0
@@ -17,6 +17,8 @@ lvresize \(em resize a logical volume .RI [ + ] MetadataVolumeSize [ bBsSkKmMgG ]] .RB [ \-f | \-\-force ] .RB [ \-n | \-\-nofsck ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-r | \-\-resizefs ] .IR LogicalVolume { Name | Path } .RI [ PhysicalVolumePath [ :PE [ \-PE ]]...]
man/lvs.8.in +24 -5
@@ -8,22 +8,29 @@ lvs \(em report information about logical volumes .RB [ \-a | \-\-all ] .RB [ \-\-commandprofile .IR ProfileName ] +.RB [[ \-\-configreport +.IR ReportName ] +.RB [ \-o | \-\-options +.RI [ + | \- | # ] Field1 [, Field2 ...] +.RB [ \-O | \-\-sort +.RI [ + | \- ] Key1 [, Key2 ...]] +.RB [ \-S | \-\-select +.IR Selection ] +.RB ...] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] .RB [ \-H | \-\-history ] .RB [ \-\-ignorelockingfailure ] .RB [ \-\-ignoreskippedcluster ] +.RB [ \-\-logonly ] .RB [ \-\-nameprefixes ] .RB [ \-\-noheadings ] .RB [ \-\-nosuffix ] -.RB [ \-o | \-\-options -.RI [ + | \- | # ] Field [, Field ]] -.RB [ \-O | \-\-sort .RI [ + | \- ] Key1 [,[ + | \- ] Key2 [,...]]] .RB [ \-P | \-\-partial ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-rows ] -.RB [ \-S | \-\-select -.IR Selection ] .RB [ \-\-separator .IR Separator ] .RB [ \-\-segments ]
@@ -51,6 +58,15 @@ Use binary values "0" or "1" instead of descriptive literal values for columns that have exactly two valid values to report (not counting the "unknown" value which denotes that the value could not be determined). .TP +.B \-\-configreport \fI ReportName +Make any subsequent \fB\-o, \-\-options\fP, \fB\-O, \-\-sort\fP or +\fB\-S, \-\-select\fP to apply for \fIReportName\fP where \fIReportName\fP +is either 'lvs' for command's main report or 'log' for log report. +If \fB\-\-configreport\fP option is not used to identify a report, then +command's main report is assumed. The log report is available only if +enabled by \fBlog/report_command_log\fP \fBlvm.conf\fP(5) setting or +if \fB\-\-logonly\fP option is used. +.TP .B \-\-all Include information in the output about internal Logical Volumes that are components of normally-accessible Logical Volumes, such as mirrors,
@@ -66,6 +82,9 @@ Include historical logical volumes in the output. (This has no effect unless logical volumes were removed while the configuration setting \fBmetadata/record_lvs_history\fP was enabled.) .TP +.B \-\-logonly +Suppress the lvs report itself and display only log report on output. +.TP .B \-\-nameprefixes Add an "LVM2_" prefix plus the field name to the output. Useful with \fB\-\-noheadings\fP to produce a list of field=value pairs that can
man/lvscan.8.in +2 -0
@@ -11,6 +11,8 @@ lvscan \(em scan (all disks) for Logical Volumes .RB [ \-h | \-\-help ] .RB [ \-\-ignorelockingfailure ] .RB [ \-P | \-\-partial ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-v | \-\-verbose ] .SH DESCRIPTION lvscan scans all known volume groups or all supported LVM block devices
man/pvchange.8.in +2 -0
@@ -16,6 +16,8 @@ pvchange \(em change attributes of a physical volume .RB [ \-\-metadataignore .RI { y | n }] .RB [ \-h | \-? | \-\-help ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-S | \-\-select .IR Selection ] .RB [ \-t | \-\-test ]
man/pvcreate.8.in +2 -0
@@ -31,6 +31,8 @@ pvcreate \(em initialize a disk or partition for use by LVM .RB [ \-\-restorefile .IR file ] .RB [ \-\-norestorefile ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-setphysicalvolumesize .IR size ] .RB [ \-u | \-\-uuid
man/pvdisplay.8.in +14 -7
@@ -12,6 +12,8 @@ pvdisplay \- display attributes of a physical volume .RB [ \-\-ignoreskippedcluster ] .RB [ \-\-maps ] .RB [ \-\-nosuffix ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-s | \-\-short ] .RB [ \-S | \-\-select .IR Selection ]
@@ -30,19 +32,24 @@ pvdisplay \- display attributes of a physical volume .RB [ \-\-binary ] .RB [ \-a | \-\-all ] .RB [ \-\-commandprofile +.RB [[ \-\-configreport +.IR ReportName ] +.RB [ \-o | \-\-options +.RI [ + | \- | # ] Field1 [, Field2 ...] +.RB [ \-O | \-\-sort +.RI [ + | \- ] Key1 [, Key2 ...]] +.RB [ \-S | \-\-select +.IR Selection ] +.RB ...] .IR ProfileName ] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] .RB [ \-\-ignorelockingfailure ] +.RB [ \-\-logonly ] .RB [ \-\-noheadings ] .RB [ \-\-nosuffix ] -.RB [ \-o | \-\-options -.RI [ + | \- | # ] Field [ ,Field ...]] -.RB [ \-O | \-\-sort -.RI [ + | \- ] Key1 [ , [ + | \- ] Key2 ... -.RI ]] -.RB [ \-S | \-\-select -.IR Selection ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-separator .IR Separator ] .RB [ \-\-unbuffered ]
man/pvmove.8.in +2 -0
@@ -15,6 +15,8 @@ pvmove \(em move physical extents .RB [ \-i | \-\-interval .IR Seconds ] .RB [ \-\-noudevsync ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-v | \-\-verbose ] .RB [ \-n | \-\-name .IR LogicalVolume ]
man/pvremove.8.in +2 -0
@@ -12,6 +12,8 @@ pvremove \(em remove a physical volume .RB [ \-\-version ] .RB [ \-f [ f ]| \-\-force .RB [ \-\-force ]] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-y | \-\-yes ] .I PhysicalVolume .RI [ PhysicalVolume ...]
man/pvresize.8.in +2 -0
@@ -10,6 +10,8 @@ pvresize \(em resize a disk or partition in use by LVM2 .RB [ \-t | \-\-test ] .RB [ \-v | \-\-verbose ] .RB [ \-\-version ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-setphysicalvolumesize .IR size ] .I PhysicalVolume
man/pvs.8.in +24 -6
@@ -8,22 +8,28 @@ pvs \(em report information about physical volumes .RB [ \-\-binary ] .RB [ \-\-commandprofile .IR ProfileName ] +.RB [[ \-\-configreport +.IR ReportName ] +.RB [ \-o | \-\-options +.RI [ + | \- | # ] Field1 [, Field2 ...] +.RB [ \-O | \-\-sort +.RI [ + | \- ] Key1 [, Key2 ...]] +.RB [ \-S | \-\-select +.IR Selection ] +.RB ...] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] .RB [ \-\-ignorelockingfailure ] .RB [ \-\-ignoreskippedcluster ] +.RB [ \-\-logonly ] .RB [ \-\-nameprefixes ] .RB [ \-\-noheadings ] .RB [ \-\-nosuffix ] -.RB [ \-o | \-\-options -.RI [ + | \- | # ] Field [ ,Field ...]] -.RB [ \-O | \-\-sort -.RI [ + | \- ] Key1 [ , [ + | \- ] Key2 ...]] .RB [ \-P | \-\-partial ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-rows ] .RB [ \-\-segments ] -.RB [ \-S | \-\-select -.IR Selection ] .RB [ \-\-separator .IR Separator ] .RB [ \-\-unbuffered ]
@@ -51,6 +57,18 @@ Use binary values "0" or "1" instead of descriptive literal values for columns that have exactly two valid values to report (not counting the "unknown" value which denotes that the value could not be determined). .TP +.B \-\-configreport \fI ReportName +Make any subsequent \fB\-o, \-\-options\fP, \fB\-O, \-\-sort\fP or +\fB\-S, \-\-select\fP to apply for \fIReportName\fP where \fIReportName\fP +is either 'pvs' for command's main report or 'log' for log report. +If \fB\-\-configreport\fP option is not used to identify a report, then +command's main report is assumed. The log report is available only if +enabled by \fBlog/report_command_log\fP \fBlvm.conf\fP(5) setting or +if \fB\-\-logonly\fP option is used. +.TP +.B \-\-logonly +Suppress the pvs report itself and display only log report on output. +.TP .B \-\-nameprefixes Add an "LVM2_" prefix plus the field name to the output. Useful with \fB\-\-noheadings\fP to produce a list of field=value pairs that can
man/pvscan.8.in +4 -0
@@ -13,6 +13,8 @@ pvscan \(em scan all disks for physical volumes .RB [ \-\-ignorelockingfailure ] .RB [ \-e | \-\-exported ] .RB [ \-n | \-\-novolumegroup ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-s | \-\-short ] .RB [ \-u | \-\-uuid ] .BR
@@ -23,6 +25,8 @@ pvscan \(em scan all disks for physical volumes .B \-\-cache .RB [ \-a | \-\-activate " " \fIay ] .RB [ \-b | \-\-background ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-major .I major .B \-\-minor
man/vgcfgbackup.8.in +2 -0
@@ -11,6 +11,8 @@ vgcfgbackup \(em backup volume group descriptor area .RB [ \-h | \-\-help ] .RB [ \-\-ignorelockingfailure ] .RB [ \-P | \-\-partial ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-v | \-\-verbose ] .RI [ VolumeGroupName ...] .SH DESCRIPTION
man/vgchange.8.in +2 -0
@@ -49,6 +49,8 @@ vgchange \(em change attributes of a volume group .RB [ \-P | \-\-partial ] .RB [ \-s | \-\-physicalextentsize .IR PhysicalExtentSize [ bBsSkKmMgGtTpPeE ]] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-S | \-\-select .IR Selection ] .RB [ \-\-systemid
man/vgck.8.in +2 -0
@@ -7,6 +7,8 @@ vgck \(em check volume group metadata .IR ProfileName ] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-v | \-\-verbose ] .RI [ VolumeGroupName ...] .SH DESCRIPTION
man/vgconvert.8.in +2 -0
@@ -18,6 +18,8 @@ vgconvert \- convert volume group metadata format .IR NumberOfCopies ] .RB [ \-\-metadatasize .IR size ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-version ] .I VolumeGroupName .RI [ VolumeGroupName ...]
man/vgcreate.8.in +2 -0
@@ -27,6 +27,8 @@ vgcreate \(em create a volume group .IR NumberOfCopies | unmanaged | all ] .RB [ \-s | \-\-physicalextentsize .IR PhysicalExtentSize [ bBsSkKmMgGtTpPeE ]] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-shared ] .RB [ \-\-systemid .IR SystemID ]
man/vgdisplay.8.in +14 -6
@@ -7,6 +7,8 @@ vgdisplay \(em display attributes of volume groups .RB [ \-c | \-\-colon ] .RB [ \-\-commandprofile .IR ProfileName ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-s | \-\-short ] .RB [ \-S | \-\-select .IR Selection ]
@@ -30,19 +32,25 @@ vgdisplay \(em display attributes of volume groups .RB [ \-\-binary ] .RB [ \-\-commandprofile .IR ProfileName ] +.RB [[ \-\-configreport +.IR ReportName ] +.RB [ \-o | \-\-options +.RI [ + | \- | # ] Field1 [, Field2 ...] +.RB [ \-O | \-\-sort +.RI [ + | \- ] Key1 [, Key2 ...]] +.RB [ \-S | \-\-select +.IR Selection ] +.RB ...] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] .RB [ \-\-ignorelockingfailure ] .RB [ \-\-ignoreskippedcluster ] +.RB [ \-\-logonly ] .RB [ \-\-noheadings ] .RB [ \-\-nosuffix ] -.RB [ \-o|\-\-options -.RI [ + | \- | # ] Field1 [ ,Field2 ...]] -.RB [ \-O | \-\-sort -.RI [ + | \- ] Key1 [ , [ + | \- ] Key2 ...]] .RB [ \-P | \-\-partial ] -.RB [ \-S | \-\-select -.IR Selection ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-separator .IR Separator ] .RB [ \-\-unbuffered ]
man/vgexport.8.in +2 -0
@@ -8,6 +8,8 @@ vgexport \- make volume groups unknown to the system .IR ProfileName ] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-S | \-\-select .IR Selection ] .RB [ \-v | \-\-verbose ]
man/vgextend.8.in +2 -0
@@ -9,6 +9,8 @@ vgextend \(em add physical volumes to a volume group .IR ProfileName ] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-restoremissing ] .RB [ \-f | \-\-force ] .RB [ \-t | \-\-test ]
man/vgimport.8.in +2 -0
@@ -6,6 +6,8 @@ vgimport \(em make exported volume groups known to the system .RB [ \-a | \-\-all ] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-S | \-\-select .IR Selection ] .RB [ \-v | \-\-verbose ]
man/vgmknodes.8.in +2 -0
@@ -8,6 +8,8 @@ vgmknodes \(em recreate volume group directory and logical volume special files .RB [ \-d | \-\-debug ] .RB [ \-h | \-\-help ] .RB [ \-\-refresh ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-v | \-\-verbose ] .RI [[ VolumeGroupName | LogicalVolumePath ]...] .SH DESCRIPTION
man/vgreduce.8.in +2 -0
@@ -11,6 +11,8 @@ vgreduce \(em reduce a volume group .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] .RB [ \-\-removemissing ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-t | \-\-test ] .RB [ \-v | \-\-verbose ] .I VolumeGroupName
man/vgremove.8.in +2 -0
@@ -9,6 +9,8 @@ vgremove \(em remove a volume group .RB [ \-f | \-\-force ] .RB [ \-h | \-? | \-\-help ] .RB [ \-\-noudevsync ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-S | \-\-select .IR Selection ] .RB [ \-t | \-\-test ]
man/vgrename.8.in +2 -0
@@ -9,6 +9,8 @@ vgrename \(em rename a volume group .IR ProfileName ] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-t | \-\-test ] .RB [ \-v | \-\-verbose ] .IR OldVolumeGroup { Path | Name | UUID }
man/vgs.8.in +24 -6
@@ -8,21 +8,27 @@ vgs \(em report information about volume groups .RB [ \-\-binary ] .RB [ \-\-commandprofile .IR ProfileName ] +.RB [[ \-\-configreport +.IR ReportName ] +.RB [ \-o | \-\-options +.RI [ + | \- | # ] Field1 [, Field2 ...] +.RB [ \-O | \-\-sort +.RI [ + | \- ] Key1 [, Key2 ...]] +.RB [ \-S | \-\-select +.IR Selection ] +.RB ...] .RB [ \-d | \-\-debug ] .RB [ \-h | \-? | \-\-help ] .RB [ \-\-ignorelockingfailure ] .RB [ \-\-ignoreskippedcluster ] +.RB [ \-\-logonly ] .RB [ \-\-nameprefixes ] .RB [ \-\-noheadings ] .RB [ \-\-nosuffix ] -.RB [ \-o | \-\-options -.RI [ + | \- | # ] Field1 [ ,Field2 ...]] -.RB [ \-O | \-\-sort -.RI [ + | \- ] Key1 [ , [ + | \- ] Key2 ...]] .RB [ \-P | \-\-partial ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-\-rows ] -.RB [ \-S | \-\-select -.IR Selection ] .RB [ \-\-separator .IR Separator ] .RB [ \-\-unbuffered ]
@@ -49,6 +55,18 @@ Use binary values "0" or "1" instead of descriptive literal values for columns that have exactly two valid values to report (not counting the "unknown" value which denotes that the value could not be determined). .TP +.B \-\-configreport \fI ReportName +Make any subsequent \fB\-o, \-\-options\fP, \fB\-O, \-\-sort\fP or +\fB\-S, \-\-select\fP to apply for \fIReportName\fP where \fIReportName\fP +is either 'vgs' for command's main report or 'log' for log report. +If \fB\-\-configreport\fP option is not used to identify a report, then +command's main report is assumed. The log report is available only if +enabled by \fBlog/report_command_log\fP \fBlvm.conf\fP(5) setting or +if \fB\-\-logonly\fP option is used. +.TP +.B \-\-logonly +Suppress the vgs report itself and display only log report on output. +.TP .B \-\-nameprefixes Add an "LVM2_" prefix plus the field name to the output. Useful with \fB\-\-noheadings\fP to produce a list of field=value pairs that can
man/vgscan.8.in +2 -0
@@ -11,6 +11,8 @@ vgscan \(em scan all disks for volume groups and rebuild caches .RB [ \-\-mknodes ] .RB [ \-\-notifydbus ] .RB [ \-P | \-\-partial ] +.RB [ \-\-reportformat +.RB { basic | json }] .RB [ \-v | \-\-verbose ] .SH DESCRIPTION vgscan scans all SCSI, (E)IDE disks, multiple devices and a bunch