2015-04-28 19:00:37 +03:00
.TH "LVMCONFIG" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\" "
.SH "NAME"
lvmconfig, lvm dumpconfig, lvm config \(em Display LVM configuration
.SH SYNOPSIS
2016-03-01 15:40:32 +03:00
.
.ad l
2015-04-28 19:00:37 +03:00
.B lvmconfig
.RB [ \- f | \- \- file
2016-03-03 22:27:09 +03:00
.IR Filename ]
2015-04-28 19:00:37 +03:00
.RB [ \- \- type
2016-03-03 22:27:09 +03:00
.RB { current | default | diff | full |\: list | missing | new \c
.RB | profilable | profilable-command | profilable-metadata }]
2015-04-28 19:00:37 +03:00
.RB [ \- \- atversion
2016-03-03 22:27:09 +03:00
.IR Version ]
2016-03-01 15:40:32 +03:00
.RB [ \- \- sinceversion
2016-03-03 22:27:09 +03:00
.IR Version ]
2015-04-28 19:00:37 +03:00
.RB [ \- \- ignoreadvanced ]
.RB [ \- \- ignoreunsupported ]
.RB [ \- \- ignorelocal ]
2015-04-29 12:11:58 +03:00
.RB [ \- l | \- \- list ]
2015-04-28 19:00:37 +03:00
.RB [ \- \- config
.IR ConfigurationString ]
.RB [ \- \- commandprofile
.IR ProfileName ]
.RB [ \- \- profile
.IR ProfileName ]
.RB [ \- \- metadataprofile
.IR ProfileName ]
.RB [ \- \- mergedconfig ]
2015-04-30 18:40:24 +03:00
.RB [ \- \- showdeprecated ]
2015-04-29 17:07:52 +03:00
.RB [ \- \- showunsupported ]
2015-04-28 19:00:37 +03:00
.RB [ \- \- validate ]
2015-04-29 11:53:25 +03:00
.RB [ \- \- withsummary ]
2015-04-28 19:00:37 +03:00
.RB [ \- \- withcomments ]
2015-06-24 14:14:30 +03:00
.RB [ \- \- withspaces ]
2015-04-28 19:00:37 +03:00
.RB [ \- \- withversions ]
.RB [ ConfigurationNode... ]
2016-03-01 15:40:32 +03:00
.ad b
.
2015-04-28 19:00:37 +03:00
.SH DESCRIPTION
lvmconfig produces formatted output from the LVM configuration tree.
The command was added in release 2.02.119 and has an identical longer form
\fB lvm dumpconfig\fP .
.SH OPTIONS
.TP
2016-03-03 22:27:09 +03:00
.BR \- f ", " \- \- file " \fIFilename"
2015-04-28 19:00:37 +03:00
Send output to a file named 'filename'.
2015-04-29 12:11:58 +03:00
.TP
.BR \- l ", " \- \- list
List configuration settings with summarizing comment. This is the same as using
\fB lvmconfig --type list --withsummary\fP .
2015-04-28 19:00:37 +03:00
.TP
2016-03-03 22:27:09 +03:00
.BR \- \- type " {" current | default | diff | full | missing | new | profilable |\: profilable-command | profilable-metadata }
2015-04-28 19:00:37 +03:00
Select the type of configuration to display. The configuration settings
displayed have either default values or currently-used values assigned based on
the type selected. If no type is selected, \fB \- \- type current\fP is used
by default. Whenever a configuration setting with a default value is
commented out, it means the setting does not have any concrete default
value defined. Output can be saved and used as a proper \fB lvm.conf\fP (5)
file.
.RS
2016-03-01 15:40:32 +03:00
.IP \fB current\fP 3
2015-04-28 19:00:37 +03:00
Display the current \fB lvm.conf\fP configuration merged with any \fB tag
config\fP if used. See also \fB lvm.conf\fP (5) for more info about LVM
configuration methods.
2016-03-01 15:40:32 +03:00
.IP \fB default\fP 3
2015-04-28 19:00:37 +03:00
Display all possible configuration settings with default values assigned.
2016-03-01 15:40:32 +03:00
.IP \fB diff\fP 3
2015-04-28 19:00:37 +03:00
Display all configuration settings for which the values used differ from defaults.
The value assigned for each configuration setting is the value currently used.
2016-06-02 15:07:07 +03:00
Using this type also implies the use of \fB \- \- mergedconfig\fP option.
2015-04-28 19:00:37 +03:00
This is actually minimal LVM configuration which can be used without
a change to current configured behaviour.
2016-03-01 15:40:32 +03:00
.IP \fB full\fP 3
2015-06-25 11:51:30 +03:00
Display full configuration tree - a combination of current configuration tree
(\fB \- \- type current\fP ) and tree of settings for which default values are
used (\fB \- \- type missing\fP ). This is exactly the configuration tree that
LVM2 uses during command execution. Using this type also implies
2015-06-25 14:03:31 +03:00
the use of \fB \- \- mergedconfig\fP option. If comments are displayed
(see \fB \- \- withcomments\fP and \fB \- \- withsummary\fP options), then
for each setting found in existing configuration and for which defaults
are not used, there's an extra comment line printed to denote this.
2016-03-01 15:40:32 +03:00
.IP \fB list\fP 3
2015-04-29 12:11:58 +03:00
Display plain list of configuration settings.
2016-03-01 15:40:32 +03:00
.IP \fB missing\fP 3
2015-04-28 19:00:37 +03:00
Display all configuration settings with default values assigned which are
missing in the configuration currently used and for which LVM automatically
fallbacks to using these default values.
2016-03-01 15:40:32 +03:00
.IP \fB new\fP 3
2015-04-28 19:00:37 +03:00
Display all new configuration settings introduced in current LVM version
or specific version as defined by \fB \- \- atversion\fP option.
2016-03-01 15:40:32 +03:00
.IP \fB profilable\fP 3
2015-04-28 19:00:37 +03:00
Display all profilable configuration settings with default values assigned.
See \fB lvm.conf\fP (5) for more info about \fB profile config\fP method.
2016-03-01 15:40:32 +03:00
.IP \fB profilable-command\fP 3
2015-04-28 19:00:37 +03:00
Display all profilable configuration settings with default values assigned
that can be used in command profile. This is a subset of settings displayed
2016-03-01 15:40:32 +03:00
by \fB \- \- type profilable\fP .
.IP \fB profilable-metadata\fP 3
2015-04-28 19:00:37 +03:00
Display all profilable configuration settings with default values assigned
that can be used in metadata profile. This is a subset of settings displayed
2016-03-01 15:40:32 +03:00
by \fB \- \- type profilable\fP .
2015-04-28 19:00:37 +03:00
.RE
.TP
2016-03-03 22:27:09 +03:00
.BI \- \- atversion " Version"
2015-04-28 19:00:37 +03:00
Specify an LVM version in x.y.z format where x is the major version,
the y is the minor version and z is the patchlevel (e.g. 2.2.106).
When configuration is displayed, the configuration settings recognized
at this LVM version will be considered only. This can be used
to display a configuration that a certain LVM version understands and
which does not contain any newer settings for which LVM would
issue a warning message when checking the configuration.
2015-11-25 16:09:20 +03:00
.TP
2016-03-03 22:27:09 +03:00
.BI \- \- sinceversion " Version"
2015-11-25 16:09:20 +03:00
Specify an LVM version in x.y.z format where x is the major version,
the y is the minor version and z is the patchlevel (e.g. 2.2.106).
This option is currently applicable only with \fB \- \- type new\fP
to display all configuration settings introduced since given version.
2015-04-28 19:00:37 +03:00
.TP
.B \- \- ignoreadvanced
Exclude advanced configuration settings from the output.
.TP
.B \- \- ignoreunsupported
Exclude unsupported configuration settings from the output. These settings are
2015-04-29 17:07:52 +03:00
either used for debugging and development purposes only or their support is not
yet complete and they are not meant to be used in production. The \fB current\fP
and \fB diff\fP types include unsupported settings in their output by default,
all the other types ignore unsupported settings.
2015-04-28 19:00:37 +03:00
.TP
.B \- \- ignorelocal
Ignore local section.
.TP
.BI \- \- config " ConfigurationString"
2016-03-03 22:27:09 +03:00
Use \fI ConfigurationString\fP to override existing configuration.
2015-04-28 19:00:37 +03:00
This configuration is then applied for the lvmconfig command itself.
See also \fB lvm.conf\fP (5) for more info about \fB config cascade\fP .
.TP
.BI \- \- commandprofile " ProfileName"
2016-03-03 22:27:09 +03:00
Use \fI ProfileName\fP to override existing configuration.
2015-04-28 19:00:37 +03:00
This configuration is then applied for the lvmconfig command itself.
See also \fB \- \- mergedconfig\fP option and \fB lvm.conf\fP (5) for
more info about \fB config cascade\fP .
.TP
.BI \- \- profile " ProfileName"
The same as using \fB \- \- commandprofile\fP but the configuration is not
applied for the lvmconfig command itself.
.TP
.BI \- \- metadataprofile " ProfileName"
2016-03-03 22:27:09 +03:00
Use \fI ProfileName\fP to override existing configuration.
2015-04-28 19:00:37 +03:00
The configuration defined in metadata profile has no effect for
the lvmconfig command itself. lvmconfig displays the configuration only.
See also \fB \- \- mergedconfig\fP option and \fB lvm.conf\fP (5) for more
info about \fB config cascade\fP .
.TP
.B \- \- mergedconfig
When the lvmconfig command is run with the \fB \- \- config\fP option
and/or \fB \- \- commandprofile\fP (or using \fB LVM_COMMAND_PROFILE\fP
environment variable), \fB \- \- profile\fP , \fB \- \- metadataprofile\fP
option, merge all the contents of the \fB config cascade\fP before displaying it.
Without the \fB \- \- mergeconfig\fP option used, only the configuration at
the front of the cascade is displayed. See also \fB lvm.conf\fP (5) for more
info about \fB config cascade\fP .
2015-04-30 18:40:24 +03:00
.TP
.B \- \- showdeprecated
Include deprecated configuration settings in the output. These settings
are always deprecated since certain version. If concrete version is specified
with \fB --atversion\fP option, deprecated settings are automatically included
if specified version is lower that the version in which the settings were
deprecated. The \fB current\fP and \fB diff\fP types include deprecated settings
int their output by default, all the other types ignore deprecated settings.
2015-04-29 17:07:52 +03:00
.TP
.B \- \- showunsupported
2015-04-29 17:35:49 +03:00
Include unsupported configuration settings in the output. These settings
2015-04-29 17:07:52 +03:00
are either used for debugging or development purposes only or their support
is not yet complete and they are not meant to be used in production. The
\fB current\fP and \fB diff\fP types include unsupported settings in their
output by default, all the other types ignore unsupported settings.
2015-04-28 19:00:37 +03:00
.TP
.B \- \- validate
Validate current configuration used and exit with appropriate
return code. The validation is done only for the configuration
at the front of the \fB config cascade\fP . To validate the whole
merged configuration tree, use also the \fB \- \- mergedconfig\fP option.
The validation is done even if \fB config/checks\fP \fB lvm.conf\fP (5)
option is disabled.
.TP
2015-04-29 11:53:25 +03:00
.B \- \- withsummary
2015-04-28 19:00:37 +03:00
Display a one line comment for each configuration node.
.TP
2015-04-29 11:53:25 +03:00
.B \- \- withcomments
2015-04-30 18:40:24 +03:00
Display a full comment for each configuration node. For deprecated
settings, also display comments about deprecation in addition.
2015-04-28 19:00:37 +03:00
2015-06-24 14:14:30 +03:00
.TP
.B \- \- withspaces
Where appropriate, add more spaces in output for better readability.
2015-04-28 19:00:37 +03:00
.TP
.B \- \- withversions
Also display a comment containing the version of introduction for
2015-04-30 18:40:24 +03:00
each configuration node. If the setting is deprecated, also display
the version since which it is deprecated.
2015-04-28 19:00:37 +03:00
.SH SEE ALSO
.BR lvm (8)
.BR lvmconf (8)
.BR lvm.conf (5)