* Would be nice if lsblk combined multipath disks
@ 2021-09-17 14:19 Eli V
2021-09-20 9:58 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Eli V @ 2021-09-17 14:19 UTC (permalink / raw)
To: util-linux
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Would be nice if lsblk combined multipath disks
2021-09-17 14:19 Would be nice if lsblk combined multipath disks Eli V
@ 2021-09-20 9:58 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2021-09-20 9:58 UTC (permalink / raw)
To: Eli V; +Cc: util-linux
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@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-20 9:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 14:19 Would be nice if lsblk combined multipath disks Eli V
2021-09-20 9:58 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).