HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lvmconfig — Display and manipulate LVM configuration information. More information: <https://manned.org/lvmconfi

Submitted by: @import:tldr-pages··
0
Viewed 0 times
configurationcommandlvmandmanipulateclilvmconfigdisplay
linux

Problem

How to use the lvmconfig command: Display and manipulate LVM configuration information. More information: <https://manned.org/lvmconfig>.

Solution

lvmconfig — Display and manipulate LVM configuration information. More information: <https://manned.org/lvmconfig>.

Display the effective configuration in use (after merging all config sources):
lvmconfig --typeconfig current --mergedconfig


Show only settings that differ from their defaults:
lvmconfig --typeconfig diff


List all configuration keys:
lvmconfig {{[-l|--list]}}


Print the default configuration with full comments and extra spacing:
lvmconfig --typeconfig default --withcomments --withspaces


Validate the full merged configuration and report errors:
lvmconfig --mergedconfig --validate


Write the current effective configuration to a file:
lvmconfig --typeconfig current {{[-f|--file]}} {{path/to/output.conf}}

Code Snippets

Display the effective configuration in use (after merging all config sources)

lvmconfig --typeconfig current --mergedconfig

Show only settings that differ from their defaults

lvmconfig --typeconfig diff

List all configuration keys

lvmconfig {{[-l|--list]}}

Print the default configuration with full comments and extra spacing

lvmconfig --typeconfig default --withcomments --withspaces

Validate the full merged configuration and report errors

lvmconfig --mergedconfig --validate

Context

tldr-pages: linux/lvmconfig

Revisions (0)

No revisions yet.