LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lvmconfig

displays and manipulates Logical Volume Manager configuration information

TLDR

Print the settings actually in force
$ lvmconfig --typeconfig current --mergedconfig
copy
Show only what differs from the shipped defaults
$ lvmconfig --typeconfig diff
copy
Print the full default configuration
$ lvmconfig --typeconfig default
copy
Include the explanatory comments and blank lines
$ lvmconfig --typeconfig default --withcomments --withspaces
copy
Annotate each setting with the version that introduced it
$ lvmconfig --typeconfig default --withversions
copy
List the names of every setting
$ lvmconfig --list
copy
Print a single section
$ lvmconfig devices
copy
Print a single setting
$ lvmconfig devices/filter
copy
Check the configuration for errors
$ lvmconfig --validate
copy
Show what a particular LVM version would understand
$ lvmconfig --typeconfig default --atversion [2.03.11]
copy
Show settings absent from the config file
$ lvmconfig --typeconfig missing
copy
Save the effective configuration to a file
$ lvmconfig --typeconfig current --file [path/to/lvm.conf]
copy

SYNOPSIS

lvmconfig [options] [section]

DESCRIPTION

lvmconfig displays and manipulates Logical Volume Manager (LVM) configuration information. It reads configuration from multiple sources (command line, environment, config files) and can show the effective merged configuration.The tool supports different configuration views: current shows active settings, default shows built-in defaults, diff shows only non-default values, and full shows everything. It can also validate configuration files for syntax errors and deprecated options.Configuration sections include global settings, device filters, activation options, and allocation policies for volume groups and logical volumes.

PARAMETERS

--typeconfig _type_

Specify configuration type: current, default, diff, full, list, missing, new, profilable, or profilable-command
--mergedconfig
Merge all configuration sources before display
-l, --list
List all configuration keys
--withcomments
Include explanatory comments in output
--withspaces
Add extra spacing for readability
--validate
Check configuration for errors and report problems
-f, --file _path_
Write output to a file instead of stdout
--config _string_
Override configuration settings from the command line

INSTALL

sudo apt install lvm2
copy
sudo dnf install lvm2
copy
sudo pacman -S lvm2
copy
sudo apk add lvm2
copy
sudo zypper install lvm2
copy
nix profile install nixpkgs#lvm2
copy

CAVEATS

Configuration changes made with lvmconfig are not persistent; edit /etc/lvm/lvm.conf directly for permanent changes. The --validate option may not catch all configuration issues, particularly those that depend on runtime conditions.

SEE ALSO

lvm(8), pvcreate(8), vgcreate(8), lvcreate(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid