How do I determine which dm-X device maps to each device mapper device on Red Hat Enterprise Linux?
Issue
- The
iostatcommand is reporting manydmdevices that do not exist any longer. They did un-present several LUNs, and did it cleanly. The devices do not show in/dev, but they do see them undersys/block. They do still have aliases in the multipath config file for the devices that are no longer present. How do I tell what device is what? - PV is created on top of
dmdevice. How to find whichdmdevice maps to which block device? - How to find which
dm-*device maps to which LVM logical volume? - It's difficult to find which
dm-*device maps to which LVM if there are too manydm-*devices in the system. How to find the mapping relationship between them? - Need to map logical volumes to physical devices
- Need to find out which LVs are on which disks
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Several
device-mappermanaged devices (either device-mapper-multipath or LVM)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
