2008-10-08 16:50:13 +04:00
.TH LVMDUMP 8 "LVM TOOLS #VERSION#" "Red Hat, Inc."
2021-04-13 16:26:54 +03:00
.
2006-11-16 19:44:48 +03:00
.SH NAME
2021-04-13 16:26:54 +03:00
.
2014-06-11 13:06:30 +04:00
lvmdump \(em create lvm2 information dumps for diagnostic purposes
2021-04-13 16:26:54 +03:00
.
2006-11-16 19:44:48 +03:00
.SH SYNOPSIS
2021-04-13 16:26:54 +03:00
.
2012-04-11 16:42:10 +04:00
.B lvmdump
2017-03-27 17:45:48 +03:00
.RB [ -a ]
.RB [ -c ]
.RB [ -d
2012-04-11 16:42:10 +04:00
.IR directory ]
2017-03-27 17:45:48 +03:00
.RB [ -h ]
.RB [ -l ]
.RB [ -m ]
.RB [ -p ]
.RB [ -s ]
.RB [ -u ]
2021-04-13 16:26:54 +03:00
.
2006-11-16 19:44:48 +03:00
.SH DESCRIPTION
2021-04-13 16:26:54 +03:00
.
2012-04-11 16:42:10 +04:00
lvmdump is a tool to dump various information concerning LVM2.
By default, it creates a tarball suitable for submission along
with a problem report.
2021-04-13 16:26:54 +03:00
.P
2006-11-16 19:44:48 +03:00
The content of the tarball is as follows:
2021-04-13 16:26:54 +03:00
.ad l
.PD 0
.IP \[bu] 2
dmsetup info
.IP \[bu]
table of currently running processes
.IP \[bu]
2021-04-15 14:16:41 +03:00
recent entries from \fI/var/log/messages\fP (containing system messages)
2021-04-13 16:26:54 +03:00
.IP \[bu]
2021-04-15 14:16:41 +03:00
complete lvm configuration and cache (content of \fI#DEFAULT_SYS_DIR#\fP)
2021-04-13 16:26:54 +03:00
.IP \[bu]
2021-04-15 14:16:41 +03:00
list of device nodes present under \fI/dev\fP
2021-04-13 16:26:54 +03:00
.IP \[bu]
2021-04-15 14:16:41 +03:00
list of files present \fI/sys/block\fP
2021-04-13 16:26:54 +03:00
.IP \[bu]
2021-04-15 14:16:41 +03:00
list of files present \fI/sys/devices/virtual/block\fP
2021-04-13 16:26:54 +03:00
.IP \[bu]
if enabled with -m, metadata dump will be also included
.IP \[bu]
if enabled with -a, debug output of vgscan, pvscan and list of all available volume groups, physical volumes and logical volumes will be included
.IP \[bu]
if enabled with -l, lvmetad state if running
.IP \[bu]
if enabled with -p, lvmpolld state if running
.IP \[bu]
if enabled with -s, system info and context
.IP \[bu]
if enabled with -u, udev info and context
.PD
.ad b
.
2006-11-16 19:44:48 +03:00
.SH OPTIONS
2021-04-13 16:26:54 +03:00
.
2006-11-16 19:44:48 +03:00
.TP
2017-03-27 17:45:48 +03:00
.B -a
2012-04-11 16:42:10 +04:00
Advanced collection.
\fBWARNING\fR: if lvm is already hung, then this script may hang as well
2017-03-27 17:45:48 +03:00
if \fB-a\fR is used.
2006-11-16 19:44:48 +03:00
.TP
2021-04-13 16:26:54 +03:00
.B -d \fIdirectory
2012-04-11 16:42:10 +04:00
Dump into a directory instead of tarball
By default, lvmdump will produce a single compressed tarball containing
all the information. Using this option, it can be instructed to only
produce the raw dump tree, rooted in \fIdirectory\fP.
2006-11-16 19:44:48 +03:00
.TP
2017-03-27 17:45:48 +03:00
.B -h
2012-04-11 16:42:10 +04:00
Print help message
2006-11-16 19:44:48 +03:00
.TP
2017-03-27 17:45:48 +03:00
.B -l
2013-08-28 16:57:34 +04:00
Include \fBlvmetad\fP(8) daemon dump if it is running. The dump contains
cached information that is currently stored in lvmetad: VG metadata,
PV metadata and various mappings in between these metadata for quick
access.
.TP
2017-03-27 17:45:48 +03:00
.B -m
2012-04-11 16:42:10 +04:00
Gather LVM metadata from the PVs
This option generates a 1:1 dump of the metadata area from all PVs visible
to the system, which can cause the dump to increase in size considerably.
However, the metadata dump may represent a valuable diagnostic resource.
2013-08-28 16:57:34 +04:00
.TP
2017-03-27 17:45:48 +03:00
.B -p
2015-05-15 14:38:38 +03:00
Include \fBlvmpolld\fP(8) daemon dump if it is running. The dump contains
2017-03-27 17:45:48 +03:00
all in-progress operation currently monitored by the daemon and partial
2015-05-15 14:38:38 +03:00
history for all yet uncollected results of polling operations already finished
including reason.
.TP
2017-03-27 17:45:48 +03:00
.B -s
2016-06-09 14:51:09 +03:00
Gather system info and context. Currently, this encompasses info gathered
by calling lsblk command and various systemd info and context: overall state
of systemd units present in the system, more detailed status of units
controlling LVM functionality and the content of systemd journal for
current boot.
2014-04-15 17:27:30 +04:00
.TP
2017-03-27 17:45:48 +03:00
.B -u
2021-04-15 14:16:41 +03:00
Gather udev info and context: \fI/etc/udev/udev.conf\fP file, udev daemon version
2017-03-27 17:45:48 +03:00
(output of 'udevadm info --version' command), udev rules currently used in the system
2021-04-15 14:16:41 +03:00
(content of \fI/lib/udev/rules.d\fP and \fI/etc/udev/rules.d\fP directory),
2013-08-28 16:57:34 +04:00
list of files in /lib/udev directory and dump of current udev
2017-03-27 17:45:48 +03:00
database content (the output of 'udevadm info --export-db' command).
2021-04-13 16:26:54 +03:00
.
2006-11-23 20:44:15 +03:00
.SH ENVIRONMENT VARIABLES
2021-04-13 16:26:54 +03:00
.
2006-11-23 20:44:15 +03:00
.TP
2021-04-13 16:26:54 +03:00
.B LVM_BINARY
2006-11-23 20:44:15 +03:00
The LVM2 binary to use.
2021-04-15 14:16:41 +03:00
Defaults to "\fBlvm\fP".
Sometimes you might need to set this to "\fI#LVM_PATH#.static\fP", for example.
2006-11-23 20:44:15 +03:00
.TP
2021-04-13 16:26:54 +03:00
.B DMSETUP_BINARY
2006-11-23 20:44:15 +03:00
The dmsetup binary to use.
2021-04-15 14:16:41 +03:00
Defaults to "\fBdmsetup\fP".
2021-04-13 16:26:54 +03:00
.
2012-04-11 16:42:10 +04:00
.SH SEE ALSO
2021-04-13 16:26:54 +03:00
.
2021-04-15 14:16:41 +03:00
.BR lvm (8),
.BR lvmpolld (8),
.P
.BR udev (8),
.BR udevadm (8)