1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/scripts
Dave Wysochanski bc773e60e1 Add "dmsetup ls --tree" output to lvmdump.
It would be most useful to add "dmsetup ls --tree" to the commands run.
This command helps in answering the question "which devices are actually
underneath a given LV?"

Although the info is available with other existing dmsetup commands,
adding this command gives a much clearer summary of complex setups.

Here's an example of an LVM mirror, with mirror images on partitions
created on top of multipath devices.  The multipath devices are on
simple block devices.  As you can see, it is easy to see the stacking
from the "dmsetup ls --tree" output:

vgmpathtest-lvmpathmir (253:14)
 ├─vgmpathtest-lvmpathmir_mimage_1 (253:13)
 │  └─mpath5p1 (253:5)
 │     └─mpath5 (253:2)
 │        ├─ (8:16)
 │        └─ (8:0)
 ├─vgmpathtest-lvmpathmir_mimage_0 (253:12)
 │  └─mpath6p1 (253:6)
 │     └─mpath6 (253:3)
 │        ├─ (8:48)
 │        └─ (8:32)
 └─vgmpathtest-lvmpathmir_mlog (253:11)
    └─mpath7 (253:4)
       ├─ (8:80)
       └─ (8:64)
VolGroup00-LogVol01 (253:1)
 └─ (202:2)
vgtest-lvmir (253:10)
 ├─vgtest-lvmir_mimage_1 (253:9)
 │  └─ (7:1)
 ├─vgtest-lvmir_mimage_0 (253:8)
 │  └─ (7:0)
 └─vgtest-lvmir_mlog (253:7)
    └─ (7:3)
VolGroup00-LogVol00 (253:0)
 └─ (202:2)

But it is much harder to see the stacking with only the commands today
("dmsetup info", "dmsetup status", and "dmsetup table").  We could
piece together the stacking from "dmsetup table" but it requires
further processing (take output from "dmsetup info to get
map name to major/minor, then parse "dmsetup table", etc).
2011-02-01 21:39:15 +00:00
..
lvm2create_initrd Update lvm2create_initrd to support gentoo. 2006-11-21 22:41:56 +00:00
clvmd_fix_conf.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
clvmd_init_red_hat.in Based on auto-detection or user requested cluster managers for clvmd, 2010-08-23 11:37:02 +00:00
cmirrord_init_red_hat.in Fix bug 632681: cmirrord shouldn't fail 'start' if already started 2011-01-04 21:16:54 +00:00
fsadm.sh Add date configurable variable DATE 2010-11-11 12:17:15 +00:00
last_cvs_update.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
lvm2_monitoring_init_red_hat.in Change daemon lock filename from lvm2_monitor to lvm2-monitor for consistency. 2010-04-15 19:15:03 +00:00
lvm2_monitoring_init_rhel4 Make warnings go to stderr. Change log_warn to that effect, log_print 2007-06-28 17:33:44 +00:00
lvm_dump.sh Fix lvmdump /sys listing to include virtual devices directory. 2009-01-06 18:02:57 +00:00
lvmconf_lockingtype2.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
lvmconf.sh Install lvmconf script by default. 2010-05-20 11:20:35 +00:00
lvmdump.sh Add "dmsetup ls --tree" output to lvmdump. 2011-02-01 21:39:15 +00:00
Makefile.in Add OCF support 2010-11-05 16:18:38 +00:00
relpath.awk Fix scripts/relpath.awk to work with mawk 2010-05-21 15:28:16 +00:00
vg_convert change two files in different directories 2006-06-06 17:44:11 +00:00
vgimportclone.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
VolumeGroup.ocf Add OCF support 2010-11-05 16:18:38 +00:00