I am setting up multipaths for Veritas backup on SAN storage. I noticed that lsblk
shows duplicate disks, which is quite confusing.
For example, both sdc
and sdd
represent the same disk, and similarly, sde
and sdf
represent the same device.
sdc 8:32 0 50G 0 disk
├─sdc1 8:33 0 50G 0 part
└─san69 253:10 0 50G 0 mpath
└─san69p1 253:11 0 50G 0 part
sdd 8:48 0 50G 0 disk
├─sdd1 8:49 0 50G 0 part
└─san69 253:10 0 50G 0 mpath
└─san69p1 253:11 0 50G 0 part
sde 8:64 0 69G 0 disk
├─sde1 8:65 0 69G 0 part
└─mpathb 253:12 0 69G 0 mpath
└─mpathb1 253:13 0 69G 0 part /mnt
sdf 8:80 0 69G 0 disk
├─sdf1 8:81 0 69G 0 part
└─mpathb 253:12 0 69G 0 mpath
└─mpathb1 253:13 0 69G 0 part /mnt
multipath -ll output is as follow
mpathb (360050763808106804800000000000001) dm-12 IBM,2145
size=69G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| `- 11:0:1:1 sde 8:64 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
`- 11:0:3:1 sdf 8:80 active ready running
san69 (360050763808106804800000000000000) dm-10 IBM,2145
size=50G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=enabled
| `- 11:0:3:0 sdc 8:32 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
`- 11:0:1:0 sdd 8:48 active ready running
lsblk
just lists everything it sees, so you'll see tons of copies of the same entity, be it dm-multipath or a LVM LV. Yes, it makeslsblk
less than useful in any halfway grown-up SAN (one with 100+ LUNs and typically at least 8 paths to each of them, so you end up withsdcx
andsdrt
and six others all representing the same disk blocks.multipath -ll
is your friend, as you already know.