commands.sh

lvmconfig

linux

Display and manipulate LVM configuration information.

More info →

Options (2)

-l, --listboolean

List all configuration keys

Example: lvmconfig {{[-l|--list]}}
-f, --fileboolean

Write the current effective configuration to a file

Example: lvmconfig --typeconfig current {{[-f|--file]}} {{path/to/output.conf}}

Examples (6)

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
made by @shridhargupta | data from tldr-pages