Installation guide

The dmsetup status Command
91
[root@grant-01 ~]# dmsetup ls --target mirror
lock_stress-grant--02.1722 (253, 34)
lock_stress-grant--01.1720 (253, 18)
lock_stress-grant--03.1718 (253, 52)
lock_stress-grant--02.1716 (253, 40)
lock_stress-grant--03.1713 (253, 47)
lock_stress-grant--02.1709 (253, 23)
lock_stress-grant--01.1707 (253, 8)
lock_stress-grant--01.1724 (253, 14)
lock_stress-grant--03.1711 (253, 27)
LVM configurations that are stacked on multipath or other device mapper devices can be complex to
sort out. The dmsetup ls command provides a --tree option that displays dependencies between
devices as a tree, as in the following example.
# dmsetup ls --tree
vgtest-lvmir (253:13)
├─vgtest-lvmir_mimage_1 (253:12)
│ └─mpathep1 (253:8)
│ └─mpathe (253:5)
│ ├─ (8:112)
│ └─ (8:64)
├─vgtest-lvmir_mimage_0 (253:11)
│ └─mpathcp1 (253:3)
│ └─mpathc (253:2)
│ ├─ (8:32)
│ └─ (8:16)
└─vgtest-lvmir_mlog (253:4)
└─mpathfp1 (253:10)
└─mpathf (253:6)
├─ (8:128)
└─ (8:80)
A.2.3. The dmsetup status Command
The dmsetup status device command provides status information for each target in a specified
device. If you do not specify a device name, the output is information about all of the currently
configured Device Mapper devices. You can list the status only of devices that have at least one target
of a specified type with the dmsetup status --target target_type command.
The following example shows the command to list the status of the targets in all currently configured
mapped devices.
[root@ask-07 ~]# dmsetup status
testgfsvg-testgfslv3: 0 312352768 linear
testgfsvg-testgfslv2: 0 312352768 linear
testgfsvg-testgfslv1: 0 312352768 linear
testgfsvg-testgfslv1: 312352768 50331648 linear
VolGroup00-LogVol01: 0 4063232 linear
VolGroup00-LogVol00: 0 151912448 linear
A.2.4. The dmsetup deps Command
The dmsetup deps device command provides a list of (major, minor) pairs for devices referenced
by the mapping table for the specified device. If you do not specify a device name, the output is
information about all of the currently configured Device Mapper devices.