lvmdump

collects diagnostic information about the LVM2 subsystem for troubleshooting

TLDR

Collect a standard LVM diagnostic dump (tarball)
$ lvmdump
Include advanced data (metadata, locks, daemon info)
$ lvmdump -a -l -m
Write dump files into a directory (not a tarball)
$ lvmdump -d [path/to/directory]
Show help
$ lvmdump -h

SYNOPSIS

lvmdump [options]

DESCRIPTION

lvmdump collects diagnostic information about the LVM2 (Logical Volume Manager) subsystem for troubleshooting purposes. By default, it creates a compressed tar archive in the home directory containing system information, LVM configuration, and status data.The dump includes output from commands like pvs, vgs, lvs, configuration files, dmsetup info, and relevant system information. When used with the -m flag, it also captures the raw metadata from all volume groups.This tool is primarily used when reporting LVM issues to developers or support teams, providing all the context needed to diagnose problems.

PARAMETERS

-a

Include advanced diagnostic information
-l
Include lvmetad cache state (if running)
-m
Include LVM metadata from all volume groups
-d _directory_
Output to a directory instead of a compressed tarball
-h
Display help information

INSTALL

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

CAVEATS

The dump may contain sensitive information about storage configuration. Review contents before sharing externally. The -m option creates a larger dump that includes volume group metadata. Requires root privileges.

SEE ALSO

lvm(8), pvs(8), vgs(8), lvs(8), dmsetup(8)