Device Mapper Multipath
Cheat sheet · https://pcornel.dk/topic.php?topic=4113
Answer
Linux discovers individual SCSI path devices, multipath identifies them by persistent identifiers such as WWID, groups paths according to target characteristics and creates one device-mapper map. Path checkers, prioritizers, grouping rules and selectors then govern which path group receives I/O.
Remember
- /dev/sdX path names ≠ persistent multipath identity.
- find_multipaths behavior ≠ proof that every desired LUN is claimed.
- Multipath map present ≠ every component path is usable.
- Editing multipath.conf ≠ active map changed until configuration is reloaded/applied and verified.
First checks
multipath -ll— device-mapper mapsmultipathd show config | head— effective configcat /etc/multipath.conf— local overrides
Verify in this order
SCSI paths → multipathd → dm map
Where it usually breaks
First mismatch in initiator → link/fabric/network → session/login → target port → LUN/namespace presentation → multipath → block consumer; preserve identity/pre-state before mutation.
Multipathing → Device Mapper Multipath multipath map
| Multipath boundary | What to verify | Proof limit |
|---|---|---|
| Device identity | Persistent LUN/WWID plus one logical multipath device | Matching identity does not prove every path is healthy or independent |
| Path state / policy | Expected paths, access state, selector/policy, transport errors and target-side presentation | Path up does not prove low latency, independence or application continuity |
| Failure boundary | A healthy device-mapper map proves Linux has grouped known paths, but it does not prove the storage fabric, array controller ownership or upper filesystem is healthy. | Correlate host, transport and target evidence for the same time window |
| Acceptance | Healthy evidence: one map has the expected WWID, all intended paths are grouped correctly, path priorities/access states match the target, and I/O continues through an approved single-path failure. | Close only after original I/O and approved path-failure verification succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4113