On Fri, Sep 17, 2021 at 10:19:22AM -0400, Eli V wrote: > lsblk is awesome for viewing a system's storage stack. However, it > would be great if it just spit out the list of devices sharing a > multipath name instead of repeating the full tree for each device. > lsblk -i from version 2.29.2, only one tree shown but the exact same > tree appears under sdai as well on my example host. > > sdce 69:32 0 838.4G 0 disk > `-mpathal 254:44 0 838.4G 0 mpath > `-md1 9:1 0 9T 0 raid10 > `-cryptmd1 254:55 0 9T 0 crypt > |-cryptdbv-dbthin_tmeta 254:56 0 2.8G 0 lvm > | `-cryptdbv-dbthin-tpool 254:58 0 15T 0 lvm > | |-cryptdbv-dbthin 254:59 0 15T 0 lvm > | `-cryptdbv-pg 254:60 0 15T 0 lvm /var/lib/postgresql > `-cryptdbv-dbthin_tdata 254:57 0 15T 0 lvm > `-cryptdbv-dbthin-tpool 254:58 0 15T 0 lvm > |-cryptdbv-dbthin 254:59 0 15T 0 lvm > `-cryptdbv-pg 254:60 0 15T 0 lvm /var/lib/postgresql In this cases --merge usually helps (if there is defined relation by kernel; e.g. DM thin), or you can use --dedup (for example to de-duplicate by WWN). Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com