• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

lvmdump Command Examples in Linux

by admin

lvmdump command can be used to generate lvm2 information dumps for the diagnostic purposes by a support team. lvmdump is a tool to dump various information concerning LVM2. By default, it creates a tarball suitable for submission along with a problem report.

The content of the tarball is as follows:

  • dmsetup info
  • table of currently running processes
  • recent entries from /var/log/messages (containing system messages)
  • complete lvm configuration and cache (content of /etc/lvm)
  • list of device nodes present under /dev
  • list of files present /sys/block
  • list of files present /sys/devices/virtual/block
  • if enabled with -m, metadata dump will be also included
  • if enabled with -a, debug output of vgscan, pvscan and list of all available volume groups, physical volumes and logical volumes will be included
  • if enabled with -l, lvmetad state if running
  • if enabled with -p, lvmpolld state if running
  • if enabled with -s, system info and context
  • if enabled with -u, udev info and context

lvmdump command examples

1. To create lvm dump:

# lvmdump 
Creating dump directory: /root/lvmdump-myhost.in-201042
Gathering LVM & device-mapper version info...
Gathering dmsetup info...
Gathering process info...
Gathering console messages...
Gathering /etc/lvm info...
Gathering /dev listing...
Gathering /sys/block listing...
Creating report tarball in /root/lvmdump-myhost.in-2082042.tgz...

2. For advance data collections:

# lvmdump -a 
Gathering LVM volume info...
  vgscan...
  pvscan...
  lvs...
  pvs...
  vgs...
Gathering LVM & device-mapper version info...
Gathering dmsetup info...
Gathering process info...
Gathering console messages...
Gathering /etc/lvm info...
Gathering /dev listing...
Gathering /sys/block listing...
Creating report tarball in /root/lvmdump-myhost.in-2018129.tgz...

3. To gather LVM metadata:

# lvmdump -m 
Creating dump directory: /root/lvmdump-myhost.in-2018055

Gathering LVM & device-mapper version info...
Gathering dmsetup info...
Gathering process info...
Gathering console messages...
Gathering /etc/lvm info...
Gathering /dev listing...
Gathering /sys/block listing...
Gathering LVM metadata from Physical Volumes...
  /dev/sdc
  /dev/sdd
  /dev/sde
Creating report tarball in /root/lvmdump-myhost.in-20180255.tgz...

4. To gather cluster data:

# lvmdump -c

5. To get help:

# lvmdump -h

Filed Under: Linux

Some more articles you might also be interested in …

  1. lvextend command examples in Linux
  2. What’s different between /bin/false and /sbin/nologin as nologin user’s shell
  3. jq: command not found (JSON CLI Parser)
  4. CentOS / RHEL 7 : How to set default target (default runlevel)
  5. CentOS / RHEL : How to remove a mirror with mdadm
  6. env Command Examples in Linux
  7. “Could not resolve proxy: https; Unknown error” – error with ‘yum update’
  8. Archiving Failures with ORA-16038, ORA-19504, ORA-00312
  9. 18 Practical tcpdump Command Examples – A Network Sniffer Tool Primer
  10. Installing CentOS / RHEL 7 (step by step with screen shots)

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright